10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-23 04:43:50 +01:00

Updated Git.ml

This commit is contained in:
Anthony Scemama 2017-09-01 14:34:53 +02:00
parent f2cb73f006
commit 5ba33d3630

View File

@ -4,9 +4,9 @@ SHA1=$(git log -1 | head -1 | cut -d ' ' -f 2)
DATE=$(git log -1 | grep Date | cut -d ':' -f 2-) DATE=$(git log -1 | grep Date | cut -d ':' -f 2-)
MESSAGE=$(git log -1 | tail -1 | sed 's/"/\\"/g') MESSAGE=$(git log -1 | tail -1 | sed 's/"/\\"/g')
cat << EOF > Git.ml cat << EOF > Git.ml
open Core.Std open Core
let sha1 = "$SHA1" |> String.strip let sha1 = "$SHA1" |> String_ext.strip
let date = "$DATE" |> String.strip let date = "$DATE" |> String_ext.strip
let message = "$MESSAGE" |> String.strip let message = "$MESSAGE" |> String_ext.strip
EOF EOF