summaryrefslogtreecommitdiffstats
path: root/fonts/matht1/PREPARE
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/matht1/PREPARE')
-rwxr-xr-xfonts/matht1/PREPARE8
1 files changed, 8 insertions, 0 deletions
diff --git a/fonts/matht1/PREPARE b/fonts/matht1/PREPARE
new file mode 100755
index 0000000000..a4866ca23e
--- /dev/null
+++ b/fonts/matht1/PREPARE
@@ -0,0 +1,8 @@
+#simple hack to remove old cache before it becomes a problem
+#PREPARE doesn't know version, atleast old version is covered by "prune"
+NUMBER="$(grep VERSION= $SCRIPT_DIRECTORY/DETAILS | cut -d= -f2)"
+OLDCACHE="$INSTALL_CACHE/$SPELL-$NUMBER-$BUILD.tar.bz2"
+if [ -f $OLDCACHE ] ;
+then rm -rf $OLDCACHE
+fi &&
+message "${SPELL_COLOR} ${SPELL} won't ARCHIVE installed files${DEFAULT_COLOR}"