Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mkexp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esmenv
mkexp
Commits
c604d6df
Commit
c604d6df
authored
9 months ago
by
Karl-Hermann Wieners
Browse files
Options
Downloads
Patches
Plain Diff
Import: improve file section labels (dir + method)
parent
223130a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.rst
+1
-0
1 addition, 0 deletions
CHANGES.rst
files2config
+1
-2
1 addition, 2 deletions
files2config
with
2 additions
and
2 deletions
CHANGES.rst
+
1
−
0
View file @
c604d6df
...
...
@@ -27,6 +27,7 @@ Tools
* support different generations of launch logic
* support stand-alone atmosphere scripts
* add option to set path to helper script
* improve file section labels
* setconfig: make output more similar to mkexp conventions
* remove quotes from section names (may be disabled)
* fix spaces before inline comments when no value is given
...
...
This diff is collapsed.
Click to expand it.
files2config
+
1
−
2
View file @
c604d6df
...
...
@@ -98,7 +98,6 @@ sub subst_value($) {
}
unless
(
$direct
)
{
my
$i
=
0
;
print
("
[files]
\n
");
my
$last_mtd
=
'';
my
$last_dir
=
'';
...
...
@@ -106,7 +105,7 @@ unless($direct) {
my
(
$mtd
,
$dir
,
$src
,
$dst
)
=
@
{
$file_info
{
$key
}};
if
(
$last_dir
ne
$dir
||
$last_mtd
ne
$mtd
)
{
my
$subst_dir
=
subst_value
(
$dir
);
print
f
("
[[
section_%02d]]
\n
",
++
$i
);
print
("
[[
$subst_dir
$mtd
]]
\n
"
);
print
("
.base_dir =
$subst_dir
\n
");
print
("
.method =
$mtd
\n
");
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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