summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean B. Palmer <sbp@aldebaran.local>2011-11-15 14:05:45 +0000
committerSean B. Palmer <sbp@aldebaran.local>2011-11-15 14:05:45 +0000
commit12d983561a2098141ca1c8b7270060997112c810 (patch)
tree8c16cc081d32f6757e32e33577472f1f51312855
parent27d80498d30d8de84fff82fab363b0bc1ad5c116 (diff)
downloadbot-12d983561a2098141ca1c8b7270060997112c810.tar.gz
bot-12d983561a2098141ca1c8b7270060997112c810.tar.bz2
bot-12d983561a2098141ca1c8b7270060997112c810.zip
Project script instead of a Makefile
-rw-r--r--Makefile25
-rwxr-xr-xproject26
2 files changed, 26 insertions, 25 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 6ea3aa9..0000000
--- a/Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
-# Makefile
-# Copyright 2008, Sean B. Palmer, inamidst.com
-# Licensed under the Eiffel Forum License 2.
-
-# archive - Create phenny.tar.bz2 using git archive
-archive: ;
- # hg archive -t tbz2 phenny-hg.tar.bz2
- git archive --format=tar --prefix=phenny/ HEAD | bzip2 > phenny.tar.bz2
-
-# ci - Check the code into git and push to github
-ci: ;
- # hg ci
- git commit -a && git push origin master
-
-# log - Show a log of recent updates
-log: ;
- # git log --date=short --format='%h %ad %s'
- git graph
-
-# sync - Push phenny to pubble:opt/phenny/
-sync: ;
- rsync -avz ./ pubble:opt/phenny/
-
-help: ;
- @egrep '^# [a-z]+ - ' Makefile | sed 's/# //'
diff --git a/project b/project
new file mode 100755
index 0000000..21ff142
--- /dev/null
+++ b/project
@@ -0,0 +1,26 @@
+#!/bin/bash
+# project
+# Copyright 2008, Sean B. Palmer, inamidst.com
+# Licensed under the Eiffel Forum License 2.
+
+# archive - Create phenny.tar.bz2 using git archive
+function archive() {
+ git archive --format=tar --prefix=phenny/ HEAD | bzip2 > phenny.tar.bz2
+}
+
+# commit - Check the code into git and push to github
+function commit() {
+ git commit -a && git push origin master
+}
+
+# log - Show a log of recent updates
+function history() {
+ git log --pretty=oneline --no-merges -10
+}
+
+# help - Show functions in project script
+function help() {
+ egrep '^# [a-z]+ - ' $0 | sed 's/# //'
+}
+
+eval "$1"