source: osm/applications/editors/josm/debian/make_install_files.sh@ 12321

Last change on this file since 12321 was 11707, checked in by joerg, 16 years ago

remove josm-NG from the debian packages, since it no longer is compilable

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1#!/bin/sh
2
3dst_path=$1
4
5if [ ! -n "$dst_path" ] ; then
6 echo "Please specify a Directory to use as Basedirectory"
7 echo "Usage:"
8 echo " $0 <working-dir>"
9 exit -1
10fi
11
12echo "copying Files to '$dst_path'"
13package_name=openstreetmap-josm
14dst_path=${dst_path%/}
15
16jar_path="$dst_path/usr/local/share/josm"
17mkdir -p "$jar_path"
18
19bin_path="$dst_path/usr/bin"
20mkdir -p "$bin_path"
21
22#plugin_dir="$dst_path/usr/local/share/josm/plugins"
23plugin_dir="$dst_path/usr/lib/josm/plugins"
24mkdir -p "$plugin_dir"
25
26mkdir -p "$dst_path/usr/share/josm"
27#( # map-icons to be symlinked
28# cd "$dst_path/usr/share/josm"
29# ln -s ../map-icons/classic.small images
30#)
31mkdir -p "$dst_path/usr/lib/josm"
32
33# ------------------------------------------------------------------
34# Compile the Jar Files
35echo "------------- Compile Josm"
36cd core
37ant -q clean
38ant -q compile || exit -1
39cd ..
40
41echo "------------- Compile Josm Plugins"
42cd plugins
43ant -q clean
44ant -q dist|| exit -1
45cd ..
46
47# Compile the Josm-ng Files
48echo "------------- Compile Josm-ng"
49cd ../josm-ng
50 ant -q clean
51 ant -q josm-ng-impl.jar || {
52 echo "!!!!!!!!!!!!!!!!! WARNING Josm-NG is not included into the package"
53 #exit -1
54 }
55cd ../josm
56
57
58# ------------------------------------------------------------------
59echo "------------- Copy Jar Files"
60
61cp ./core/dist/josm-custom.jar $jar_path/josm.jar || exit -1
62cp ../josm-ng/dist/josm-ng.jar $jar_path/josm-ng.jar || {
63 echo "!!!!!!!!!!!!!!!!! WARNING Josm-NG is not included into the package"
64 #exit -1
65}
66
67plugin_jars=`find dist -name "*.jar"`
68for src_fn in $plugin_jars ; do
69 fn="`basename ${src_fn}`"
70 dst_fn="$plugin_dir/$fn"
71 echo "cp $src_fn $dst_fn"
72 cp "$src_fn" "$dst_fn" || exit -1
73 plugin_name=${fn%.jar}
74 echo $plugin_name | grep -q -e plastic_laf -e lang && continue
75 plugins="$plugins$plugin_name,"
76done || exit -1
77
78# remove last empty plugin definition ,
79plugins=${plugins%,}
80
81echo "Activated Plugins:"
82echo "$plugins"
83
84mkdir -p "$jar_path/speller"
85cp ../../utils/planet.osm/java/speller/words.cfg "$jar_path/speller/"
86
87# ------------------------------------------------------------------
88cp "debian/bin/josm.sh" "$bin_path/josm" || exit -1
89cp "debian/bin/josm-ng.sh" "$bin_path/josm-ng" || {
90 echo "!!!!!!!!!!!!!!!!! WARNING Josm-NG is not included into the package"
91 #exit -1
92}
93
94sed "s/PLUGIN_LIST/$plugins/;" <debian/bin/preferences >"$jar_path/preferences"
95cp nsis/bookmarks "$jar_path/bookmarks"
Note: See TracBrowser for help on using the repository browser.