From baea7d877d3cf69679a39e8512a120658a478073 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 5 Feb 2010 11:06:31 +0100 Subject: Rebase libarchive to 2.8.0 --- libarchive/libarchive-2.8.0/build/bump-version.sh | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 libarchive/libarchive-2.8.0/build/bump-version.sh (limited to 'libarchive/libarchive-2.8.0/build/bump-version.sh') diff --git a/libarchive/libarchive-2.8.0/build/bump-version.sh b/libarchive/libarchive-2.8.0/build/bump-version.sh new file mode 100644 index 0000000..0304cf3 --- /dev/null +++ b/libarchive/libarchive-2.8.0/build/bump-version.sh @@ -0,0 +1,36 @@ +#!/bin/sh +v + +# Start from the build directory, where the version file is located +if [ -f build/version ]; then + cd build +fi + +if [ \! -f version ]; then + echo "Can't find version file" + exit 1 +fi + +# Update the build number in the 'version' file. +# Separate number from additional alpha/beta/etc marker +MARKER=`cat version | sed 's/[0-9.]//g'` +# Bump the number +VN=`cat version | sed 's/[^0-9.]//g'` +# Reassemble and write back out +VN=$(($VN + 1)) +rm -f version.old +mv version version.old +chmod +w version.old +echo $VN$MARKER > version +VS="$(($VN/1000000)).$(( ($VN/1000)%1000 )).$(( $VN%1000 ))$MARKER" +cd .. + +ANNOUNCE=`date +"%b %d, %Y:"`" libarchive $VS released" + +echo $ANNOUNCE + +# Add a version notice to NEWS +mv NEWS NEWS.bak +chmod +w NEWS.bak +echo > NEWS +echo $ANNOUNCE >> NEWS +cat NEWS.bak >> NEWS -- cgit v1.2.3