[med-svn] [phipack] 01/04: More sensible way to define data based version number

Andreas Tille tille at debian.org
Thu Jun 23 14:27:00 UTC 2016


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

tille pushed a commit to branch master
in repository phipack.

commit 4b38655652211f1c207604c7f8294403860af546
Author: Andreas Tille <tille at debian.org>
Date:   Thu Jun 23 16:23:51 2016 +0200

    More sensible way to define data based version number
---
 debian/get-orig-source | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/get-orig-source b/debian/get-orig-source
index 95df957..d0a872e 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -16,19 +16,21 @@ cd ../tarballs
 
 wget --quiet -N http://www.maths.otago.ac.nz/~dbryant/software/PhiPack.tar.gz
 
-tar xaf ../PhiPack.tar.gz
+tar xaf PhiPack.tar.gz
 rm -f ._PhiPack
 mv PhiPack ${NAME}
 cd ${NAME}
 
+# find youngest file name:
+#    find . -type f -printf '%T@ %p\n' | sort -n | tail -1 | cut -f2- -d" "
+VERSION=0.0.`find . -type f -printf '%T@ %p\n' | sort -n | tail -1 | sed 's/ .*//' | gawk '{print strftime("%Y%m%d", $0)}'`
 find . -name "._*" -delete
 find . -name "*~" -delete
 find . -name ".DS_Store" -delete
 find . -name "_notes" -type d | xargs -r rm -rf
-VERSION=0.0.`ls -lArt --time-style=+"%Y%m%d"  | tail -n 1 | cut -f7 -d" "`
 
 if [ "$OVERSION" = "$VERSION" ] ; then
-  echo "No new version of $NAME available."
+  echo "No new version of $NAME available (VERSION=${VERSION})."
   exit 0
 fi
 

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



More information about the debian-med-commit mailing list