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

Last change on this file since 10767 was 7739, checked in by joerg, 16 years ago

josm/debian: add josm-ng to package, change icon-path, remove auto versionnumbering of changelog

  • Property svn:executable set to *
File size: 2.1 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 || exit -1
52cd ../josm
53
54
55# ------------------------------------------------------------------
56echo "------------- Copy Jar Files"
57
58cp ./core/dist/josm-custom.jar $jar_path/josm.jar || exit -1
59cp ../josm-ng/dist/josm-ng.jar $jar_path/josm-ng.jar || exit -1
60
61plugin_jars=`find dist -name "*.jar"`
62for src_fn in $plugin_jars ; do
63 fn="`basename ${src_fn}`"
64 dst_fn="$plugin_dir/$fn"
65 echo "cp $src_fn $dst_fn"
66 cp "$src_fn" "$dst_fn" || exit -1
67 plugin_name=${fn%.jar}
68 echo $plugin_name | grep -q -e plastic_laf -e lang && continue
69 plugins="$plugins$plugin_name,"
70done || exit -1
71
72# remove last empty plugin definition ,
73plugins=${plugins%,}
74
75echo "Activated Plugins:"
76echo "$plugins"
77
78mkdir -p "$jar_path/speller"
79cp ../utils/planet.osm/java/speller/words.cfg "$jar_path/speller/"
80
81# ------------------------------------------------------------------
82cp "debian/bin/josm.sh" "$bin_path/josm"
83cp "debian/bin/josm-ng.sh" "$bin_path/josm-ng"
84
85sed "s/PLUGIN_LIST/$plugins/;" <debian/bin/preferences >"$jar_path/preferences"
86cp nsis/bookmarks "$jar_path/bookmarks"
Note: See TracBrowser for help on using the repository browser.