summaryrefslogtreecommitdiff
path: root/ext/date/prereq.mk
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-08 01:09:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-08 01:09:23 +0000
commitb5960a63b1769e114c4d674140aa5f18a33eef27 (patch)
tree9fd7e1289c01022793bfaeed4d55b772858a9301 /ext/date/prereq.mk
parent0e6bda6271797d26381b7203a00251579c743ca4 (diff)
ext/date/zonetab.list: gperf timezone names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/prereq.mk')
-rw-r--r--ext/date/prereq.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/date/prereq.mk b/ext/date/prereq.mk
new file mode 100644
index 0000000..e9ee35a
--- /dev/null
+++ b/ext/date/prereq.mk
@@ -0,0 +1,8 @@
+.SUFFIXES: .list
+
+.list.h:
+ gperf -E -C -P -p -j1 -i 1 -g -o -t -N $(*F) $< \
+ | sed 's/(int)(long)&((\(struct stringpool_t\) *\*)0)->\(stringpool_[a-z0-9]*\)/offsetof(\1, \2)/g' \
+ > $(@F)
+
+zonetab.h: zonetab.list