2 # stamp.sh for libquvi-scripts
3 # - stamps the lua scripts to match the version
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 D
='common/ media/ playlist/ scan/ util/'
13 find "$2/share/lua/$d" -name '*.lua' \
14 -exec echo "Stamp {}" \
; \
15 -exec sed -i "s/^\(-- libquvi-scripts\).*/\1 $VN/" {} \
;
23 echo "Usage: $0 [-h] [top_srcdir]
24 -h Show this help and exit"
37 echo "Find and stamp lua scripts..."