~ubuntu-branches/ubuntu/lucid/mpg123/lucid

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2009-12-21 00:11:29 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20091221001129-gsbnzbenceqv4pjt
Tags: upstream-1.10.0
ImportĀ upstreamĀ versionĀ 1.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# autogen.sh: Run this to set up the build system: configure, makefiles, etc.
3
 
 
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
7
 
 
8
 
package="mpg123"
9
 
 
10
 
 
11
 
srcdir=`dirname $0`
12
 
test -z "$srcdir" && srcdir=.
13
 
 
14
 
cd "$srcdir" &&
15
 
echo "Generating configuration files for $package, please wait...." &&
16
 
autoreconf -iv &&
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