head	1.1;
branch	1.1.1;
access;
symbols
	RELENG_8_4:1.1.1.3.0.18
	RELENG_9_1_0_RELEASE:1.1.1.3
	RELENG_9_1:1.1.1.3.0.16
	RELENG_9_1_BP:1.1.1.3
	RELENG_8_3_0_RELEASE:1.1.1.3
	RELENG_8_3:1.1.1.3.0.14
	RELENG_8_3_BP:1.1.1.3
	RELENG_9_0_0_RELEASE:1.1.1.3
	RELENG_9_0:1.1.1.3.0.12
	RELENG_9_0_BP:1.1.1.3
	RELENG_9:1.1.1.3.0.10
	RELENG_9_BP:1.1.1.3
	RELENG_7_4_0_RELEASE:1.1.1.2.18.1
	RELENG_8_2_0_RELEASE:1.1.1.3
	RELENG_7_4:1.1.1.2.18.1.0.8
	RELENG_7_4_BP:1.1.1.2.18.1
	RELENG_8_2:1.1.1.3.0.8
	RELENG_8_2_BP:1.1.1.3
	RELENG_8_1_0_RELEASE:1.1.1.3
	RELENG_8_1:1.1.1.3.0.6
	RELENG_8_1_BP:1.1.1.3
	RELENG_7_3_0_RELEASE:1.1.1.2.18.1
	RELENG_7_3:1.1.1.2.18.1.0.6
	RELENG_7_3_BP:1.1.1.2.18.1
	RELENG_8_0_0_RELEASE:1.1.1.3
	RELENG_8_0:1.1.1.3.0.4
	RELENG_8_0_BP:1.1.1.3
	RELENG_8:1.1.1.3.0.2
	RELENG_8_BP:1.1.1.3
	RELENG_7_2_0_RELEASE:1.1.1.2.18.1
	RELENG_7_2:1.1.1.2.18.1.0.4
	RELENG_7_2_BP:1.1.1.2.18.1
	RELENG_7_1_0_RELEASE:1.1.1.2.18.1
	RELENG_6_4_0_RELEASE:1.1.1.2.8.1
	RELENG_7_1:1.1.1.2.18.1.0.2
	RELENG_7_1_BP:1.1.1.2.18.1
	RELENG_6_4:1.1.1.2.8.1.0.2
	RELENG_6_4_BP:1.1.1.2.8.1
	RELENG_7_0_0_RELEASE:1.1.1.2
	RELENG_6_3_0_RELEASE:1.1.1.2
	RELENG_7_0:1.1.1.2.0.22
	RELENG_7_0_BP:1.1.1.2
	amd_6_1_5:1.1.1.3
	RELENG_6_3:1.1.1.2.0.20
	RELENG_6_3_BP:1.1.1.2
	RELENG_7:1.1.1.2.0.18
	RELENG_7_BP:1.1.1.2
	RELENG_6_2_0_RELEASE:1.1.1.2
	RELENG_6_2:1.1.1.2.0.16
	RELENG_6_2_BP:1.1.1.2
	RELENG_5_5_0_RELEASE:1.1.1.2
	RELENG_5_5:1.1.1.2.0.14
	RELENG_5_5_BP:1.1.1.2
	RELENG_6_1_0_RELEASE:1.1.1.2
	RELENG_6_1:1.1.1.2.0.12
	RELENG_6_1_BP:1.1.1.2
	RELENG_6_0_0_RELEASE:1.1.1.2
	RELENG_6_0:1.1.1.2.0.10
	RELENG_6_0_BP:1.1.1.2
	RELENG_6:1.1.1.2.0.8
	RELENG_6_BP:1.1.1.2
	RELENG_5_4_0_RELEASE:1.1.1.2
	RELENG_5_4:1.1.1.2.0.6
	RELENG_5_4_BP:1.1.1.2
	RELENG_5_3_0_RELEASE:1.1.1.2
	RELENG_5_3:1.1.1.2.0.4
	RELENG_5_3_BP:1.1.1.2
	RELENG_5:1.1.1.2.0.2
	RELENG_5_BP:1.1.1.2
	amd_6_0_10p1:1.1.1.2
	RELENG_5_2_1_RELEASE:1.1.1.1
	RELENG_5_2_0_RELEASE:1.1.1.1
	RELENG_5_2:1.1.1.1.0.2
	RELENG_5_2_BP:1.1.1.1
	amd_6_0_9:1.1.1.1
	COLUMBIA:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2003.09.02.15.27.31;	author mbr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2003.09.02.15.27.31;	author mbr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.07.06.12.55.34;	author mbr;	state Exp;
