Update of /cvsroot/beepmp/bmp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24116
Modified Files:
Tag: release_0_9_7_1
autogen.sh
Log Message:
* autogen.sh: Update from HEAD.
* scripts/: Update scripts from HEAD.
Index: autogen.sh
===================================================================
RCS file: /cvsroot/beepmp/bmp/autogen.sh,v
retrieving revision 1.2
retrieving revision 1.2.4.1
diff -C2 -d -r1.2 -r1.2.4.1
*** autogen.sh 31 Aug 2004 10:16:03 -0000 1.2
--- autogen.sh 22 Oct 2005 08:41:28 -0000 1.2.4.1
***************
*** 1,9 ****
#! /bin/sh
! # lame test for top level directory
! if test ! -f AUTHORS ; then
echo "You must execute this script from the top level directory."
exit 1
fi
! ./scripts/gen-auto-scripts.sh "$@" | sed "s/gen-auto-scripts.sh/autogen.sh/"
--- 1,103 ----
#! /bin/sh
! TOP_DIR=$(dirname $0)
! LAST_DIR=$PWD
!
! if test ! -f $TOP_DIR/configure.ac ; then
echo "You must execute this script from the top level directory."
exit 1
fi
! AUTOCONF=${AUTOCONF:-autoconf}
! AUTOMAKE=${AUTOMAKE:-automake}
! ACLOCAL=${ACLOCAL:-aclocal}
! AUTOHEADER=${AUTOHEADER:-autoheader}
! AUTOPOINT=${AUTOPOINT:-autopoint}
! LIBTOOLIZE=${LIBTOOLIZE:-libtoolize}
!
! dump_help_screen ()
! {
! echo "Usage: gen-auto-scripts.sh [options]"
! echo
! echo "options:"
! echo " -n skip CVS changelog creation"
! echo " -h,--help show this help screen"
! echo
! exit 0
! }
!
! parse_options ()
! {
! while test "$1" != "" ; do
! case $1 in
! -h|--help)
! dump_help_screen
! ;;
! -n)
! SKIP_CVS_CHANGELOG=yes
! ;;
! *)
! echo Invalid argument - $1
! dump_help_screen
! ;;
! esac
! shift
! done
! }
!
! run_or_die ()
! {
! COMMAND=$1
!
! # check for empty commands
! if test -z "$COMMAND" ; then
! echo "*warning* no command specified"
! return 1
! fi
!
! shift;
!
! OPTIONS="$@"
!
! # print a message
! echo -n "*info* running $COMMAND"
! if test -n "$OPTIONS" ; then
! echo " ($OPTIONS)"
! else
! echo
! fi
!
! # run or die
! $COMMAND $OPTIONS ; RESULT=$?
! if test $RESULT -ne 0 ; then
! echo "*error* $COMMAND failed. (exit code = $RESULT)"
! exit 1
! fi
!
! return 0
! }
!
! parse_options "$@"
!
! cd $TOP_DIR
!
! # Generate ChangeLog
!
! if test "$SKIP_CVS_CHANGELOG" != "yes" ; then
! echo *info* creating changelog from CVS logs
! ./scripts/cvs2cl.pl -btT
! else
! echo *info* skipping changelog creation
! fi
!
! touch ChangeLog
!
!
! run_or_die $AUTOPOINT -f
! run_or_die $LIBTOOLIZE -f -c
! run_or_die $ACLOCAL -I m4
! run_or_die $AUTOHEADER
! run_or_die $AUTOMAKE -a -c
! run_or_die $AUTOCONF
!
! cd $LAST_DIR
|