]> gitweb.factorcode.org Git - factor.git/commitdiff
change temp-file to cache-file where appropriate
authorJoe Groff <arcata@gmail.com>
Sat, 31 Mar 2012 21:49:43 +0000 (14:49 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 16 Apr 2012 18:55:27 +0000 (11:55 -0700)
basis/help/html/html.factor
basis/tools/deploy/backend/backend.factor
extra/bunny/model/model.factor
extra/geo-ip/geo-ip.factor
extra/gpu/demos/bunny/bunny.factor
extra/site-watcher/db/db.factor

index 82d66b2f0b6e4b37e3b592892246a175ffdf34aa..e4a30319493d7552feaed9e7d85102d2f5e0471c 100644 (file)
@@ -127,7 +127,7 @@ M: topic url-of topic>filename ;
     ] with-scope ;
 
 : generate-help ( -- )
-    "docs" temp-file
+    "docs" cache-file
     [ make-directories ]
     [
         [
index c0546bf85bece5eb1badf230464524ecb4353f3a..3c28d65a73dfacdeedc93278509e319b95b3f929 100644 (file)
@@ -61,7 +61,7 @@ ERROR: can't-deploy-library-file library ;
     ] { } make ;
 
 : staging-image-name ( profile -- name )
-    "-" join "staging." ".image" surround temp-file ;
+    "-" join "staging." ".image" surround cache-file ;
 
 DEFER: ?make-staging-image
 
index 00009981ece4df59c2e5017708486231ac925247..8e9df4997ea676ff1d3f736f079f4c91911680cb 100644 (file)
@@ -41,7 +41,7 @@ IN: bunny.model
     ascii [ parse-model ] with-file-reader
     [ normals ] 2keep 3array ;
 
-: model-path ( -- path ) "bun_zipper.ply" temp-file ;
+: model-path ( -- path ) "bun_zipper.ply" cache-file ;
 
 : model-url ( -- url ) "http://duriansoftware.com/joe/media/bun_zipper.ply" ;
 
index c0011dd2761328248f92df88da1572d81b79066c..a28951901aeb7f97117e56951b58be48b782a0f6 100644 (file)
@@ -7,7 +7,7 @@ math.intervals interval-maps memoize csv accessors assocs
 strings math splitting grouping arrays combinators.smart ;
 IN: geo-ip
 
-: db-path ( -- path ) "IpToCountry.csv" temp-file ;
+: db-path ( -- path ) "IpToCountry.csv" cache-file ;
 
 CONSTANT: db-url "http://software77.net/geo-ip/?DL=1"
 
index cb769add14a0cc26dc77445732504c4a9deb4090..331885bdb9ada428ed97452e754c4345f7d88f0d 100644 (file)
@@ -143,7 +143,7 @@ UNIFORM-TUPLE: loading-uniforms
         [ length ] bi
     ] bi* ;
 
-: bunny-model-path ( -- path ) "bun_zipper.ply" temp-file ;
+: bunny-model-path ( -- path ) "bun_zipper.ply" cache-file ;
 
 CONSTANT: bunny-model-url "http://duriansoftware.com/joe/media/bun_zipper.ply"
 
index 003b6bb58bd295df1eb142cdf0dd8b46b8cd3473..0f1a3820b82d33e2ba5999abb5ea891725b206df 100644 (file)
@@ -124,7 +124,7 @@ TUPLE: reporting-site site-id email url up? changed? last-up? error last-error ;
     f <watching-site> select-tuples
     [ site-id>> site new swap >>site-id select-tuple ] map ;
 
-: site-watcher-path ( -- path ) "site-watcher.db" temp-file ; inline
+: site-watcher-path ( -- path ) "site-watcher.db" cache-file ; inline
 
 : with-site-watcher-db ( quot -- )
     site-watcher-path <sqlite-db> swap with-db ; inline