aboutsummaryrefslogtreecommitdiff
path: root/tzget
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-03 12:39:30 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-03 12:41:15 +0200
commit7bbf2470bbdc46089dec1eb4c2328d0c87ba594f (patch)
tree56aa27c14ed7f42a7a184ce715983795ea9d839a /tzget
parentAdd TODO's about early load. (diff)
downloadcalp-7bbf2470bbdc46089dec1eb4c2328d0c87ba594f.tar.gz
calp-7bbf2470bbdc46089dec1eb4c2328d0c87ba594f.tar.xz
Resolve (datetime instance) TODO with ./configure?
Tried adding a ./configure script, which mostly is responsible for downloading a default zoneinfo file, and setting up the environment for the program. I have for quite a while thought about having a configure system for things like these, but also for setting up default paths. Let's see if it works out.
Diffstat (limited to 'tzget')
-rwxr-xr-xtzget5
1 files changed, 5 insertions, 0 deletions
diff --git a/tzget b/tzget
index 1fd2340a..bd81e4b7 100755
--- a/tzget
+++ b/tzget
@@ -1,5 +1,10 @@
#!/bin/bash
+# Downloads zoneinfo files if not already present
+# echos 2 lines,
+# - the directory with the zoneinfo files
+# - the names of the zoneinfo files to be parsed
+
CACHE_DIR=${CACHE_DIR:-~/.cache/calp}
RELEASE=2020a
TZ_SRC="https://github.com/eggert/tz/archive/$RELEASE.tar.gz"