2 # Run this to generate all the initial makefiles, etc.
7 test -z "$srcdir" && srcdir=.
9 if test ! -f $srcdir/irssi.cvs -a -f $srcdir/configure; then
11 echo "Use ./configure instead"
13 echo "This script should only be run if you got sources from SVN."
14 echo "If you really want to do this, say:"
15 echo " touch irssi.cvs"
19 if test ! -f $srcdir/configure.in; then
20 echo -n "**Error**: Directory \`$srcdir\' does not look like the"
21 echo " top-level $PKG_NAME directory"
26 echo "Creating help files..."
29 #$srcdir/update-changelog.sh $srcdir
31 files=`echo docs/help/in/*.in|sed -e 's,docs/help/in/Makefile.in ,,' -e 's,docs/help/in/,!,g' -e 's/\.in /.in ?/g'`
32 cat docs/help/in/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/in/Makefile.am
34 files=`echo $files|sed 's/\.in//g'`
35 cat docs/help/Makefile.am.gen|sed "s/@HELPFILES@/$files/g"|sed 's/?/\\?/g'|tr '!?' '\t\n' > docs/help/Makefile.am
37 if test x$NOCONFIGURE = x && test -z "$*"; then
38 echo "**Warning**: I am going to run \`configure' with no arguments."
39 echo "If you wish to pass any to it, please specify them on the"
40 echo \`$0\'" command line."
45 echo "Running autoreconf ..."
46 autoreconf -i || exit 1
48 conf_flags="--enable-maintainer-mode"
50 if test x$NOCONFIGURE = x; then
51 echo Running $srcdir/configure $conf_flags "$@" ...
52 $srcdir/configure $conf_flags "$@" \
53 && echo Now type \`make\' to compile $PKG_NAME || exit 1
55 echo Skipping configure process.
58 # make sure perl hashes have correct length
59 find src/perl -name *.c -o -name *.xs | xargs grep -n hv_store | perl -ne 'if (/"(\w+)",\s*(\d+)/) { print unless $2 == length $1 }'