FreeCalypso > hg > fc-selenite
comparison scripts/make-version.sh @ 13:f10cbd8a51c4
scripts: pruned import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 15 Jul 2018 21:34:56 +0000 |
parents | |
children | 987aed835df0 |
comparison
equal
deleted
inserted
replaced
12:e825175be40d | 13:f10cbd8a51c4 |
---|---|
1 #!/bin/sh | |
2 | |
3 if [ $# != 1 ] | |
4 then | |
5 echo "usage: $0 component-name" 1>&2 | |
6 exit 1 | |
7 fi | |
8 | |
9 echo "static char *verstring_$1 = \"$1 FreeCalypso Magnetite\";" | |
10 echo | |
11 echo "char *$1_version(void)" | |
12 echo '{' | |
13 echo " return verstring_$1;" | |
14 echo '}' |