aboutsummaryrefslogtreecommitdiffstats
path: root/tests/scripts
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-01-28 23:03:17 +0100
committerSamuel Tardieu <sam@rfc1149.net>2014-01-28 23:03:17 +0100
commit8d9171e57fb25d8810694cfd0dbb4410d842eb3f (patch)
tree970c88582280a6dc08447dc537df2f46551942dd /tests/scripts
parent1efe8ef6ce53130a88f2c61e98102ad9ec2ac784 (diff)
downloadcgeo-8d9171e57fb25d8810694cfd0dbb4410d842eb3f.zip
cgeo-8d9171e57fb25d8810694cfd0dbb4410d842eb3f.tar.gz
cgeo-8d9171e57fb25d8810694cfd0dbb4410d842eb3f.tar.bz2
Update tests
Diffstat (limited to 'tests/scripts')
-rwxr-xr-xtests/scripts/update-trackables8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scripts/update-trackables b/tests/scripts/update-trackables
new file mode 100755
index 0000000..d30eb69
--- /dev/null
+++ b/tests/scripts/update-trackables
@@ -0,0 +1,8 @@
+#! /bin/sh
+#
+
+cd $(dirname $0)/../res/raw
+for i in tb?????.htm* trackable_tb*.htm*; do
+ tbcode=$(echo $i | sed -e 's/^.*\(tb[a-z0-9]*\)\..*$/\1/')
+ curl "http://www.geocaching.com/track/details.aspx?tracker=$tbcode" > $i
+done