branches
	1.1.1.2.8.1
	1.1.1.2.18.1;
next	1.1.1.3;

1.1.1.3
date	2007.12.05.15.48.01;	author obrien;	state Exp;
branches
	1.1.1.3.18.1;
next	;

1.1.1.2.8.1
date	2008.02.09.01.35.25;	author obrien;	state Exp;
branches;
next	;

1.1.1.2.18.1
date	2008.01.30.03.18.48;	author obrien;	state Exp;
branches;
next	;

1.1.1.3.18.1
date	2007.12.05.15.48.01;	author svnexp;	state dead;
branches;
next	1.1.1.3.18.2;

1.1.1.3.18.2
date	2013.03.28.13.00.16;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/sh
#set -x
# helps bootstrapping am-utils, when checked out from CVS
# requires GNU autoconf and GNU automake
# this is not meant to go into the distributions
# Erez Zadok <ezk@@cs.columbia.edu>

# test cwd
test -f ../amd/amd.c && cd ..
if [ ! -f amd/amd.c ]; then
    echo "Must run $0 from the top level source directory."
    exit 1
fi

# validate macros directory and some macro files
if [ ! -d m4/macros ]; then
    echo No m4/macros directory found!
    exit 1
fi
if [ ! -f m4/macros/HEADER ]; then
    echo No m4/macros/HEADER file found!
    exit 1
fi

# remove any remaining autom4te.cache directory
rm -fr autom4te.cache

# generate acinclude.m4 file
echo "AMU: prepare acinclude.m4..."
test -f acinclude.m4 && mv -f acinclude.m4 acinclude.m4.old
(cd m4/macros
 for i in HEADER *.m4; do
     cat $i
     echo
     echo
 done
 cat TRAILER
) > acinclude.m4

# generate aclocal.m4 file
echo "AMU: aclocal..."
test -f aclocal.m4 && mv -f aclocal.m4 aclocal.m4.old
# show version
aclocal --version 2>&1 | head -1
if aclocal ; then
    :
else
    echo "aclocal command failed.  fix errors and rerun $0."
    exit 2
fi

# produce new configure.in (temp) script
echo "AMU: autoconf..."
# show version
autoconf --version 2>&1 | head -1
LOG=/tmp/amu-$$.log
rm -f ${LOG}
autoconf configure.in > configure.new 2> ${LOG}
# until Automake requires Autoconf 2.50, manual says to ignore this
CUTWARNMSG1="warning: AC_PROG_LEX invoked multiple times|do not use m4_(patsubst|regexp):"
egrep -v "${CUTWARNMSG1}" ${LOG} > ${LOG}.new
mv ${LOG}.new ${LOG}
if test -s ${LOG}; then
    echo "AUTOCONF ERRORS (MUST FIX):"
    cat ${LOG}
    rm -f ${LOG}
    exit 2
fi
# now prepare the real configure script
mv -f configure configure.old
mv -f configure.new configure
chmod a+rx configure
rm -f configure.old

# run autoheader to produce C header .in files
echo "AMU: autoheader..."
# show version
autoheader --version 2>&1 | head -1
autoheader configure.in > config.h.in 2> ${LOG}
CUTWARNMSG2="autoheader: \`config.h.in' is updated"
egrep -v "${CUTWARNMSG2}" ${LOG} > ${LOG}.new
mv ${LOG}.new ${LOG}
if test -s ${LOG}; then
    echo "AUTOHEADER ERRORS (MUST FIX):"
    cat ${LOG}
    rm -f ${LOG}
    exit 2
fi
rm -f ${LOG}

# generate makefiles
cmd="automake --add-missing --copy --ignore-deps"
#cmd="automake --add-missing"
echo "AMU: $cmd..."
# show version
automake --version 2>&1 | head -1
if ${cmd} ; then
    :
else
    echo "automake command failed.  fix errors and rerun $0."
    exit 2
fi

# save timestamp
echo "AMU: save timestamp..."
echo timestamp > stamp-h.in

exit 0
@


