-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-src-doc
42 lines (36 loc) · 911 Bytes
/
build-src-doc
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
#!/bin/sh -e
# This script builds the regular and upstream source packages,
# and a minimally HTMLified version of HISTORY.
# If the -u option is specified, skips creation of the upstream packages.
if [ $# -ge 1 -a $1 = "-u" ]
then
SKIP_UPSTREAM=1
shift
else
SKIP_UPSTREAM=0
fi
mkdir -p packages
# Source package
mkdir tmp
cd tmp
svn checkout svn://mactv/free42/trunk free42
find . -type d -name .svn -prune -exec rm -rf {} \;
rm -rf free42/util/icon
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
if [ $SKIP_UPSTREAM -eq 0 ]
then
cd upstream
sh ./build-nologo
sh ./build-macports
cd ..
fi
# Wrap it all up...
cd util
cc -o txt2html txt2html.c
cd ..
util/txt2html "Free42 history" <HISTORY >history.html
mv history.html packages