Commit ee69bea4 authored by Damyan Ivanov's avatar Damyan Ivanov

dpt: rename SCRIPTS variable to DPT__SCRIPTS

this way it is exported to sub-commands
parent 6d67960a
......@@ -44,7 +44,7 @@ $(INSTALLED_SCRIPT_MANUALS) : $(DESTDIR)/$(MAN_DIR)/dpt-%.1 : scripts/% $(DESTDI
$(INSTALLED_BINS) : $(DESTDIR)/$(PREFIX)/bin/% : bin/%
$(INSTALL_BIN) $< $@
sed -i 's,SCRIPTS=scripts # REPLACED.*,SCRIPTS="/$(PREFIX)/share/pkg-perl-tools",' $@
sed -i 's,DPT__SCRIPTS=scripts # REPLACED.*,DPT__SCRIPTS="/$(PREFIX)/share/pkg-perl-tools",' $@
$(INSTALLED_BIN_MANUALS) : $(DESTDIR)/$(MAN_DIR)/%.1 : bin/% $(DESTDIR)/$(MAN_DIR)
$(POD2MAN) -n "$*" $< > $@
......
......@@ -5,7 +5,7 @@ set -u
# documentation is at the end
SCRIPTS=scripts # REPLACED AT INSTALL TIME
DPT__SCRIPTS=scripts # REPLACED AT INSTALL TIME
help() {
perldoc "$0"
......@@ -39,11 +39,11 @@ fi
shift
if [ ! -x "$SCRIPTS/$CMD" ]; then
if [ ! -x "$DPT__SCRIPTS/$CMD" ]; then
echo "Subcommand $CMD not found. Try --help."
exit 1
else
exec "$SCRIPTS/$CMD" "$@"
exec "$DPT__SCRIPTS/$CMD" "$@"
fi
DOC=<<EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment