Added support for OBJDIR
This commit is contained in:
parent
4a62ebc9e9
commit
b7a553b6a5
@ -150,15 +150,18 @@ while [ $# -gt 0 ]; do
|
|||||||
|
|
||||||
#install
|
#install
|
||||||
if [ "$install" -eq 1 ]; then
|
if [ "$install" -eq 1 ]; then
|
||||||
|
source="${target#$OBJDIR}"
|
||||||
$DEBUG $MKDIR -- "$PREFIX" || exit 2
|
$DEBUG $MKDIR -- "$PREFIX" || exit 2
|
||||||
mode="-m 0644"
|
mode="-m 0644"
|
||||||
[ -x "$target" ] && mode="-m 0755"
|
[ -x "${source}.in" ] && mode="-m 0755"
|
||||||
$DEBUG $INSTALL $mode "$target" "$PREFIX/$target" \
|
$DEBUG $INSTALL $mode "$target" "$PREFIX/$source" \
|
||||||
|| exit 2
|
|| exit 2
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#create
|
#create
|
||||||
|
source="${target#$OBJDIR}"
|
||||||
|
source="${source}.in"
|
||||||
$DEBUG $SED -e "s,@PACKAGE@,$PACKAGE,g" \
|
$DEBUG $SED -e "s,@PACKAGE@,$PACKAGE,g" \
|
||||||
-e "s,@VERSION@,$VERSION,g" \
|
-e "s,@VERSION@,$VERSION,g" \
|
||||||
-e "s,@PREFIX@,$PREFIX,g" \
|
-e "s,@PREFIX@,$PREFIX,g" \
|
||||||
@ -171,11 +174,11 @@ while [ $# -gt 0 ]; do
|
|||||||
-e "s,@MANDIR@,$MANDIR,g" \
|
-e "s,@MANDIR@,$MANDIR,g" \
|
||||||
-e "s,@SYSCONFDIR@,$SYSCONFDIR,g" \
|
-e "s,@SYSCONFDIR@,$SYSCONFDIR,g" \
|
||||||
-e "s,@PWD@,$PWD,g" \
|
-e "s,@PWD@,$PWD,g" \
|
||||||
-- "$target.in" > "$target"
|
-- "$source" > "$target"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
$RM -- "$target" 2> "$DEVNULL"
|
$RM -- "$target" 2> "$DEVNULL"
|
||||||
exit 2
|
exit 2
|
||||||
elif [ -x "$target.in" ]; then
|
elif [ -x "$source" ]; then
|
||||||
$DEBUG $CHMOD 0755 "$target"
|
$DEBUG $CHMOD 0755 "$target"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user