Skip to content

Instantly share code, notes, and snippets.

@cybic
Created July 21, 2013 17:29
Show Gist options
  • Save cybic/6049238 to your computer and use it in GitHub Desktop.
Save cybic/6049238 to your computer and use it in GitHub Desktop.
#!/bin/bash
TEMP=josm-tested-`date +%F`.jar
echo "Fetching josm"
wget "http://josm.openstreetmap.de/josm-tested.jar" -O $TEMP
REV=$(unzip -p $TEMP REVISION | grep Revision | sed 's/[^0-9]//g');
echo "Revision $REV";
DEST="josm-tested-$REV.jar";
mv $TEMP $DEST;
ln -sf $DEST josm-tested-latest.jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment