[Pcsclite-git-commit] [website] 03/04: update.sh: update releases.py only if needed

Ludovic Rousseau rousseau at moszumanska.debian.org
Sun Aug 9 09:04:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository website.

commit f972b3475af38a2da2b61d3d2de110e13c260b95
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sun Aug 9 10:52:25 2015 +0200

    update.sh: update releases.py only if needed
    
    Change the algorithm to detect if supported_readers.txt need to be
    regenerated.
---
 update.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/update.sh b/update.sh
index 56d8b71..b9ef284 100755
--- a/update.sh
+++ b/update.sh
@@ -1,12 +1,15 @@
-#!/bin/sh
+#!/bin/bash
 
 set -e
 set -x
 
-rsync --recursive ../CCID/readers/ ccid/readers/
+# update the .txt files
+rsync --archive ../CCID/readers/ ccid/readers/
 
 # update releases.py if needed
-if [ releases.py -ot ccid/readers ]
+newest=$(ls -t ccid/readers | head -1)
+# if the newsest file is NOT "supported_readers.txt" then we regenerate it
+if [ $newest != "supported_readers.txt" ]
 then
 	./create_driver_version.sh
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/website.git



More information about the Pcsclite-cvs-commit mailing list