-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-windows
47 lines (40 loc) · 1.3 KB
/
build-windows
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/sh -e
# This script builds and packages the Windows and Android versions,
# and the Generic, iPhone, and Android skins packages, and the Upstream
# source package.
# It should be run in a Cygwin bash shell (under MS Windows, obviously).
mkdir -p packages
# Build Windows version
cd windows
cmd /c build-all.bat
cd ..
rm -rf Free42Windows
mkdir Free42Windows
cp windows/README.txt Free42Windows
cp windows/Free42Binary.exe Free42Windows
cp windows/Free42Decimal.exe Free42Windows
zip -r packages/Free42Windows.zip Free42Windows
rm -rf Free42Windows
# Source package, and Windows/Unix skins packages
mkdir tmp
cd tmp
svn checkout svn://mactv/free42/trunk free42
find . -type d -name .svn -prune -exec rm -rf {} \;
zip -j ../packages/Free42Skins.zip free42/skins/*
zip -j ../packages/Free42iPhoneSkins.zip free42/iphoneskins/*
zip -j ../packages/Free42AndroidSkins.zip free42/androidskins/*
tar cvfz ../packages/free42.tgz free42
cd ..
rm -rf tmp
# "Upstream" source package, for Fedora or other Linux distros
# Has all non-Linux versions, and all skins containing the HP logo, removed
cd upstream
sh ./build-upstream
cd ..
# Wrap it all up...
cd util
cc -o txt2html txt2html.c
cd ..
util/txt2html "Free42 HISTORY" <HISTORY >history.html
util/txt2html "Free42 TODO" <TODO >todo.html
mv history.html todo.html packages