build system: add setlocalversion

Version is built from git commit id, for example wmfs-ga33ec04-dirty
-> 'g', this is a git repo
-> a33ec04 is the beginning of the commit id (sha1)
-> dirty mean that there is uncommitted changes

wmfs users gives their 'wmfs -v' and developers can easily identify wmfs
version.

Move status.sh to scripts/ with setlocalversion

Signed-off-by: Philippe Pepiot <phil@philpep.org>
This commit is contained in:
Philippe Pepiot
2011-04-16 20:52:28 +02:00
parent a33ec045ab
commit e57a6c5e62
5 changed files with 75 additions and 3 deletions

11
scripts/status.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
#WMFS status.sh example file
#Will be executed if put in ~/.config/wmfs/
#Timing adjustable in wmfsrc (misc -> status_timing)
statustext()
{
wmfs -s "`date`"
}
statustext