Permalink
Browse files

implement makefile

  • Loading branch information...
1 parent 04c10f8 commit 847f1ac589e92b6bee112803c05d4824a04f44ea @falconindy committed Jul 3, 2010
Showing with 20 additions and 11 deletions.
  1. +7 −0 Makefile
  2. +13 −11 clockwerk → clockwerk.in
View
7 Makefile
@@ -0,0 +1,7 @@
+VERSION=$(shell git describe --always)
+
+all: clockwerk
+
+clockwerk: clockwerk.in
+ sed "s/VERSION=@VERSION@/VERSION=${VERSION}/" clockwerk.in > clockwerk
+ chmod 755 clockwerk
View
24 clockwerk → clockwerk.in
@@ -1,26 +1,28 @@
#!/bin/bash
+VERSION=@VERSION@
CW_DATADIR="${XDG_DATA_HOME:-$HOME/.local/share}/clockwerk"
DBFILE="${CW_DATADIR}/clockwerk.db"
LOCKFILE="${CW_DATADIR}/clockwerk.lock"
usage() {
cat << EOF
- clockwerk <action> [arguments]
+clockwerk $VERSION
+Usage: clockwerk <action> [arguments]
- actions: job
- category
- report
+actions: job
+ category
+ report
- arguments: job start <category> [comment]
- stop
- delete <jobid>
+arguments: job start <category> [comment]
+ stop
+ delete <jobid>
- category add <name> [description]
- edit <name> <newname> [description]
- delete <name>
+ category add <name> [description]
+ edit <name> <newname> [description]
+ delete <name>
- report [-c category] [-f from] [-t to]
+ report [-c category] [-f from] [-t to]
EOF

0 comments on commit 847f1ac

Please sign in to comment.