10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-09 07:33:53 +01:00
quantum_package/ocaml/create_git_sha1.sh

13 lines
321 B
Bash
Raw Normal View History

2015-12-07 22:03:33 +01:00
#!/bin/bash
SHA1=$(git log -1 | head -1 | cut -d ' ' -f 2)
2015-12-08 14:40:23 +01:00
DATE=$(git log -1 | grep Date | cut -d ':' -f 2-)
2017-04-20 18:38:31 +02:00
MESSAGE=$(git log -1 | tail -1 | sed 's/"/\\"/g')
2015-12-07 22:03:33 +01:00
cat << EOF > Git.ml
2017-09-01 14:34:53 +02:00
open Core
let sha1 = "$SHA1" |> String_ext.strip
let date = "$DATE" |> String_ext.strip
let message = "$MESSAGE" |> String_ext.strip
2015-12-07 22:03:33 +01:00
EOF