diff options
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -15,20 +15,18 @@ PKG_NAME="Irssi" } # get versions - -version=`cat configure.in|grep AM_INIT_AUTOMAKE|sed 's/[^,]*, \([^\)]*\).*/\1/'` version_date=`date +%Y%m%d` -echo "/* automatically created by autogen.sh */" > irssi-version.h -echo "#define IRSSI_VERSION \"$version\"" >> irssi-version.h -echo "#define IRSSI_VERSION_DATE \"$version_date\"" >> irssi-version.h +echo "/* automatically created by autogen.sh */" > irssi-version.h.in +echo "#define IRSSI_VERSION \"@VERSION@\"" >> irssi-version.h.in +echo "#define IRSSI_VERSION_DATE \"$version_date\"" >> irssi-version.h.in # *********** a bit modified GNOME's macros/autogen.sh ********** DIE=0 (autoconf --version) < /dev/null > /dev/null 2>&1 || { echo - echo "**Error**: You must have \`autoconf' installed to compile Irssi." + echo "**Error**: You must have \`autoconf' installed to compile $PKG_NAME." echo "Download the appropriate package for your distribution," echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" DIE=1 @@ -37,7 +35,7 @@ DIE=0 (grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && { (libtool --version) < /dev/null > /dev/null 2>&1 || { echo - echo "**Error**: You must have \`libtool' installed to compile Irssi." + echo "**Error**: You must have \`libtool' installed to compile $PKG_NAME." echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz" echo "(or a newer version if it is available)" DIE=1 @@ -48,7 +46,7 @@ grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && { grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \ (gettext --version) < /dev/null > /dev/null 2>&1 || { echo - echo "**Error**: You must have \`gettext' installed to compile Irssi." + echo "**Error**: You must have \`gettext' installed to compile $PKG_NAME." echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz" echo "(or a newer version if it is available)" DIE=1 @@ -59,7 +57,7 @@ grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && { grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \ (gettext --version) < /dev/null > /dev/null 2>&1 || { echo - echo "**Error**: You must have \`gettext' installed to compile Irssi." + echo "**Error**: You must have \`gettext' installed to compile $PKG_NAME." echo "Get ftp://alpha.gnu.org/gnu/gettext-0.10.35.tar.gz" echo "(or a newer version if it is available)" DIE=1 @@ -68,7 +66,7 @@ grep "^AM_GNOME_GETTEXT" $srcdir/configure.in >/dev/null && { (automake --version) < /dev/null > /dev/null 2>&1 || { echo - echo "**Error**: You must have \`automake' installed to compile Irssi." + echo "**Error**: You must have \`automake' installed to compile $PKG_NAME." echo "Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz" echo "(or a newer version if it is available)" DIE=1 |