1.1.1.1
log
@Virgin import of AMD (am-utils) 20030828 (6.0.9)
@
text
@@


1.1.1.2
log
@Virgin import of AMD (am-utils) v6.0.10p1
@
text
@d70 1
a70 1
test -f configure && mv -f configure configure.old
@


1.1.1.2.8.1
log
@MFC: version 6.1.5.
@
text
@d26 1
a26 1
rm -fr autom4te.cache autom4te-*.cache
@


1.1.1.2.18.1
log
@MFC: version 6.1.5.
@
text
@d26 1
a26 1
rm -fr autom4te.cache autom4te-*.cache
@


1.1.1.3
log
@Virgin import of AMD (am-utils) v6.1.5

Sponsored by: Juniper Networks
@
text
@d26 1
a26 1
rm -fr autom4te.cache autom4te-*.cache
@


1.1.1.3.18.1
log
@file bootstrap was added on branch RELENG_8_4 on 2013-03-28 13:00:16 +0000
@
text
@d1 108
@


1.1.1.3.18.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 108
#!/bin/sh
#set -x
# helps bootstrapping am-utils, when checked out from CVS
# requires GNU autoconf and GNU automake
# this is not meant to go into the distributions
# Erez Zadok <ezk@@cs.columbia.edu>

# test cwd
test -f ../amd/amd.c && cd ..
if [ ! -f amd/amd.c ]; then
    echo "Must run $0 from the top level source directory."
    exit 1
fi

# validate macros directory and some macro files
if [ ! -d m4/macros ]; then
    echo No m4/macros directory found!
    exit 1
fi
if [ ! -f m4/macros/HEADER ]; then
    echo No m4/macros/HEADER file found!
    exit 1
fi

# remove any remaining autom4te.cache directory
rm -fr autom4te.cache autom4te-*.cache

# generate acinclude.m4 file
echo "AMU: prepare acinclude.m4..."
test -f acinclude.m4 && mv -f acinclude.m4 acinclude.m4.old
(cd m4/macros
 for i in HEADER *.m4; do
     cat $i
     echo
     echo
 done
 cat TRAILER
) > acinclude.m4

# generate aclocal.m4 file
echo "AMU: aclocal..."
test -f aclocal.m4 && mv -f aclocal.m4 aclocal.m4.old
# show version
aclocal --version 2>&1 | head -1
if aclocal ; then
    :
else
    echo "aclocal command failed.  fix errors and rerun $0."
    exit 2
fi

# produce new configure.in (temp) script
echo "AMU: autoconf..."
# show version
autoconf --version 2>&1 | head -1
LOG=/tmp/amu-$$.log
rm -f ${LOG}
autoconf configure.in > configure.new 2> ${LOG}
# until Automake requires Autoconf 2.50, manual says to ignore this
CUTWARNMSG1="warning: AC_PROG_LEX invoked multiple times|do not use m4_(patsubst|regexp):"
egrep -v "${CUTWARNMSG1}" ${LOG} > ${LOG}.new
mv ${LOG}.new ${LOG}
if test -s ${LOG}; then
    echo "AUTOCONF ERRORS (MUST FIX):"
    cat ${LOG}
    rm -f ${LOG}
    exit 2
fi
# now prepare the real configure script
test -f configure && mv -f configure configure.old
mv -f configure.new configure
chmod a+rx configure
rm -f configure.old

# run autoheader to produce C header .in files
echo "AMU: autoheader..."
# show version
autoheader --version 2>&1 | head -1
autoheader configure.in > config.h.in 2> ${LOG}
CUTWARNMSG2="autoheader: \`config.h.in' is updated"
egrep -v "${CUTWARNMSG2}" ${LOG} > ${LOG}.new
mv ${LOG}.new ${LOG}
if test -s ${LOG}; then
    echo "AUTOHEADER ERRORS (MUST FIX):"
    cat ${LOG}
    rm -f ${LOG}
    exit 2
fi
rm -f ${LOG}

# generate makefiles
cmd="automake --add-missing --copy --ignore-deps"
#cmd="automake --add-missing"
echo "AMU: $cmd..."
# show version
automake --version 2>&1 | head -1
if ${cmd} ; then
    :
else
    echo "automake command failed.  fix errors and rerun $0."
    exit 2
fi

# save timestamp
echo "AMU: save timestamp..."
echo timestamp > stamp-h.in

exit 0
@


