1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
#!/bin/sh -e
# $Id: bootstrap 223 2005-02-13 13:55:38Z joostvb $
# bootstrap - script to bootstrap the distribution rolling engine
# This script is free software; you can distribute it and/or modify it
# under the terms of the GNU GPL. See the file COPYING.
# Usage:
#
# sh ./bootstrap && ./configure && make distcheck
#
# If you wanna force an update of the VERSION, run a
#
# touch NEWS
#
# before the sh ./bootstrap .
#
# If you don't want an auto-generated version number, do something like
#
# echo 'm4_define([ST_VERSION], [20041015-cvs.9])' > VERSION.m4 ; touch NEWS; touch ChangeLog; touch VERSION.m4; touch stamp.*; make distcheck
#
#
# Both methods yield a tarball which one can install doing
#
# $ tar zxf PACKAGENAME-*.tar.gz
# $ cd PACKAGENAME-*
# $ ./configure
# $ make
# # make install
# requirements:
# GNU autoconf, from e.g. ftp.gnu.org:/pub/gnu/autoconf/
# GNU automake, from e.g. ftp.cygnus.com:/pub/tromey
# svn2cl, a python script, as used in the GNU Enterprise project.
# By jcater (Jason Cater), contributions by reinhard (Reinhard Müller), 2004-02, 2004-03.
# Get it from
# http://www.gnuenterprise.org/cgi-bin/viewcvs.cgi/*checkout*/gnue/trunk/gnue-common/utils/svn2cl .
# svn2cl is used in Makefile.am too.
#
# (Another svn2cl implementation, in perl, is at
# http://www.contactor.se/~dast/svn/archive-2002-04/0910.shtml , and yet another one,
# implemented as an XSL stylesheet, is at http://tiefighter.et.tudelft.nl/~arthur/svn2cl/ .)
#
set -x
# svn log fails on us: it only shows changes in directory ., it seems. Probably since
# we've moved to much stuff around.
test -f ChangeLog || {
touch ChangeLog && svn log -v * | grep -v "^Skipped '" > ChangeLog
}
if [ ! -f VERSION.m4 ]; then
chmod a+x setversion
./setversion
fi
# it's too much hassle to learn jade and friends how to include something
# in topsrcdir
test -f doc/man.ent.in || ln -s ../man.ent.in doc/man.ent.in
test -f man/man.ent.in || ln -s ../man.ent.in man/man.ent.in
# hack as used in pcproxy
test -f acinclude.m4 || {
if test -f /usr/share/autoconf-archive/ac_define_dir.m4
then
ln -s /usr/share/autoconf-archive/ac_define_dir.m4 acinclude.m4
else
cat <<EOT
You need the autoconf-archive Debian package, version >= 20031029-1.
Alternatively, you could please install the GNU Autoconf Macro Archive's
http://www.gnu.org/software/ac-archive/htmldoc/ac_define_dir.html as
acinclude.m4.
EOT
fi
}
# Debian automake package installs as automake-version. Use this
# to make sure the right automake is being used.
aclocal-1.9 \
&& automake-1.9 --add-missing --verbose --gnu \
&& autoconf
# alternatively, run
# autoreconf --install --symlink
set +x
echo "You can now run \"./configure && make publish\" (or make distcheck)."
|