Changeset 5213 in osm for applications/editors


Ignore:
Timestamp:
2007-10-28T13:57:58+01:00 (17 years ago)
Author:
joerg
Message:

josm/debian: Add java 1.5 dependency, remove some old testing stuff, put preferences and bookmarks into there own files, add proxy support to josm.sh starter

Location:
applications/editors/josm/debian
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/debian/changelog

    r4308 r5213  
    1 openstreetmap-josm (3144307) unstable; urgency=low
     1openstreetmap-josm (4365205) unstable; urgency=low
    22
    33  * Initial Version
  • applications/editors/josm/debian/control

    r5125 r5213  
    99Package: openstreetmap-josm
    1010Architecture: all
    11 Depends: sun-java6-re|sun-java6-jdk|sun-java6-jre
     11Depends: sun-java6-re|sun-java6-jdk|sun-java6-jre|sun-java5-re|sun-java5-jdk|sun-java5-jre
    1212Recommends: openstreetmap-utils
    1313Suggests: openstreetmap-map-icons, openstreetmap-map-icons-restricted, openstreetmap-mapnik-data, gpsdrive, mapnik
  • applications/editors/josm/debian/files

    r4308 r5213  
    1 openstreetmap-josm_3144307_all.deb utils optional
     1openstreetmap-josm_4365205_all.deb utils optional
  • applications/editors/josm/debian/make_install_files.sh

    r5156 r5213  
    6868echo "$plugins"
    6969
    70 #mkdir -p "$jar_path/speller"
    71 #cp ../utils/planet.osm/java/speller/words.cfg "$jar_path/speller/"
     70mkdir -p "$jar_path/speller"
     71cp ../utils/planet.osm/java/speller/words.cfg "$jar_path/speller/"
    7272
    73 # Maybe this has to be removed, since it is inside the plugin?
    74 #cp plugins/mappaint/styles/osmfeatures/elemstyles.xml "$jar_path/elemstyles.xml"
    75 #mkdir -p "$jar_path/plugins/mappaint/standard"
    76 #cp plugins/mappaint/styles/osmfeatures/elemstyles.xml "$jar_path/plugins/mappaint/standard/elemstyles.xml"
    7773# ------------------------------------------------------------------
    78 cat > "$bin_path/josm" <<EOF
    79 #!/bin/sh
    80 josm_dir="/usr/local/share/josm"
    81 josm_bin="\$josm_dir/josm.jar"
     74cp "debian/bin/josm.sh" "$bin_path/josm"
    8275
    83 test -d ~/.josm/plugins/ || mkdir -p ~/.josm/plugins/
    84 #for dir in mappaint osmarender validator tways-0.1; do
    85 for dir in ${plugins//,/ } ; do
    86     test -d ~/.josm/plugins/\$dir || mkdir -p ~/.josm/plugins/\$dir
    87 done
    88 test -d ~/.josm/plugins/mappaint/standard || mkdir -p ~/.josm/plugins/mappaint/standard
    89 
    90 if ! [ -s ~/.josm/preferences ]; then
    91      echo "Installing Preferences File"
    92      cp "\$josm_dir/preferences"  ~/.josm/preferences
    93 fi
    94 
    95 if ! [ -s ~/.josm/bookmarks ]; then
    96      echo "Installing Bookmarks File"
    97      cp "\$josm_dir/bookmarks"  ~/.josm/bookmarks
    98 fi
    99 
    100 if ! [ -s ~/.josm/plugins/mappaint/standard/elemstyles.xml ]; then
    101 #     echo "Installing Elemstyles File"
    102 #     cp "\$josm_dir/elemstyles.xml"  ~/.josm/plugins/mappaint/standard/elemstyles.xml
    103       true
    104 fi
    105 
    106 # ls -l "\$josm_bin"
    107 # unzip -p    \$josm_bin REVISION | grep "Last Changed"
    108 
    109 # proxy=" -Dhttp.proxyHost=gw-squid -Dhttp.proxyPort=8888 "
    110 
    111 java -Djosm.resource=/usr/share/map-icons/square.small \
    112      -Xmx500m \
    113      \$proxy \
    114      -jar "\$josm_bin"\
    115      "\$@"
    116 
    117 EOF
    118 
    119 
    120 cat > "$jar_path/preferences" <<EOF
    121 download.gps=false
    122 download.newlayer=false
    123 download.osm=true
    124 download.tab=1
    125 lakewalker.python=/usr/bin/python
    126 layerlist.visible=true
    127 osm-server.url=http://www.openstreetmap.org/api
    128 plugins=$plugins
    129 projection=org.openstreetmap.josm.data.projection.Epsg4326
    130 propertiesdialog.visible=true
    131 propertiesdialog.visible=true
    132 propertiesdialog.visible=true
    133 toolbar=download;upload;|;new;open;save;exportgpx;|;undo;redo;|;preference
    134 validator.SpellCheck.checkKeys=true
    135 validator.SpellCheck.checkKeysBeforeUpload=true
    136 validator.SpellCheck.checkValues=true
    137 validator.SpellCheck.checkValuesBeforeUpload=true
    138 validator.SpellCheck.sources=/usr/local/share/josm/speller/words.cfg
    139 ywms.firefox=firefox
    140 ywms.port=8000
    141 EOF
    142 
    143 cat > "$jar_path/bookmarks" <<EOF
    144 Muenchen+,47.983424415942416,11.402620097655612,48.36334800308583,12.002250823113542
    145 Muenchen-,48.05109190794662,11.447878885677385,48.246831966462025,11.703938333879364
    146 Kirchheim,48.14904045814527,11.728348604380155,48.18983784113904,11.79273346326812
    147 Muc_Altstadtring,48.125724515280666,11.553433712891074,48.15107325612488,11.596158188775085
    148 Mainz,49.58,8.14,49.6,8.16
    149 Erlangen,49.53530551899356,10.893663089997254,49.64013443292672,11.07554098888691
    150 Ingolstadt,48.615608086215175,11.232933428311759,48.893652866507985,11.728832483590338
    151 EOF
     76sed "s/PLUGIN_LIST/$plugins/;" <debian/bin/preferences >"$jar_path/preferences"
     77cp nsis/bookmarks "$jar_path/bookmarks"
Note: See TracChangeset for help on using the changeset viewer.