File: make-release.sh

package info (click to toggle)
openocd 0.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 39,748 kB
  • sloc: ansic: 425,602; sh: 10,320; tcl: 9,539; asm: 3,895; makefile: 2,023; cpp: 1,671; perl: 1,197; python: 1,078; xml: 77; haskell: 32
file content (19 lines) | stat: -rwxr-xr-x 482 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

version=`sed -n -e 's/.*JIM_VERSION *\([0-9]*\).*/0.\1/p' jim.h`

if [ `git clean -nqx | wc -l` -ne 0 ]; then
	git clean -nqx
	echo "***: Tree not clean"
	exit 1
fi
if [ `git status | grep modified: | wc -l` -ne 0 ]; then
	git status
	echo "***: Modified files exist"
	exit 1
fi
mkdir jimtcl-$version
rsync --exclude=.git --exclude=jimtcl-$version -a ./ jimtcl-$version/
tar -czf jimtcl-$version.tar.gz jimtcl-$version
rm -rf jimtcl-$version
ls -l jimtcl-$version.tar.gz