about summary refs log tree commit diff stats
path: root/data/generate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/generate.rb')
-rwxr-xr-xdata/generate.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/data/generate.rb b/data/generate.rb
deleted file mode 100755
index 52a4c8e4..00000000
--- a/data/generate.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/ruby
-## Parses mime.types and creates mime.dat
-
-file = File.read(ARGV.first || "mime.types")
-
-table = {}
-for line in file.lines
-	next if line[0] == ?# or
-		line.size <= 3 or
-		!line.include?( ?\t )
-
-	name, *extensions = line.split(/\s+/)
-	for ext in extensions
-		table[ext] = name
-	end
-end
-
-File.open( 'mime.dat', 'w' ) do |f|
-	f.write Marshal.dump( table )
-end
-
id'>da5104f8 ^
da5104f8 ^

1a6490a5 ^
2fb99891 ^
da5104f8 ^

a84e4ade ^

da5104f8 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53