This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -ue | |
| # Dependencies (list might be incomplete): | |
| # src/libevent-2.0.21-stable.tar.gz | |
| # src/libsearpc (I used git f022c6509cff2eb604024c003eb60bcda975c0b1) | |
| # src/ccnet (with Nicolas' patches, I used 3495a78466add16cfa9eddfb35a312bb9ce55264) | |
| # src/seafile (with Nicolas' patches, I used 59eb918655dfa5f1328ec72be00681c6192f523d) | |
| # | |
| # Toolchain: | |
| # vala (vala-0.18.1-1.fc18.x86_64) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library MIME; | |
| // get MIME type (returns null if there is no such extension) | |
| String mimeType(String extension) => _mimeMaps[extension]; | |
| // default MIME type mappings | |
| Map _mimeMaps = const { | |
| 'abs': 'audio/x-mpeg', | |
| 'ai': 'application/postscript', | |
| 'aif': 'audio/x-aiff', |
NewerOlder