Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Pmodules
buildblocks
Commits
ee289e15
Commit
ee289e15
authored
Mar 12, 2015
by
gsell
Browse files
scripts/Bootstrap/Pmodules/modulecmd.in: option '--print-modulefiles' added to search sub-command
parent
6952b1a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
scripts/Bootstrap/Pmodules/modulecmd.in
scripts/Bootstrap/Pmodules/modulecmd.in
+16
-2
No files found.
scripts/Bootstrap/Pmodules/modulecmd.in
View file @
ee289e15
...
...
@@ -817,6 +817,7 @@ subcommand_search() {
local
modules
=()
local
with_modules
=
'//'
local
_print_header
=
'yes'
local
_print_modulefiles
=
'no'
local
use_releases
=
':'
local
-r
fmt
=
"%-20s %-10s %-12s %-s
\n
"
...
...
@@ -869,8 +870,17 @@ subcommand_search() {
done
done
done
sort
-k
1,1
-k
4,4
-k
5,5
"
${
tmpfile
}
"
|
awk
"
${
with_modules
}
"
1>&2
if
[[
"{_print_modulefiles}"
==
"no"
]]
;
then
sort
-k
1,1
-k
4,4
-k
5,5
"
${
tmpfile
}
"
|
awk
"
${
with_modules
}
"
1>&2
else
while
read
-a
line
;
do
echo
-n
"
${
line
[2]
}
/"
for
d
in
"
${
line
[@]
:3
}
"
;
do
echo
-n
"
$d
/"
done
echo
"
${
line
[0]
}
"
done
< <
(
sort
-k
1,1
-k
4,4
-k
5,5
"
${
tmpfile
}
"
|
awk
"
${
with_modules
}
"
)
fi
rm
-f
"
${
tmpfile
}
"
}
...
...
@@ -880,6 +890,10 @@ subcommand_search() {
--no-header
)
_print_header
=
'no'
;;
--print-modulefiles
)
_print_modulefiles
=
'yes'
_print_header
=
'no'
;;
--release
=
*
)
_val
=
${
1
/--release=
}
if
is_release
"
${
_val
}
"
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment