From 2e722cbe3f885dfe17ba511b70daa8fcbce22645 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 11 Aug 2008 22:23:53 -0300 Subject: [PATCH] Fix file locations to be Debian compatible Signed-off-by: martin f. krafft --- Makefile | 10 +++++----- tg.sh | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 6eade1e..9b826c8 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ # Set PREFIX to wherever you want to install TopGit PREFIX = $(HOME) bindir = $(PREFIX)/bin -cmddir = $(PREFIX)/libexec/topgit -sharedir = $(PREFIX)/share/topgit +cmddir = $(PREFIX)/share/topgit +docdir = $(PREFIX)/share/doc/topgit hooksdir = $(cmddir)/hooks @@ -20,7 +20,7 @@ tg $(commands_out) $(hooks_out): % : %.sh @sed -e 's#@cmddir@#$(cmddir)#g;' \ -e 's#@hooksdir@#$(hooksdir)#g' \ -e 's#@bindir@#$(bindir)#g' \ - -e 's#@sharedir@#$(sharedir)#g' \ + -e 's#@docdir@#$(docdir)#g' \ $@.sh >$@+ && \ chmod +x $@+ && \ mv $@+ $@ @@ -37,8 +37,8 @@ install:: all install $(commands_out) "$(cmddir)" install -d -m 755 "$(hooksdir)" install $(hooks_out) "$(hooksdir)" - install -d -m 755 "$(sharedir)" - install -m 644 $(help_out) "$(sharedir)" + install -d -m 755 "$(docdir)" + install -m 644 $(help_out) "$(docdir)" clean:: rm -f tg $(commands_out) $(hooks_out) $(help_out) diff --git a/tg.sh b/tg.sh index e5766fe..2339675 100644 --- a/tg.sh +++ b/tg.sh @@ -197,8 +197,8 @@ do_help() echo "TopGit v0.2 - A different patch queue manager" echo "Usage: tg ($cmds|help) ..." - elif [ -r "@sharedir@/tg-$1.txt" ] ; then - cat "@sharedir@/tg-$1.txt" + elif [ -r "@docdir@/tg-$1.txt" ] ; then + cat "@docdir@/tg-$1.txt" else echo "`basename $0`: no help for $1" 1>&2 fi -- 2.30.2