|
4 | 4 | # This file collects git info and create a julia file with the GIT_VERSION_INFO struct |
5 | 5 |
|
6 | 6 | echo "# This file was autogenerated in base/version_git.sh" |
7 | | -echo "struct GitVersionInfo" |
8 | | -echo " commit::String" |
9 | | -echo " commit_short::String" |
10 | | -echo " branch::String" |
11 | | -echo " build_number::Int" |
12 | | -echo " date_string::String" |
13 | | -echo " tagged_commit::Bool" |
14 | | -echo " fork_master_distance::Int" |
15 | | -echo " fork_master_timestamp::Float64" |
16 | | -echo " build_system_commit::String" |
17 | | -echo " build_system_commit_short::String" |
| 7 | +echo "Base.@kwdef struct GitVersionInfo" |
| 8 | +echo " commit::String = \"\"" |
| 9 | +echo " commit_short::String = \"\"" |
| 10 | +echo " branch::String = \"\"" |
| 11 | +echo " build_number::Int = 0" |
| 12 | +echo " date_string::String = \"\"" |
| 13 | +echo " tagged_commit::Bool = true" |
| 14 | +echo " fork_master_distance::Int = 0" |
| 15 | +echo " fork_master_timestamp::Float64 = 0" |
| 16 | +echo " build_system_commit::String = \"\"" |
| 17 | +echo " build_system_commit_short::String = \"\"" |
18 | 18 | echo "end" |
19 | 19 | echo "" |
20 | 20 |
|
|
24 | 24 | if [ "$#" = "2" -a "$2" = "NO_GIT" ]; then |
25 | 25 | # this comment is used in base/Makefile to distinguish boilerplate |
26 | 26 | echo "# Default output if git is not available." |
27 | | - echo "const GIT_VERSION_INFO = GitVersionInfo(\"\" ,\"\" ,\"\" ,0 ,\"\" ,true ,0 ,0.)" |
| 27 | + echo "const GIT_VERSION_INFO = GitVersionInfo()" |
28 | 28 | exit 0 |
29 | 29 | fi |
30 | 30 | # Collect temporary variables |
|
0 commit comments