Mercurial > bins
view debian/patches/07_fix_share @ 11:8b62360dc2a5 default tip
Adding notes, cloning edit-gui
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Sun, 02 Nov 2008 16:29:52 +0100 |
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