Browse Source

Make install work for just dc

signals
Gavin Howard 3 years ago
parent
commit
c494b57d81
Signed by untrusted user who does not match committer: gavin GPG Key ID: C08038BDF280D33E
  1. 2
      Makefile
  2. 5
      install.sh
  3. 2
      safe-install.sh

2
Makefile

@ -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
install.sh

@ -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

2
safe-install.sh

@ -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