-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·52 lines (43 loc) · 773 Bytes
/
build.sh
File metadata and controls
executable file
·52 lines (43 loc) · 773 Bytes
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
#!/bin/sh
if [ -z "$1" ]; then
echo 2>&1 "ERROR, no architecture specified"
exit 2
else
ARCH="$1"
fi
if [ -z "$2" ]; then
PKGDIR=`pwd`
else
PKGDIR="$2"
fi
if [ ! -r $PKGDIR/appinfo.json ]; then
echo 1>&2 "ERROR, current/specified directory does not reference a Palm app ($PKGDIR)"
exit 2
fi
(cd src; make install ARCH=$ARCH)
SRCDIR="src/build/$ARCH"
if [ ! -d $SRCDIR ]; then
echo 1>&2 "ERROR, could not find package source directory for $ARCH ($SRCDIR)"
exit 2
fi
palm_gen_ipk.sh $PKGDIR \
"
control/postinst
control/prerm
" \
\
"
appinfo.json
icon.png
icon_splash.png
index.html
app
sources.json
install=$SRCDIR
src/Makefile
src/patch
control/postinst
control/prerm
" \
\
$ARCH