source: osm/applications/editors/josm/nsis/josm-setup-unix.sh@ 5156

Last change on this file since 5156 was 5156, checked in by joerg, 18 years ago

josm compile(nsis/debian): reduce verbosity while compiling

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/bin/bash
2
3# Creates an josm-install.exe File
4# for working on a debian-unix system install the nsis package with
5# apt-get install nsis
6# replace the /usr/share/nsis/Plugins/System.dll with the new Version from the nsis .zip File
7# The old one is missing the Call:: Function
8# then download launch4j from http://launch4j.sourceforge.net/
9
10## settings ##
11LAUNCH4J="java -jar launch4j/launch4j.jar"
12
13export VERSION=latest
14#export VERSION=custom
15
16##################################################################
17### Build the Complete josm + Plugin Stuff
18if true; then
19 (
20 echo "Build the Complete josm Stuff"
21
22 echo "Compile Josm"
23 cd ../core
24 ant -q clean
25 ant -q compile || exit -1
26 cd ..
27
28 echo "Compile Josm Plugins"
29 cd plugins
30 ant -q clean
31 ant -q dist || exit -1
32 ) || exit -1
33fi
34
35
36echo
37echo "##################################################################"
38echo "### Copy the required Stuff into the download Directory"
39mkdir -p downloads
40(
41 cd downloads
42
43 # get latest josm version (and license)
44 cp ../../core/LICENSE LICENSE
45 cp ../../core/dist/josm-custom.jar josm-latest.jar
46
47 # Get all plugins
48 cp ../../plugins/dist/*.jar .
49)
50
51echo
52echo "##################################################################"
53echo "### convert jar to exe with launch4j"
54# (makes attaching to file extensions a lot easier)
55# launch4j - http://launch4j.sourceforge.net/
56$LAUNCH4J ./launch4j.xml
57
58echo
59echo "##################################################################"
60echo "### create the installer exe with makensis"
61# NSIS - http://nsis.sourceforge.net/Main_Page
62# apt-get install nsis
63makensis -DVERSION=$VERSION josm.nsi
Note: See TracBrowser for help on using the repository browser.