diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2005-09-11 07:02:45 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2005-09-11 07:02:45 +0000 |
commit | b37c027677204b0052dd98b209edea6cb65cd8f7 (patch) | |
tree | 995f10a8d56d22860bb66e2cd9a5915c01e25a8a /autogen.sh | |
parent | a7000d04f4310238af81dba4734807ac55015e81 (diff) | |
download | libgpod-tmz-b37c027677204b0052dd98b209edea6cb65cd8f7.tar.gz libgpod-tmz-b37c027677204b0052dd98b209edea6cb65cd8f7.tar.xz libgpod-tmz-b37c027677204b0052dd98b209edea6cb65cd8f7.zip |
Some hints for troubleshooting and installation from CVS
Replaced autogen.sh to avoid gnome-common dependency.
Changed configure.ac to work with new autogen.sh.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1084 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 75 |
1 files changed, 62 insertions, 13 deletions
@@ -1,20 +1,69 @@ #!/bin/sh -# Run this to generate all the initial makefiles, etc. +# +# autogen.sh glue for hplip +# +# HPLIP used to have five or so different autotools trees. Upstream +# has reduced it to two. Still, this script is capable of cleaning +# just about any possible mess of autoconf files. +# +# BE CAREFUL with trees that are not completely automake-generated, +# this script deletes all Makefile.in files it can find. +# +# Requires: automake 1.9, autoconf 2.57+ +# Conflicts: autoconf 2.13 +set -e -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. +# Refresh GNU autotools toolchain. +echo Cleaning autotools files... +find -type d -name autom4te.cache -print0 | xargs -0 rm -rf \; +find -type f \( -name missing -o -name install-sh -o -name mkinstalldirs \ + -o -name depcomp -o -name ltmain.sh -o -name configure \ + -o -name config.sub -o -name config.guess \ + -o -name Makefile.in \) -print0 | xargs -0 rm -f -PKG_NAME="libgpod" +echo Running autoreconf... +autoreconf --force --install -(test -f $srcdir/configure.ac) || { - echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" - echo " top-level $PKG_NAME directory" - exit 1 -} +# For the Debian package build +test -d debian && { + # link these in Debian builds + rm -f config.sub config.guess + ln -s /usr/share/misc/config.sub . + ln -s /usr/share/misc/config.guess . + + # refresh list of executable scripts, to avoid possible breakage if + # upstream tarball does not include the file or if it is mispackaged + # for whatever reason. + [ "$1" == "updateexec" ] && { + echo Generating list of executable files... + rm -f debian/executable.files + find -type f -perm +111 ! -name '.*' -fprint debian/executable.files + } -which gnome-autogen.sh || { - echo "You need to install gnome-common from the GNOME CVS" - exit 1 + # Remove any files in upstream tarball that we don't have in the Debian + # package (because diff cannot remove files) + version=`dpkg-parsechangelog | awk '/Version:/ { print $2 }' | sed -e 's/-[^-]\+$//'` + source=`dpkg-parsechangelog | awk '/Source:/ { print $2 }' | tr -d ' '` + if test -r ../${source}_${version}.orig.tar.gz ; then + echo Generating list of files that should be removed... + rm -f debian/deletable.files + touch debian/deletable.files + [ -e debian/tmp ] && rm -rf debian/tmp + mkdir debian/tmp + ( cd debian/tmp ; tar -zxf ../../../${source}_${version}.orig.tar.gz ) + find debian/tmp/ -type f ! -name '.*' -print0 | xargs -0 -ri echo '{}' | \ + while read -r i ; do + if test -e "${i}" ; then + filename=$(echo "${i}" | sed -e 's#.*debian/tmp/[^/]\+/##') + test -e "${filename}" || echo "${filename}" >>debian/deletable.files + fi + done + rm -fr debian/tmp + else + echo Emptying list of files that should be deleted... + rm -f debian/deletable.files + touch debian/deletable.files + fi } -REQUIRED_AUTOMAKE_VERSION=1.8 USE_GNOME2_MACROS=1 . gnome-autogen.sh +exit 0 |