File: build-on-win32

package info (click to toggle)
tickr 0.7.0-3
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,024 kB
  • sloc: ansic: 11,309; sh: 1,301; xml: 64; makefile: 54
file content (47 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download | duplicates (2)
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
#! /bin/bash
# This script compile TICKR on win32 then build the installer
# (by calling build-win32-installer)

runtime="gtk2-win32-full-runtime"
dlls="dlls"
libetm_v="0.5.0"

if [ ! -e "$runtime" ]; then
	echo "You must copy "$runtime" under tickr-0.7.x/"
	exit 1
elif [ ! -e "win32_install_stuff/$dlls" ]; then
	echo "You must copy "$dlls" under tickr-0.7.x/win32_install_stuff/"
	exit 2
else
	cp src/libetm-"$libetm_v"/Makefile-libetm-win32 src/libetm-"$libetm_v"/Makefile
	cp src/tickr/Makefile-tickr-win32 src/tickr/Makefile
	cp win32_install_stuff/build-win32-installer src/tickr/
	cp win32_install_stuff/installer.iss ./
	cd src/libetm-"$libetm_v"
	make
	exit_value1="$?"
	cd ../tickr
	if [ "$exit_value1" = 0 ]; then
		printf "\n=== libetm make: OK ===\n\n"
		make
		if [ "$?" = 0 ]; then
			printf "\n=== tickr make: OK ===\n\n"
			build-win32-installer
		else
			printf "\n=== tickr make: ERROR ===\nPress any key\n\n"
			read k
		fi
		make clean
	else
		printf "\n=== libetm make: ERROR ===\nPress any key\n\n"
		read k
	fi
	cd ../libetm-"$libetm_v"
	make clean
	cd ../..
	rm src/libetm-"$libetm_v"/Makefile
	rm src/tickr/Makefile
	rm src/tickr/build-win32-installer
	rm installer.iss
	exit 0
fi