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
83
Issues
83
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
9e9ff6e5
Commit
9e9ff6e5
authored
Mar 08, 2012
by
Benoit Rat
Committed by
Alessandro Rubini
Mar 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: support --help, support rebuilding one step only
parent
79e38916
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
wrs_build-all
build/wrs_build-all
+34
-0
No files found.
build/wrs_build-all
View file @
9e9ff6e5
...
...
@@ -38,6 +38,37 @@ fi
export
WRS_SCRIPTS_DIR
=
${
WRS_BASE_DIR
}
/scripts
## Function that show a little help
showhelp
()
{
echo
""
echo
"Usage:
$0
[options]"
echo
""
echo
"Building script which fetch and compile the software for the white rabbit switch"
echo
""
echo
"Options:"
echo
" --help Show this little message"
echo
" --clean Remove all the previous configuration"
echo
" --fetch Force fetching the new download files"
echo
" --list List the different building steps"
echo
" --step=[00-09] Perform one specific step"
echo
""
exit
0
;
}
## Menu to select the function in case we have an argument
if
[
-n
"
$1
"
]
;
then
case
"
$1
"
in
--help
)
showhelp
;;
--clean
)
rm
-f
$WRS_DONE_DIR
/00
*
;;
--fetch
)
echo
"To be done"
;;
--list
)
cd
$WRS_DONE_DIR
;
ls
0
*
;
exit
0
;;
--step
=
0[0-9]
)
num
=
`
echo
$1
|
sed
-e
's/--step=//'
`
;
rm
-vf
$WRS_DONE_DIR
/
${
num
}
-
*
;;
*
)
showhelp
;;
esac
fi
wrs_show_vars WRS_BASE_DIR WRS_OUTPUT_DIR WRS_DOWNLOAD_DIR
\
WRS_SCRIPTS_DIR WRS_DONE_DIR CROSS_COMPILE
...
...
@@ -65,6 +96,9 @@ wrs_build_step () {
}
failed_step
=
false
;
# this is set to "true" but the wrs_build_step function
# Now build the stuff one step at a time, only if not already done.
...
...
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