Commit 8856d408 authored by Damyan Ivanov's avatar Damyan Ivanov

provide 'dpt co' as a shortcut for 'dpt checkout'

parent b3917781
......@@ -18,6 +18,7 @@ MAN_DIR := $(PREFIX)/share/man/man1
INSTALLED_SCRIPTS := $(addprefix $(DESTDIR)/$(PREFIX)/share/pkg-perl-tools/,$(SCRIPTS))
INSTALLED_SCRIPT_MANUALS := $(addprefix $(DESTDIR)/$(MAN_DIR)/dpt-,$(addsuffix .1,$(filter-out posix-lib.sh,$(SCRIPTS))))
INSTALLED_SCRIPT_ALIAS_MANUALS := $(addprefix $(DESTDIR)/$(MAN_DIR)/dpt-,$(addsuffix .1,co))
INSTALLED_SCRIPT_LIBS := $(addprefix $(DESTDIR)/$(PREFIX)/share/pkg-perl-tools/lib/,$(SCRIPT_LIBS))
INSTALLED_BINS := $(addprefix $(DESTDIR)/$(PREFIX)/bin/,$(BINS))
INSTALLED_BIN_MANUALS := $(addprefix $(DESTDIR)/$(MAN_DIR)/,$(BIN_MANUALS))
......@@ -30,6 +31,7 @@ POD2MAN := pod2man --release="pkg-perl-tools $(VERSION)" -c "Debian Perl packagi
.PHONY: install
install: $(INSTALLED_SCRIPTS) $(INSTALLED_SCRIPT_MANUALS) \
$(INSTALLED_SCRIPT_ALIAS_MANUALS) \
$(INSTALLED_SCRIPT_LIBS) \
$(INSTALLED_BINS) $(INSTALLED_BIN_MANUALS) \
$(INSTALLED_LINTIAN_CHECKS) $(INSTALLED_LINTIAN_PROFILES)
......@@ -43,6 +45,9 @@ $(DESTDIR)/$(PREFIX)/share/lintian/profiles/pkg-perl :
$(INSTALLED_SCRIPTS): $(DESTDIR)/$(PREFIX)/share/pkg-perl-tools/% : scripts/%
$(INSTALL_BIN) $< $@
$(DESTDIR)/$(MAN_DIR)/dpt-co.1:
ln -s dpt-checkout.1 $@
$(INSTALLED_SCRIPT_MANUALS) : $(DESTDIR)/$(MAN_DIR)/dpt-%.1 : scripts/% $(DESTDIR)/$(MAN_DIR)
$(POD2MAN) -n "dpt-$*" $< > $@
......
......@@ -39,6 +39,10 @@ fi
shift
if [ "$CMD" = "co" ]; then
CMD=checkout
fi
if [ ! -x "$DPT__SCRIPTS/$CMD" ]; then
echo "Subcommand $CMD not found. Try --help."
exit 1
......@@ -87,6 +91,8 @@ See L<dpt-cd(1)>
=item B<checkout> - work on pkg-perl package
=item (also available as B<co>)
See L<dpt-checkout(1)>.
=item B<dch-note> - add notes/TODO items to F<debian/changelog>
......
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