From b2434ed3c7e0c33635038ea31a8cf402fae7eb69 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Tue, 20 Aug 2002 09:17:32 +0000 Subject: [PATCH] make this dtrt with AC_INIT git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11145 ec53bebd-3082-4978-b11e-865c3cabbd6b --- fix-export | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fix-export b/fix-export index f925e4ada..fc599555b 100755 --- a/fix-export +++ b/fix-export @@ -7,11 +7,14 @@ 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 + ed -s configure.in << END +/AC_INIT/s/AC_INIT(\([^,]*\), [^,]*, \(.*\))/AC_INIT(\1, $date, \2)/ +w +q +END fi -ver=`sed -n 's/AM_INIT_AUTOMAKE(.*,\(.*\))/\1/p' configure.in` +ver=`sed -n 's/AC_INIT([^,]*,\([^,]*\),.*/\1/p' configure.in` M="* This is version $ver. *" echo "$M" | sed -e 's/./*/g' echo "$M"