Browse Source

Remove the use of realpath in the install

This is to (hopefully) make the install work on Mac OSX. This issue was
brought to my attention by John Regan (jprjr) on GitHub.
signals
Gavin Howard 3 years ago
parent
commit
dbbe325b4e
Signed by untrusted user who does not match committer: gavin
GPG Key ID: C08038BDF280D33E
  1. 2
      Makefile.in
  2. 13
      install.sh

2
Makefile.in

@ -269,7 +269,7 @@ install_dc_manpage:
$(SAFE_INSTALL) $(MANPAGE_INSTALL_ARGS) $(DC_MANPAGE) $(DESTDIR)$(MAN1DIR)/$(DC_MANPAGE_NAME)
install:%%INSTALL_PREREQS%%
$(INSTALL) $(DESTDIR)$(BINDIR) $(BIN) "$(EXEC_SUFFIX)"
$(INSTALL) $(DESTDIR)$(BINDIR) "$(EXEC_SUFFIX)"
uninstall_bc_manpage:
$(RM) -f $(DESTDIR)$(MAN1DIR)/$(BC_MANPAGE_NAME)

13
install.sh

@ -15,29 +15,26 @@
#
usage() {
printf "usage: %s install_dir bin_dir exec_suffix\n" "$0" 1>&2
printf "usage: %s install_dir exec_suffix\n" "$0" 1>&2
exit 1
}
script=$(realpath "$0")
script="$0"
scriptdir=$(dirname "$script")
INSTALL="$scriptdir/safe-install.sh"
test "$#" -ge 3 || usage
test "$#" -ge 2 || usage
installdir="$1"
shift
bindir="$1"
shift
exec_suffix="$1"
shift
cd "$bindir"
bindir="$scriptdir/bin"
for exe in ./*; do
for exe in $bindir/*; do
base=$(basename "$exe")

Loading…
Cancel
Save