Update libnfs-get-orig-source script to retrieve latest upstream release.
authorAndres Mejia <mcitadel@gmail.com>
Sun, 8 Jan 2012 18:13:01 +0000 (13:13 -0500)
committerAndres Mejia <mcitadel@gmail.com>
Sun, 8 Jan 2012 18:13:01 +0000 (13:13 -0500)
debian/libnfs-get-orig-source

index af249b0a686e2b04f348c19c5e6163e689e63daa..ea95ef443b3b9c34ebbd224dfbdc729abd506853 100755 (executable)
@@ -3,16 +3,13 @@
 # Script used to generate the orig source tarball for libnfs.
 
 LIBNFS_GIT_URL="git://github.com/sahlberg/libnfs.git"
-LIBNFS_GIT_COMMIT="48593f566ff9e0fee6544ba03478cb996380eaf7"
-DATE_RETRIEVED="20110724"
-COMMIT_SHORT_FORM="$(echo $LIBNFS_GIT_COMMIT | \
-                     sed -e 's/^\([[:xdigit:]]\{,7\}\).*/\1/')"
-LIBNFS_VERSION="0.0~git${DATE_RETRIEVED}.${COMMIT_SHORT_FORM}"
+LIBNFS_GIT_TAG="libnfs-1.2.0"
+LIBNFS_VERSION="1.2.0"
 
+rm -rf "libnfs-${LIBNFS_VERSION}"
 git clone "$LIBNFS_GIT_URL" "libnfs-${LIBNFS_VERSION}"
-
 cd "libnfs-${LIBNFS_VERSION}"
-git checkout "$LIBNFS_GIT_COMMIT"
+git checkout "$LIBNFS_GIT_TAG"
 ./bootstrap
 cd ..