Cookbook: add an example of using default.do for text processing.
This commit is contained in:
parent
d663c9b67d
commit
3b305edc7e
18 changed files with 377 additions and 28 deletions
7
Documentation/cookbook/defaults/version.do
Normal file
7
Documentation/cookbook/defaults/version.do
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Try to get a version number from git, if possible.
|
||||
if ! git describe >$3; then
|
||||
echo "$0: Falling back to static version." >&2
|
||||
echo 'UNKNOWN' >$3
|
||||
fi
|
||||
redo-always
|
||||
redo-stamp <$3
|
||||
Loading…
Add table
Add a link
Reference in a new issue