From d7a622d4ba8b187a6f35a7dc5b054148aba2469f Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 1 Jul 2012 01:42:15 +0200 Subject: 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. --- src/Makefile | 11 +++++++++++ src/gitto | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 src/Makefile create mode 100755 src/gitto (limited to 'src') 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" "$@" -- cgit v1.3-2-g0d8e