Skip to content

Instantly share code, notes, and snippets.

@msiebuhr
Created January 1, 2011 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msiebuhr/761978 to your computer and use it in GitHub Desktop.
Save msiebuhr/761978 to your computer and use it in GitHub Desktop.
Small script for automatic updates of JOSM.
#!/usr/bin/tcsh
set TESTED_VERSION=`wget http://josm.openstreetmap.de/tested -O - -q`
set NEW_JOSM=/usr/share/josm/josm-tested-$TESTED_VERSION.jar
set JOSM=/usr/share/josm/josm.jar
wget http://josm.openstreetmap.de/josm-tested.jar -O $NEW_JOSM -c
rm $JOSM
ln -s $NEW_JOSM $JOSM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment