changeset 47:ceca06576918

Change backup (old) cache directories.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 13 Oct 2012 12:01:08 +0300
parents 9b5fa0f3812b
children d41b51cd4ae5
files update.sh
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/update.sh	Sat Oct 13 11:58:26 2012 +0300
+++ b/update.sh	Sat Oct 13 12:01:08 2012 +0300
@@ -4,6 +4,7 @@
 function parse()
 {
 # Create cache directories, if they do not exist
+OLDCACHEDIR="${CACHEDIR}old/"
 if test ! -d "${OLDCACHEDIR}"; then
 	mkdir -p "${OLDCACHEDIR}"
 fi
@@ -69,10 +70,8 @@
 }
 
 CACHEDIR="cache/"
-OLDCACHEDIR="cache-old/"
 parse "http://www.oamk.fi/tyojarjestykset/otek/luokat/" "luokat.txt" "OR_"
 #parse "http://www.oamk.fi/~heikkim/riihi2/Oppilaat/" "luokat.txt" "Ryh._"
 
 CACHEDIR="cache-next/"
-OLDCACHEDIR="cache-next-old/"
 parse "http://www.oamk.fi/~heikkim/riihi2/Oppilaat/" "luokat_next.txt" "Ryh._"