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
ffa02b11
Commit
ffa02b11
authored
Jul 11, 2012
by
Benoit Rat
Committed by
Alessandro Rubini
Jul 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: all: improve --clean option and the package name
parent
85be0fff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
wrs_build-all
build/wrs_build-all
+16
-2
No files found.
build/wrs_build-all
View file @
ffa02b11
...
...
@@ -58,15 +58,29 @@ showhelp() {
pack
()
{
name
=
$(
git describe
--exact-match
--tags
HEAD &> /dev/null
)
#Check if the current git repo correspond to a tag
name
=
$(
git describe
--exact-match
--tags
HEAD &> /dev/null
)
if
[
$?
-ne
"0"
]
;
then
# Otherwise obtain the date and git revision
name
=
$(
date
+%y%m%d
)
"-"
$(
git log
--abbrev-commit
--pretty
=
oneline
-1
|
cut
-d
" "
-f1
)
# Append '+' symbol if some files need to be commited to git
if
[
"x
$(
git status
-s
.
)
"
!=
"x"
]
;
then
name
=
"
$name
+"
;
fi
;
fi
echo
"Packing into wrs-firmware-
$name
.tar.gz"
;
tar
-czvf
"wrs-firmware-
$name
.tar.gz"
-C
${
WRS_OUTPUT_DIR
}
/images/ at91bootstrap.bin barebox.bin zImage wrs-image.jffs2.img
exit
0
}
clean
()
{
echo
"Cleaning all outputs except downloads"
rm
-Rf
${
WRS_OUTPUT_DIR
}
/build/
rm
-Rf
${
WRS_OUTPUT_DIR
}
/images/
rm
-Rf
${
WRS_OUTPUT_DIR
}
/doc/
}
...
...
@@ -74,7 +88,7 @@ pack()
if
[
-n
"
$1
"
]
;
then
case
"
$1
"
in
--help
)
showhelp
;;
--clean
)
rm
-f
$WRS_DONE_DIR
/0
*
;;
--clean
)
clean
;;
--fetch
)
echo
"To be done"
;;
--list
)
cd
$WRS_DONE_DIR
;
ls
0
*
;
exit
0
;;
--pack
)
pack
;
exit
0
;;
...
...
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