From 431fd0905347cc64f44cba9c02a0ec5290009554 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Tue, 28 Nov 2006 19:48:41 +0000 Subject: [PATCH] roll_release.sh: Autotag release --- pam_usb/src/pam.c | 2 +- roll_release.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pam_usb/src/pam.c b/pam_usb/src/pam.c index 88a0932..322c0aa 100644 --- a/pam_usb/src/pam.c +++ b/pam_usb/src/pam.c @@ -63,7 +63,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags, return (PAM_IGNORE); } - log_info("pam_usb v.%s\n", PUSB_VERSION); + log_info("pam_usb v%s\n", PUSB_VERSION); log_info("Authentication request for user \"%s\" (%s)\n", user, service); diff --git a/roll_release.sh b/roll_release.sh index 386e7e7..e4a0b2c 100755 --- a/roll_release.sh +++ b/roll_release.sh @@ -39,6 +39,9 @@ create_release() cp -r $TRUNK_PATH ${SRC_PATH} find "$SRC_PATH" -type d -name ".svn" -exec rm -rf "{}" + + echo "* Tagging release \"$1\"" + sed -ri "s/(PUSB_VERSION) \"[^\"]*\"/\1 \"${1}\"/" ${SRC_PATH}/src/version.h + echo "* Creating tarball..." cd $BUILD_ENV tar -zcf $TARBALL pam_usb-${1}