Changeset 15969 in osm for applications/editors/josm/debian/make_install_files.sh
- Timestamp:
- 2009-06-17T18:34:35+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/debian/make_install_files.sh
r13391 r15969 12 12 do_update_plugins=true 13 13 do_remove_jar=true 14 do_cleanup=true 14 15 15 16 for arg in "$@" ; do 16 17 case $arg in 17 18 --dest-path=*) # Destination path to install the final *.jar Files 18 dst_path=${arg#*=}19 ;;19 dst_path=${arg#*=} 20 ;; 20 21 21 22 --no-update-icons) # Do not update icons … … 38 39 do_remove_jar=false 39 40 ;; 40 41 42 --no-clean) # no cleanup before build 43 do_cleanup=false 44 ;; 45 41 46 *) 42 47 echo "" … … 125 130 # Remove Old Jar Files in dist/*.jar 126 131 127 $do_remove_jar && rm -f dist/*.jar 128 $do_remove_jar && rm -f plugins/*/dist/*.jar 132 $do_cleanup && { 133 $do_remove_jar && rm -f dist/*.jar 134 $do_remove_jar && rm -f plugins/*/dist/*.jar 135 } 129 136 130 137 # ------------------------------------------------------------------ … … 133 140 echo "------------- Compile Josm" 134 141 cd core 135 ant -q clean 2>build.err142 $do_cleanup && ant -q clean 2>build.err 136 143 ant -q dist >>build.log 2>>build.err 137 144 rc=$? … … 148 155 echo "------------- Compile Josm Plugin webkit-image for wmsplugin" 149 156 cd plugins/wmsplugin 150 make clean157 $do_cleanup && make clean 151 158 make 152 159 cd ../.. … … 165 172 cd $dir 166 173 echo -n -e "----- $dir\r" 167 $do_remove_jar && rm -f dist/*.jar 168 $do_remove_jar && rm -f ../../dist/$dir.jar 169 rm -f *.log 170 echo "ant clean" >build.log 171 echo "ant clean" >build.err 172 ant -q clean >>build.log 2>>build.err 174 $do_cleanup && { 175 $do_remove_jar && rm -f dist/*.jar 176 $do_remove_jar && rm -f ../../dist/$dir.jar 177 rm -f *.log 178 echo "ant clean" >build.log 179 echo "ant clean" >build.err 180 ant -q clean >>build.log 2>>build.err 181 } 173 182 echo "ant dist" >>build.log 174 183 echo "ant dist" >>build.err … … 213 222 echo "------------- Compile Josm-ng" 214 223 cd ../josm-ng 215 ant -q clean224 $do_cleanup && ant -q clean 216 225 ant -q josm-ng-impl.jar >>build.log 2>>build.err 217 226 rc=$? … … 263 272 # Copy words.cfg for spelling 264 273 mkdir -p "$jar_path/speller" 265 cp ../../utils/planet.osm/java/speller/words.cfg "$jar_path/speller/" 266 267 # ------------------------------------------------------------------ 268 cp "debian/bin/josm.sh" "$bin_path/josm" || exit -1 274 cp ../../utils/planet.osm/java/speller/words.cfg "$jar_path/speller/" || { 275 echo "!!!!!!!!!! words.cfg is missing" 276 exit -1 277 } 278 279 280 # ------------------------------------------------------------------ 281 cp "debian/bin/josm.sh" "$bin_path/josm" || { 282 echo "!!!!!!!!!! josm.sh is missing" 283 exit -1 284 } 285 269 286 cp "debian/bin/josm-ng.sh" "$bin_path/josm-ng" || { 270 287 echo "!!!!!!!!!!!!!!!!! WARNING Josm-NG is not included into the package" … … 273 290 274 291 # add plugins to default preferences 275 sed "s/PLUGIN_LIST/$plugins/;" <debian/bin/preferences >"$jar_path/preferences" 292 sed "s/PLUGIN_LIST/$plugins/;" <debian/bin/preferences >"$jar_path/preferences" || { 293 echo "!!!!!!!! WARNING cannot create preferences" 294 exit -1 295 } 296 276 297 277 298 # Copy default Bookmarks 278 299 cp nsis/bookmarks "$jar_path/bookmarks" 300 301 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.