8 # set VERSION from CVS_TAG_NAME
11 VERSION=${CVS_TAG_NAME}
12 VERSION=`echo ${VERSION/'$Name:'/}`
13 VERSION=`echo ${VERSION/'$'/}`
14 if test X$VERSION = X ; then
15 VERSION=`date +"%F"` # -%H-%M
17 VERSION=`echo $VERSION | sed -e "s/V_//g"`
18 VERSION=`echo $VERSION | sed -e "s/_/./g"`
24 local logfile=$ORIG_DIR/build_configure.log
25 printf "%-50s" "$1 ... "
26 eval $1 > $logfile 2>&1
27 if test $? != 0 ; then
29 echo "see file build_configure.log ..."
36 # -- goto build_configure dir
37 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
41 # -- list all Makefile.am in Makefile.am.list
42 ./rfind . Makefile.am > Makefile.am.list
45 # -- configure.in construction
48 echo "AC_INIT(src)" >> configure.in
49 echo "RELEASE=$VERSION" >> configure.in
50 echo "PROJECT=$PROJECT" >> configure.in
51 cat configure.in.base >> configure.in
52 echo "AC_OUTPUT([ \\" >> configure.in
53 # echo " src/XDATA/xversion.py \\" >> configure.in
54 # echo " doc/xversion.tex \\" >> configure.in
55 sed -e 's,\.am, \\,' -e 's,\.\/,,' Makefile.am.list >> configure.in
56 echo "])" >> configure.in
60 run "aclocal -I adm/unix/config_files"
62 run "automake --add-missing --copy"