r15227 - gnucash/trunk/packaging/win32 - install.sh: Make gnome installation relocatable again.
Andreas Köhler
andi5 at cvs.gnucash.org
Mon Dec 18 14:39:06 EST 2006
Author: andi5
Date: 2006-12-18 14:39:05 -0500 (Mon, 18 Dec 2006)
New Revision: 15227
Trac: http://svn.gnucash.org/trac/changeset/15227
Modified:
gnucash/trunk/packaging/win32/install.sh
Log:
install.sh: Make gnome installation relocatable again.
Modified: gnucash/trunk/packaging/win32/install.sh
===================================================================
--- gnucash/trunk/packaging/win32/install.sh 2006-12-18 15:59:51 UTC (rev 15226)
+++ gnucash/trunk/packaging/win32/install.sh 2006-12-18 19:39:05 UTC (rev 15227)
@@ -76,7 +76,7 @@
fi
done
# Remove old empty install-sh files
- if [ -f ${_REPOS_UDIR}/install-sh -a "$(cat ${_REPOS_UDIR}/install-sh | wc -l)" -eq 0 ]; then
+ if [ -f ${_REPOS_UDIR}/install-sh -a "$(cat ${_REPOS_UDIR}/install-sh &>/dev/null | wc -l)" -eq 0 ]; then
rm -f ${_REPOS_UDIR}/install-sh
fi
# Partially remove RegEx-GNU if installed
@@ -467,7 +467,6 @@
add_to_env $_GNOME_UDIR/lib/pkgconfig PKG_CONFIG_PATH
add_to_env $_GNOME_UDIR/bin/pkg-config-msys.sh PKG_CONFIG
add_to_env "-I $_GNOME_UDIR/share/aclocal" ACLOCAL_FLAGS
- _ORIG_PKG_CONFIG=$_GNOME_UDIR/bin/pkg-config
if quiet gconftool-2 --version &&
${PKG_CONFIG} --exists gconf-2.0 libgnome-2.0 libgnomeui-2.0 libgnomeprint-2.2 libgnomeprintui-2.2 libgtkhtml-3.8 &&
quiet intltoolize --version
@@ -539,12 +538,13 @@
# work around a bug in msys bash, adding 0x01 smilies
cat > bin/pkg-config-msys.sh <<EOF
#!/bin/sh
-if ${_ORIG_PKG_CONFIG} "\$@" > /dev/null 2>&1 ; then
+PKG_CONFIG="\$(dirname \$0)/pkg-config"
+if \${PKG_CONFIG} "\$@" > /dev/null 2>&1 ; then
res=true
else
res=false
fi
-${_ORIG_PKG_CONFIG} "\$@" | tr -d \\\\r && \$res
+\${PKG_CONFIG} "\$@" | tr -d \\\\r && \$res
EOF
_FREETYPE_VERSION=`echo $FREETYPE_DEV_URL | sed 's#.*freetype-\(.*\)-lib.zip#\1#'`
cat > lib/pkgconfig/freetype2.pc <<EOF
More information about the gnucash-changes
mailing list