3
# Start from the build directory, where the version file is located
4
if [ -f build/version ]; then
8
if [ \! -f version ]; then
9
echo "Can't find version file"
13
# Update the build number in the 'version' file.
14
# Separate number from additional alpha/beta/etc marker
15
MARKER=`cat version | sed 's/[0-9.]//g'`
17
VN=`cat version | sed 's/[^0-9.]//g'`
18
# Reassemble and write back out
21
mv version version.old
23
echo $VN$MARKER > version
24
VS="$(($VN/1000000)).$(( ($VN/1000)%1000 )).$(( $VN%1000 ))$MARKER"
27
ANNOUNCE=`date +"%b %d, %Y:"`" libarchive $VS released"
31
# Add a version notice to NEWS
35
echo $ANNOUNCE >> NEWS