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:
11
scripts/status.sh
Executable file
11
scripts/status.sh
Executable 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
|
||||
Reference in New Issue
Block a user