Permalink
Browse files

fix sed syntax, add PREFIX for config dir

  • Loading branch information...
1 parent 6b6709e commit 03018e035851ee5537fad0cc70394f85233f8847 @cuzelac cuzelac committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/transform
View
@@ -5,8 +5,8 @@
[ -n "$PKGVERID" ] || exit 1
for x in `find "$INSTALLDIR" -type f`; do
- grep -q __MULTIPKG_BUILD_VERSION__ "$x" && sed -i '' -e "s,__MULTIPKG_BUILD_VERSION__,$PKGVERID," "$x"
- grep -q __MULTIPKG_CONFIG_DIR__ "$x" && sed -i '' -e "s,__MULTIPKG_CONFIG_DIR__,/usr/share/multipkg," "$x"
+ grep -q __MULTIPKG_BUILD_VERSION__ "$x" && sed -i -e "s,__MULTIPKG_BUILD_VERSION__,$PKGVERID," "$x"
+ grep -q __MULTIPKG_CONFIG_DIR__ "$x" && sed -i -e "s,__MULTIPKG_CONFIG_DIR__,$PREFIX/usr/share/multipkg," "$x"
done
exit 0

0 comments on commit 03018e0

Please sign in to comment.