Changeset 17706 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-09-20T10:19:55+02:00 (15 years ago)
Author:
stoecker
Message:

update to real use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/nsis/josm-setup-unix.sh

    r14277 r17706  
    2222    # as described above
    2323    LAUNCH4J="java -jar /usr/share/launch4j/launch4j.jar"
     24elif [ -s ../launch4j/launch4j.jar ]; then
     25    LAUNCH4J="java -jar ../launch4j/launch4j.jar"
    2426else
    2527    # launch4j installed locally under this nsis folder
     
    3436else
    3537    # UNIX like
    36     MAKENSIS=makensis
     38    MAKENSIS=/usr/bin/makensis
    3739fi
    3840echo Using NSIS: $MAKENSIS
    3941
    40 svncorerevision=`svnversion ../core`
    41 svnpluginsrevision=`svnversion ../plugins`
    42 svnrevision="$svncorerevision-$svnpluginsrevision"
     42if [ -n "$1" ]; then
     43  export VERSION=$1
     44  export JOSM_BUILD="no"
     45  export WEBKIT_DOWNLAD="no"
     46else
     47  svncorerevision=`svnversion ../core`
     48  svnpluginsrevision=`svnversion ../plugins`
     49  svnrevision="$svncorerevision-$svnpluginsrevision"
    4350
    44 #export VERSION=latest
    45 export VERSION=custom-${svnrevision}                                         
     51  export VERSION=custom-${svnrevision}
     52  export JOSM_BUILD="yes"
     53  export WEBKIT_DOWNLOAD="yes"
     54fi
    4655
    4756echo "Creating Windows Installer for josm-$VERSION"
     
    5059echo "##################################################################"
    5160echo "### Download and unzip the webkit stuff"
    52 wget --continue --timestamping http://josm.openstreetmap.de/download/windows/webkit-image.zip
     61if [ "x$WEBKIT_DOWNLOAD" == "xyes" ]; then
     62    wget --continue --timestamping http://josm.openstreetmap.de/download/windows/webkit-image.zip
     63fi
    5364mkdir -p webkit-image
    5465cd webkit-image
     
    5970echo "##################################################################"
    6071echo "### Build the Complete josm + Plugin Stuff"
    61 if true; then
     72if [ "x$JOSM_BUILD" == "xyes" ]; then
    6273    (
    6374        echo "Build the Complete josm Stuff"
     
    8293# launch4j - http://launch4j.sourceforge.net/
    8394# delete old exe file first
    84 rm -f josm.exe
     95/bin/rm -f josm.exe
    8596$LAUNCH4J "launch4j.xml"
    8697
     
    98109
    99110# keep the intermediate file, for debugging
    100 rm -f josm-intermediate.exe
    101 mv josm.exe josm-intermediate.exe
     111/bin/rm josm-intermediate.exe 2>/dev/null >/dev/null
     112/bin/mv josm.exe josm-intermediate.exe 2>/dev/null >/dev/null
Note: See TracChangeset for help on using the changeset viewer.