summaryrefslogtreecommitdiffstats
path: root/project
blob: 47b52fd04bca43aebd5afffcaf61f00849ee5b3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}

# history - 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"