# 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 ..