2
# autogen.sh: Run this to set up the build system: configure, makefiles, etc.
4
# copyright by the mpg123 project - free software under the terms of the LGPL 2.1
5
# see COPYING and AUTHORS files in distribution or http://mpg123.org
6
# initially written by Nicholas J. Humfrey
12
test -z "$srcdir" && srcdir=.
15
echo "Generating configuration files for $package, please wait...." &&
17
echo "Generating mpg123.spec ... this needs to be present in the dist tarball."
18
NAME=`perl -ne 'if(/^AC_INIT\(\[([^,]*)\]/) { print $1; exit; }' < configure.ac` &&
19
VERSION=`perl -ne 'if(/^AC_INIT\([^,]*,\s*\[([^,]*)\]/){ print $1; exit; }' < configure.ac` &&
20
perl -pe 's/\@PACKAGE_NAME\@/'$NAME'/; s/\@PACKAGE_VERSION\@/'$VERSION'/;' < mpg123.spec.in > mpg123.spec