Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sbednarz authored Sep 28, 2020
1 parent 67bb246 commit 50dd437
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion slimmc/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@

GTAG=`git describe --abbrev=4 --dirty --always --tags`
GHASH=`git describe --always --dirty`
BUILD=`date`
printf "var gtag=\"$GTAG\"\nvar ghash=\"$GHASH\"\nvar build=\"$BUILD\"\n" > version.nim
SYS=`uname`
NIM=`nim --version | head -n 1`

printf "var gtag=\"$GTAG\"\nvar ghash=\"$GHASH\"\nvar build=\"$BUILD\"\nvar sys=\"$SYS\"\nvar nimv=\"$NIM\"\n" > version.nim
nim c -d:release slimmc.nim
rm version.nim

5 changes: 4 additions & 1 deletion slimmc/slimmc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ proc printHelpMsg() =
echo """
Usage: slimmc [option] modelfile
Run kinetics simulation of radical polymerizaton.
More into at: https://github.com/sbednarz/slimmc
Options:
-h display this help and exit
Expand All @@ -43,7 +44,9 @@ Options:

proc printVersionMsg() =
echo &"""
slimmc version {gtag} {ghash} (built {build}) written by Szczepan Bednarz
slimmic version {gtag} (built {build}) written by Szczepan Bednarz
git sha: {ghash}
compiled on {sys} by {nimv}
"""

proc printWelcomeMsg(modelfile: string) =
Expand Down

0 comments on commit 50dd437

Please sign in to comment.