This file contains 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
let read_lines p = | |
let rec loop () = match input_line p with | |
| exception End_of_file -> close_in p ; [] | |
| line -> line :: loop () | |
in loop () | |
let process cmd = | |
let (stdout, _, stderr) as p = | |
Unix.open_process_full cmd (Unix.environment ()) | |
in |
This file contains 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
#!/usr/bin/env bash | |
USAGE="usage: makorel version [package]" | |
# with: | |
# - version: new version to release | |
# - package: /path/to/package/root/directory (optionnal) | |
if [ $# -lt 1 ] || [ $# -gt 2 ]; then | |
echo "${USAGE}. Exiting with 1."; |
This file contains 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
(* | |
* Imported from https://gist.github.com/sagotch/ | |
* | |
* For more informations about unicode to utf-8 converting method used see: | |
* http://www.ietf.org/rfc/rfc3629.txt (Page3, section "3. UTF-8 definition") | |
* | |
* decimal conversions of binary used: | |
* 10000000 -> 128; 11000000 -> 192; 11100000 -> 224 | |
*) |