Mercurial > bins
view debian/patches/07_fix_share @ 10:f962189bab94
Added tag 1.1.29.e2 for changeset 0f248ad86f9f
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Thu, 16 Oct 2008 00:16:50 +0200 |
parents | c5749e43b1d7 |
children |
line wrap: on
line source
#!/bin/sh -e ## 07_fix_share.dpatch by Martin Michlmayr <tbm@cyrius.com> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: use correct dir for share, Bug#327797 --- bins-1.1.29.orig/install.sh +++ bins-1.1.29/install.sh @@ -24,8 +24,9 @@ GLOBAL_RC="$RC" DESTDIR=`echo "$DESTDIR"|sed 's%/$%%'` -PREFIX=$DESTDIR/`echo "$PREFIX"|sed 's%^/%%'` PREFIX=`echo "$PREFIX"|sed 's%/$%%'` +GLOBAL_SHARE="$PREFIX/share" +PREFIX=$DESTDIR/`echo "$PREFIX"|sed 's%^/%%'` ETC=$DESTDIR/`echo "$ETC"|sed 's%^/%%'` ETC=`echo "$ETC"|sed 's%/$%%'` RC=$DESTDIR/`echo "$RC"|sed 's%^/%%'` @@ -227,7 +228,7 @@ do echo -n " $FILE" ed "$FILE" <<EoF 2>/dev/null -1,\$s%/usr/local/share%$SHARE%g +1,\$s%/usr/local/share%$GLOBAL_SHARE%g 1,\$s%/etc/bins%$GLOBAL_RC%g wq EoF