Update NEWS for v0.4.14
[libquvi-scripts.git] / stamp.sh
blob68af21aa43482b94ac1468d9af301d7cbae82e23
1 #!/bin/sh
2 # stamp.sh for libquvi-scripts
3 # - stamps the lua scripts to match the version
5 stamp_scripts()
7 [ -z $1 ] && (echo "error: define path to top source dir" ; exit 1)
8 [ -z $2 ] && (echo "error: define path to top dist dir" ; exit 1)
9 if [ -x "$2/gen-ver.sh" ]; then
10 VN=`$2/gen-ver.sh $1`
11 find "$2/share/" -name '*.lua' \
12 -exec sed -i "s/^\(-- libquvi-scripts\).*/\1 $VN/" {} \;
14 exit 0
17 help()
19 echo "Usage: $0 [-h] [top_srcdir]
20 -h Show this help and exit"
21 exit 0
24 while [ $# -gt 0 ]
26 case "$1" in
27 -h) help;;
28 *) break;;
29 esac
30 shift
31 done
33 echo "Find and stamp lua scripts..."
34 stamp_scripts $1 $2