if DATEDVERSION is set, change the version to current date

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11059 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-07-24 12:55:43 +00:00
parent 884ddf0438
commit 7e6154db38

View File

@@ -5,6 +5,12 @@ echo "fixing distribution in $1..."
cd $1
if test "$DATEDVERSION"; then
date=`date -u +%Y%m%d`
perl -i.old -p -e 's/AM_INIT_AUTOMAKE\(([^,]*),[^)]*\)/AM_INIT_AUTOMAKE\($1,'$date'\)/' configure.in
rm configure.in.old
fi
ver=`sed -n 's/AM_INIT_AUTOMAKE(.*,\(.*\))/\1/p' configure.in`
M="* This is version $ver. *"
echo "$M" | sed -e 's/./*/g'