Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
14ada671
Commit
14ada671
authored
Sep 18, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: improve step compilation using list (see --help)
parent
c09776e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
wrs_build-all
build/wrs_build-all
+10
-2
No files found.
build/wrs_build-all
View file @
14ada671
...
...
@@ -58,7 +58,7 @@ showhelp() {
echo
" --pack Create a tar.gz package with the files"
echo
" --clean Remove all the previous configuration"
echo
" --list List the different building steps"
echo
" --step=
[00-09] Perform one specific step
"
echo
" --step=
<XX> Perform specific step(s) (e.g. --step=01 or --step=
\"
5 7 9
\"
)
"
echo
""
exit
0
;
}
...
...
@@ -90,6 +90,14 @@ clean()
exit
0
}
## Remove _done tag to a specific step or a list of specific test --step="5 7 9"
step
()
{
for
num
in
$1
;
do
rm
-v
${
WRS_OUTPUT_DIR
}
/build/_done/
$(
printf
"%02d"
${
num
})
-
*
done
}
## Menu to select the function in case we have an argument
...
...
@@ -99,7 +107,7 @@ if [ -n "$1" ]; then
--clean
)
clean
;;
--list
)
cd
$WRS_DONE_DIR
;
ls
0
*
;
exit
0
;;
--pack
)
pack
;
exit
0
;;
--step
=
0[0-9]
)
num
=
`
echo
$1
|
sed
-e
's/--step=//'
`
;
rm
-vf
$WRS_DONE_DIR
/
${
num
}
-
*
;;
--step
=
*
)
seq
=
$(
echo
"
$1
"
|
sed
-e
's/--step=//'
)
;
step
"
$seq
"
;;
*
)
showhelp
;;
esac
fi
...
...
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