Skip to content

Commit 638c226

Browse files
author
Peter
committed
make it working under Zaurus again
1 parent e1c0c88 commit 638c226

File tree

13 files changed

+193
-14
lines changed

13 files changed

+193
-14
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
nbproject/private/
12
tmp/
23
build/
4+
dist/
35
*.aux
46
*.log
57
*.toc
68
*.out
7-
*~
9+
*~
10+
zaurus/packaging/home/QtPalmtop/java/ebbeflut/

.gitignore~

-6
This file was deleted.

doc/readme.pdf

1.16 KB
Binary file not shown.

doc/readme.tex

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ \subsection{Windows}
4040
Copy all files in your favourite directory. Than click on winStart(.bat).
4141
\subsection{Mac}
4242
The same procedure as discribed under Linux.
43+
\subsection{Zaurus}
44+
Either use the ipk file under zaurus/ or create the ipk file with the provided script.
45+
See also this
46+
\href{http://www.oesf.org/index.php?title=IPKG_Howto}{how to}.
4347
\section{Laws}
4448
\subsection{Overview how a move looks like}
4549
\subsubsection{Check}

nbproject/private/private.properties

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
compile.on.save=true
2+
do.depend=false
3+
do.jar=true
4+
javac.debug=true
5+
javadoc.preview=true
26
user.properties.file=/home/peterk/.netbeans/7.0/build.properties

nbproject/project.properties

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
annotation.processing.enabled=true
22
annotation.processing.enabled.in.editor=false
3-
annotation.processing.processor.options=
4-
annotation.processing.processors.list=
53
annotation.processing.run.all.processors=true
64
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
5+
application.title=Ebbe und Flut
6+
application.vendor=peterk
77
build.classes.dir=${build.dir}/classes
88
build.classes.excludes=**/*.java,**/*.form
99
# This directory is removed when the project is cleaned:
@@ -24,6 +24,7 @@ debug.test.classpath=\
2424
dist.dir=dist
2525
dist.jar=${dist.dir}/Ebbe und Flut.jar
2626
dist.javadoc.dir=${dist.dir}/javadoc
27+
endorsed.classpath=
2728
excludes=
2829
file.reference.ebbeflut-src=src
2930
file.reference.ebbeflut-test=test
@@ -35,8 +36,8 @@ javac.compilerargs=
3536
javac.deprecation=false
3637
javac.processorpath=\
3738
${javac.classpath}
38-
javac.source=1.6
39-
javac.target=1.6
39+
javac.source=1.2
40+
javac.target=1.1
4041
javac.test.classpath=\
4142
${javac.classpath}:\
4243
${build.classes.dir}:\

zaurus/ebbeflut_0.1_arm.ipk

41.8 KB
Binary file not shown.

zaurus/ipkg-build.sh

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
#!/bin/sh
2+
3+
cp ../build/classes/*class packaging/home/QtPalmtop/java/ebbeflut/
4+
5+
# ipkg-build -- construct a .ipk from a directory
6+
# Carl Worth <[email protected]>
7+
# based on a script by Steve Redler IV, [email protected] 5-21-2001
8+
set -e
9+
10+
ipkg_extract_value() {
11+
sed -e "s/^[^:]*:[[:space:]]*//"
12+
}
13+
14+
required_field() {
15+
field=$1
16+
17+
value=`grep "^$field:" < $CONTROL/control | ipkg_extract_value`
18+
if [ -z "$value" ]; then
19+
echo "*** Error: $CONTROL/control is missing field $field" >&2
20+
return 1
21+
fi
22+
echo $value
23+
return 0
24+
}
25+
26+
pkg_appears_sane() {
27+
local pkg_dir=$1
28+
29+
local owd=`pwd`
30+
cd $pkg_dir
31+
32+
PKG_ERROR=0
33+
34+
large_uid_files=`find . -uid +99`
35+
if [ -n "$large_uid_files" ]; then
36+
echo "*** Warning: The following files have a UID greater than 99.
37+
You probably want to chown these to a system user: " >&2
38+
ls -ld $large_uid_files
39+
echo >&2
40+
fi
41+
42+
43+
if [ ! -f "$CONTROL/control" ]; then
44+
echo "*** Error: Control file $pkg_dir/$CONTROL/control not found." >&2
45+
cd $owd
46+
return 1
47+
fi
48+
49+
pkg=`required_field Package`
50+
[ "$?" -ne 0 ] && PKG_ERROR=1
51+
52+
version=`required_field Version | sed 's/.*://;'`
53+
[ "$?" -ne 0 ] && PKG_ERROR=1
54+
55+
arch=`required_field Architecture`
56+
[ "$?" -ne 0 ] && PKG_ERROR=1
57+
58+
required_field Maintainer >/dev/null
59+
[ "$?" -ne 0 ] && PKG_ERROR=1
60+
61+
required_field Description >/dev/null
62+
[ "$?" -ne 0 ] && PKG_ERROR=1
63+
64+
section=`required_field Section`
65+
[ "$?" -ne 0 ] && PKG_ERROR=1
66+
if [ -z "$section" ]; then
67+
echo "The Section field should have one of the following values:" >&2
68+
echo "Games, Multimedia, Communications, Settings, Utilies, Applications, Console, Misc" >&2
69+
fi
70+
71+
priority=`required_field Priority`
72+
[ "$?" -ne 0 ] && PKG_ERROR=1
73+
if [ -z "$priority" ]; then
74+
echo "The Priority field should have one of the following values:" >&2
75+
echo "required, important, standard, optional, extra." >&2
76+
echo "If you don't know which priority value you should be using, then use \`optional'" >&2
77+
fi
78+
79+
if echo $pkg | grep '[^a-z0-9.+-]'; then
80+
echo "*** Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])" >&2
81+
PKG_ERROR=1;
82+
fi
83+
84+
local bad_fields=`sed -ne 's/^\([^[:space:]][^:[:space:]]\+[[:space:]]\+\)[^:].*/\1/p' < $CONTROL/control | sed -e 's/\\n//'`
85+
if [ -n "$bad_fields" ]; then
86+
bad_fields=`echo $bad_fields`
87+
echo "*** Error: The following fields in $CONTROL/control are missing a ':'" >&2
88+
echo " $bad_fields" >&2
89+
echo "ipkg-build: This may be due to a missing initial space for a multi-line field value" >&2
90+
PKG_ERROR=1
91+
fi
92+
93+
for script in $CONTROL/preinst $CONTROL/postinst $CONTROL/prerm $CONTROL/postrm; do
94+
if [ -f $script -a ! -x $script ]; then
95+
echo "*** Error: package script $script is not executable" >&2
96+
PKG_ERROR=1
97+
fi
98+
done
99+
100+
if [ -f $CONTROL/conffiles ]; then
101+
for cf in `cat $CONTROL/conffiles`; do
102+
if [ ! -f ./$cf ]; then
103+
echo "*** Error: $CONTROL/conffiles mentions conffile $cf which does not exist" >&2
104+
PKG_ERROR=1
105+
fi
106+
done
107+
fi
108+
109+
cd $owd
110+
return $PKG_ERROR
111+
}
112+
113+
###
114+
# ipkg-build "main"
115+
###
116+
117+
case $# in
118+
1)
119+
dest_dir=.
120+
;;
121+
2)
122+
dest_dir=$2
123+
;;
124+
*)
125+
echo "Usage: ipkg-build <pkg_directory> [<destination_directory>]" >&2
126+
exit 1
127+
;;
128+
esac
129+
130+
pkg_dir=$1
131+
echo "using dir to package ipk: $pkg_dir"
132+
if [ ! -d $pkg_dir ]; then
133+
echo "*** Error: Directory $pkg_dir does not exist" >&2
134+
exit 1
135+
fi
136+
137+
# CONTROL is second so that it takes precedence
138+
CONTROL="CONTROL"
139+
echo "using CONTROL dir: $CONTROL"
140+
141+
if [ -z "$CONTROL" ]; then
142+
echo "*** Error: Directory $pkg_dir has no CONTROL subdirectory." >&2
143+
exit 1
144+
fi
145+
146+
if ! pkg_appears_sane $pkg_dir; then
147+
echo >&2
148+
echo "ipkg-build: Please fix the above errors and try again." >&2
149+
exit 1
150+
fi
151+
152+
tmp_dir=$dest_dir/IPKG_BUILD.$$
153+
mkdir $tmp_dir
154+
155+
tar -C $pkg_dir -czf $tmp_dir/data.tar.gz . --exclude=$CONTROL
156+
tar -C $pkg_dir/$CONTROL -czf $tmp_dir/control.tar.gz .
157+
158+
echo "2.0" > $tmp_dir/debian-binary
159+
160+
pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk
161+
tar -C $tmp_dir -czf $pkg_file ./debian-binary ./data.tar.gz ./control.tar.gz
162+
rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz
163+
rmdir $tmp_dir
164+
165+
echo "Packaged contents of $pkg_dir into $pkg_file"

zaurus/packaging/CONTROL/control

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Package: ebbeflut
2+
Priority: optional
3+
Section: Games
4+
Version: 0.1
5+
Architecture: arm
6+
Maintainer: Peter Karich
7+
Description: A nice board game

zaurus/ebbe.desktop zaurus/packaging/home/QtPalmtop/apps/Applications/ebbe.desktop

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Categories =
33
Exec = runebbeflut
44
Icon = ebbeflut.png
5-
Name = ltht
5+
Name = ebbeflut
66
Type = Jeode
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cd /opt/QtPalmtop/java/ebbeflut/
2+
evm -cp . -XappName=ebbeflut EbbeFlut
3+
#> dat/log.txt
400 Bytes
Loading

zaurus/runebbeflut

-2
This file was deleted.

0 commit comments

Comments
 (0)