aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-07-01 01:42:15 +0200
committerGravatar Tom Willemsen2012-07-01 01:42:15 +0200
commitd7a622d4ba8b187a6f35a7dc5b054148aba2469f (patch)
tree2e12e4eb8d386fd2f2e0c1b1051c594670db3c4b /src
parent5e17738e22b6d4907590614efe3d4cd122c5e2c4 (diff)
downloadgitto-d7a622d4ba8b187a6f35a7dc5b054148aba2469f.tar.gz
gitto-d7a622d4ba8b187a6f35a7dc5b054148aba2469f.zip
Add Makefiles, utility
Change the directory structure and add a bunch of Makefiles to make it easy to install gitto. Also add a utility to run gitto in its current state.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile11
-rwxr-xr-xsrc/gitto4
2 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..61946a0
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,11 @@
+DESTDIR ?= /usr/local
+
+all:
+
+.PHONY: install uninstall
+
+install: gitto
+ install -Dm 755 $^ ${DESTDIR}/bin/$^
+
+uninstall: gitto
+ rm -f ${DESTDIR}/bin/$^
diff --git a/src/gitto b/src/gitto
new file mode 100755
index 0000000..2f86f74
--- /dev/null
+++ b/src/gitto
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+BOOT="((@ (gitto main) main) (program-arguments))"
+exec guile $GUILE_FLAGS -c "$BOOT" "$0" "$@"