format: fix format %hd on some platforms
[jimtcl.git] / make-release.sh
blob07030c7c56dedb05cee8de8d7c595e6f0d7ddd0b
1 #!/bin/sh
3 version=`sed -n -e 's/.*JIM_VERSION *\([0-9]*\).*/0.\1/p' jim.h`
5 if [ `git clean -nqx | wc -l` -ne 0 ]; then
6 git clean -nqx
7 echo "***: Tree not clean"
8 exit 1
9 fi
10 if [ `git status | grep modified: | wc -l` -ne 0 ]; then
11 git status
12 echo "***: Modified files exist"
13 exit 1
15 mkdir jimtcl-$version
16 rsync --exclude=.git --exclude=jimtcl-$version -a ./ jimtcl-$version/
17 tar -czf jimtcl-$version.tar.gz jimtcl-$version
18 rm -rf jimtcl-$version
19 ls -l jimtcl-$version.tar.gz