chiark / gitweb /
Fix file locations to be Debian compatible
authormartin f. krafft <madduck@debian.org>
Tue, 12 Aug 2008 01:23:53 +0000 (22:23 -0300)
committermartin f. krafft <madduck@debian.org>
Tue, 12 Aug 2008 17:33:59 +0000 (14:33 -0300)
Signed-off-by: martin f. krafft <madduck@debian.org>
Makefile
tg.sh

index 6eade1e1679a04f9bae79211cb91ee7fe3c69099..9b826c8e787dbfccee6b738ccc8cef1117cfbb60 100644 (file)
--- 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 e5766fe8cc5b460a09a6ea4d5e9e105dc64d74a9..2339675cac6b467f1ee622a962dc927aa9d36f2b 100644 (file)
--- 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