Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Platform-independent core collection
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Platform-independent core collection
Commits
60d75393
There was an error fetching the commit references. Please try again later.
Commit
60d75393
authored
6 years ago
by
Dimitris Lampridis
Browse files
Options
Downloads
Patches
Plain Diff
tools: mark dirty commits as such in sdb_desc_gen.tcl
parent
0545c25b
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/sdb_desc_gen.tcl
+8
-1
8 additions, 1 deletion
tools/sdb_desc_gen.tcl
with
8 additions
and
1 deletion
tools/sdb_desc_gen.tcl
+
8
−
1
View file @
60d75393
...
...
@@ -123,6 +123,9 @@ if { [catch { set inf_commit_id [exec git log -1 --format=%H] }] } {
if
{
[
catch
{
set inf_repo_url
[
exec git config --get remote.origin.url
]
}]
}
{
set inf_repo_url
"unknown url"
}
if
{
[
catch
{
set dirty_repo
[
exec git describe --all --dirty | grep -c dirty
]
}]
}
{
set dirty_repo
"0"
}
#-------------------------------------------------------------------------------
# STEP 5/7: Generate the output file
...
...
@@ -151,7 +154,11 @@ puts $fp "package synthesis_descriptor is"
puts $fp
""
puts $fp
" constant c_sdb_synthesis_info : t_sdb_synthesis := ("
puts $fp
" syn_module_name =>
\"
[
str_procrustes $inf_project 16
]
\"
,"
puts $fp
" syn_commit_id =>
\"
[
str_procrustes $inf_commit_id 32
]
\"
,"
if
{
$dirty
_repo ==
"0"
}
{
puts $fp
" syn_commit_id =>
\"
[
str_procrustes $inf_commit_id 32
]
\"
,"
}
else
{
puts $fp
" syn_commit_id =>
\"
[
str_procrustes $inf_commit_id 31
]
*
\"
,"
}
puts $fp
" syn_tool_name =>
\"
[
str_procrustes $inf_tool_name 8
]
\"
,"
puts $fp
" syn_tool_version => x
\"
$inf
_tool_version
\"
,"
puts $fp
" syn_date => x
\"
[
str_procrustes $inf_date_ymd 8
]
\"
,"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment