Substitute every occurence on each line

This commit is contained in:
Pierre Pronchery 2014-10-25 00:38:01 +02:00
parent eb327748c2
commit bcb4a0d64c

View File

@ -156,18 +156,18 @@ while [ $# -gt 0 ]; do
fi fi
#create #create
$DEBUG $SED -e "s,@PACKAGE@,$PACKAGE," \ $DEBUG $SED -e "s,@PACKAGE@,$PACKAGE,g" \
-e "s,@VERSION@,$VERSION," \ -e "s,@VERSION@,$VERSION,g" \
-e "s,@PREFIX@,$PREFIX," \ -e "s,@PREFIX@,$PREFIX,g" \
-e "s,@BINDIR@,$BINDIR," \ -e "s,@BINDIR@,$BINDIR,g" \
-e "s,@DATADIR@,$DATADIR," \ -e "s,@DATADIR@,$DATADIR,g" \
-e "s,@INCLUDEDIR@,$INCLUDEDIR," \ -e "s,@INCLUDEDIR@,$INCLUDEDIR,g" \
-e "s,@LDSO@,$LDSO," \ -e "s,@LDSO@,$LDSO,g" \
-e "s,@LIBDIR@,$LIBDIR," \ -e "s,@LIBDIR@,$LIBDIR,g" \
-e "s,@LIBEXECDIR@,$LIBEXECDIR," \ -e "s,@LIBEXECDIR@,$LIBEXECDIR,g" \
-e "s,@MANDIR@,$MANDIR," \ -e "s,@MANDIR@,$MANDIR,g" \
-e "s,@SYSCONFDIR@,$SYSCONFDIR," \ -e "s,@SYSCONFDIR@,$SYSCONFDIR,g" \
-e "s,@PWD@,$PWD," \ -e "s,@PWD@,$PWD,g" \
-- "$target.in" > "$target" -- "$target.in" > "$target"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
$RM -- "$target" 2> "$DEVNULL" $RM -- "$target" 2> "$DEVNULL"