#!/bin/sh
-# $Id$
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-cd "$srcdir"
-
PKG_NAME="PLD Linux Distribution rc-scripts"
-if [ "$1" = "changelog" -a -x ~/bin/svn2log.py ]; then
- rm -f ${TMPDIR:-/tmp}/svn2log.tmp
- awk -F":" ' { login=$1; if ($3 != "") { name=$3 } else { name=$1 }; email=$2; printf "%s\t%s <%s@pld-linux.org>\n", login, name, login } ' ~/.CVS-PLD/CVSROOT/users > ${TMPDIR:-/tmp}/svn2log.tmp
- svn log -v --xml | ~/bin/svn2log.py --domain "pld-linux.org" -p /rc-scripts/trunk -u ${TMPDIR:-/tmp}/svn2log.tmp --exclude ChangeLog -o ChangeLog
- rm -f ${TMPDIR:-/tmp}/svn2log.tmp
- exit 0
+if [ -x ./changelog.sh ]; then
+ ./changelog.sh
+else
+ echo "Error: missing script changelog.sh to generate ChangeLog" >&2
+ exit 1
fi
-
+
+cd "$srcdir"
+
(test -f $srcdir/configure.ac \
&& test -d $srcdir/src) || {
fi
echo "Running aclocal $aclocalinclude ..."
aclocal $aclocalinclude
- if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then
+ if grep "^A[CM]_CONFIG_HEADER" configure.ac >/dev/null; then
echo "Running autoheader..."
autoheader
fi
fi
done
-conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
+conf_flags="" #--enable-maintainer-mode --enable-compile-warnings --enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...