summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-04-26 08:10:09 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-04-26 08:10:09 +0000
commitd29ca0b107a5b6abb4eadd036f37acd33bb72ed0 (patch)
treebcf53c98b5166a33753fc70444c24118ae8da9d1 /autogen.sh
parentc95034c6de1bf72536595e1e3431d8ec64b9880e (diff)
downloadirssi-d29ca0b107a5b6abb4eadd036f37acd33bb72ed0.zip
rest of the ~rewrite?
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@172 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 9a198abb..bf36cc97 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -14,4 +14,13 @@ PKG_NAME="Irssi"
exit 1
}
+# 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
+
. $srcdir/macros/autogen.sh