1
0
mirror of http://mpg123.de/trunk/.git synced 2025-10-26 15:31:15 +03:00
Files
mpg123/MakeLegacy.sh
njh a7bea0d89e Changed all occurrences of http://mpg123.de to http://mpg123.org (for consistency)
git-svn-id: svn://scm.orgis.org/mpg123/trunk@683 35dc7657-300d-0410-a2e5-dc2837fedb53
2007-06-01 00:32:13 +00:00

33 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
# MakeLegacy.sh: support old-style Makefile in autotooled source tree
# copyright by the mpg123 project - free software under the terms of the LGPL 2.1
# see COPYING and AUTHORS files in distribution or http://mpg123.org
# initially written by Nicholas J. Humfrey
# Check that configure.ac exists
if test ! -f configure.ac; then
echo "Can't find configure.ac"
exit
fi
#AC_INIT([mpg123], [0.60-devel], [mpg123-devel@lists.sourceforge.net])
PACKAGE_NAME=`sed -n 's/^AC_INIT(\[\([^,]*\)\], .*$/\1/p' < configure.ac`
PACKAGE_VERSION=`sed -n 's/^AC_INIT([^,]*, \[\([^,]*\)\], .*$/\1/p' < configure.ac`
PACKAGE_BUGREPORT=`sed -n 's/^AC_INIT([^,]*, [^,]*, \[\(.*\)\])$/\1/p' < configure.ac`
cd src
# Write out our own very basic config.h
echo "Creating basic config.h to reproduce pre-autoconf days."
cp config.h.legacy config.h &&
{
echo "/* added by MakeLegacy.sh */"
echo "#define PACKAGE_NAME \"$PACKAGE_NAME\""
echo "#define PACKAGE_VERSION \"$PACKAGE_VERSION\""
echo "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\""
} >> config.h &&
exec make -f Makefile.legacy $* ||
echo "some error!?"