extract version number from sources

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2015-04-01 10:55:11 +02:00
parent 6bc396012d
commit 0c1386bb05

View file

@ -31,7 +31,7 @@ ONLY_X11=${ONLY_X11:=YES}
PRGNAM=emacs
BRANCH=${BRANCH:=trunk}
VERSION=${VERSION:-${BRANCH}_$(date +"%Y.%m.%d_%H.%M")}
VERSION=${VERSION:-$(date +"%Y.%m.%d_%H.%M")}
ARCH=${ARCH:-$(uname -m)}
NUMJOBS=${NUMJOBS:-" -j3 "}
BUILD=${BUILD:-1}
@ -88,6 +88,8 @@ find . \
./autogen.sh
)
EMACS_VERSION=$(grep "AC_INIT(GNU Emacs," $SRCDIR/configure.ac | sed 's|AC_INIT(GNU Emacs, \([0-9.]*\), bug-gnu-emacs@gnu.org)|\1|')
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
$SRCDIR/configure \
@ -228,4 +230,4 @@ Categories=Application;Development;
EOF
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$EMACS_VERSION_$VERSION-$ARCH-$BUILD$TAG.txz