File: export

package info (click to toggle)
atari800 5.2.0-2
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid, trixie
  • size: 7,196 kB
  • sloc: ansic: 86,829; asm: 18,694; sh: 3,173; cpp: 2,798; java: 2,453; xml: 957; makefile: 727; perl: 334; pascal: 178
file content (56 lines) | stat: -rwxr-xr-x 1,466 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
# This scripts helps with building the source .tar.gz file

VER_MAJOR=5
VER_MINOR=2
VER_MICRO=0
#
VERSION=$VER_MAJOR"."$VER_MINOR"."$VER_MICRO
TAG="ATARI800_"$VER_MAJOR"_"$VER_MINOR"_"$VER_MICRO
#upper case the tag
TAG=`echo $TAG | tr [:lower:] [:upper:]`
FOLDER="atari800-"$VERSION
FNAME=$FOLDER"-src.tgz"
#
echo "download from GitHub? (y/N)"
read key
if [ "x"$key = "xy" ]; then
	git clone https://github.com/atari800/atari800.git
	rm -rf atari800/.git atari800/.gitignore
	rm -rf atari800/.travis atari800/.travis.yml
fi
#
grep "[Vv]ersion "$VERSION atari800/README.TXT >/dev/null
if [ $? -ne 0 ]; then
	echo "ERROR: increase version in README.TXT"
	exit 1
fi
grep "[Vv]ersion "$VERSION atari800/DOC/README >/dev/null
if [ $? -ne 0 ]; then
	echo "ERROR: increase version in DOC/README"
	exit 1
fi
grep "Atari800 "$VERSION atari800/src/atari800.man >/dev/null
if [ $? -ne 0 ]; then
	echo "ERROR: increase version in src/atari800.man"
	exit 1
fi
grep "%define ver" atari800/atari800.spec | grep $VERSION >/dev/null
if [ $? -ne 0 ]; then
	echo "ERROR: increase version in atari800.spec"
	exit 1
fi
grep "AC_INIT(Atari800, "$VERSION atari800/configure.ac | grep $VERSION >/dev/null
if [ $? -ne 0 ]; then
	echo "ERROR: increase version in configure.ac"
	exit 1
fi
#
cd atari800
./autogen.sh
# remove leftovers from autogen process
rm -f autogen.sh config.cache config.log
rm -rf autom4te.cache
cd ..
mv atari800 $FOLDER
GZIP=--best tar chozvf $FNAME $FOLDER