Browse Source

Make install work for just dc

rand
Gavin Howard 2 years ago
parent
commit
c494b57d81
Signed by: gavin GPG Key ID: C08038BDF280D33E
3 changed files with 6 additions and 3 deletions
  1. +1
    -1
      Makefile
  2. +5
    -0
      install.sh
  3. +0
    -2
      safe-install.sh

+ 1
- 1
Makefile View File

@ -133,7 +133,7 @@ clean_tests: clean
$(RM) -f .math.txt .results.txt .ops.txt
$(RM) -f .test.txt
install:
install: uninstall
$(INSTALL) $(DESTDIR)$(PREFIX)/bin $(BC_EXEC) $(DC_EXEC)
uninstall:


+ 5
- 0
install.sh View File

@ -32,6 +32,11 @@ shift
exe="$1"
shift
while [ ! -f "$exe" ]; do
exe="$1"
shift
done
"$INSTALL" -Dm 755 "$exe" "$installdir/$exe"
while [ $# -gt 0 ]; do


+ 0
- 2
safe-install.sh View File

@ -32,8 +32,6 @@ src=$1
dst=$2
tmp="$dst.tmp.$$"
[ -f "$src" ] || exit 0
case "$dst" in
*/) printf "%s: %s ends in /\n", "$0" "$dst" 1>&2 ; exit 1 ;;
esac


Loading…
Cancel
Save