todo.sh: Generate version info at dist time.
When generating the distribution files, prepare todo.sh by subbing in the current version so that users will get a proper version number. Tries to detect VERSION-FILE for running from the development directory but this doesn't work well when $PWD is not the top of the git repo. Signed-off-by: Emil Sit <sit@emilsit.net>
This commit is contained in:
4
todo.sh
4
todo.sh
@@ -3,8 +3,10 @@
|
||||
# NOTE: Todo.sh requires the todo.cfg configuration file to run.
|
||||
# Place the todo.cfg file in your home directory or use the -d option for a custom location.
|
||||
|
||||
[ -f VERSION-FILE ] && . VERSION-FILE || VERSION="@DEV_VERSION@"
|
||||
version() { sed -e 's/^ //' <<EndVersion
|
||||
TODO.TXT Command Line Interface
|
||||
TODO.TXT Command Line Interface v$VERSION
|
||||
|
||||
Latest version: http://github.com/ginatrapani/todo.txt-cli/tree/master
|
||||
First release: 5/11/2006
|
||||
Conceived and released by: Gina Trapani (http://ginatrapani.org)
|
||||
|
||||
Reference in New Issue
Block a user