Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
abuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
abuild
Commits
75b47977
Commit
75b47977
authored
Oct 25, 2008
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use msg for messages
parent
91465846
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
abuild
abuild
+5
-5
No files found.
abuild
View file @
75b47977
...
@@ -27,10 +27,10 @@ default_cmds="checkdeps clean fetch checkmd5 unpack rootpkg"
...
@@ -27,10 +27,10 @@ default_cmds="checkdeps clean fetch checkmd5 unpack rootpkg"
all_cmds
=
"checksum fetch unpack rootpkg build package cleancache clean srcpkg"
all_cmds
=
"checksum fetch unpack rootpkg build package cleancache clean srcpkg"
# functions
# functions
vecho
()
{
msg
()
{
local
sub
=
local
sub
=
[
-n
"
$INSUB
"
]
&&
sub
=
"(sub)"
[
-n
"
$INSUB
"
]
&&
sub
=
"(sub)"
[
-z
"
$quiet
"
]
&&
echo
">>>
$pkgname
:"
"
$@
"
$sub
>
&2
[
-z
"
$quiet
"
]
&&
echo
">>>
$pkgname
$sub
:"
"
$@
"
>
&2
}
}
warning
()
{
warning
()
{
...
@@ -39,7 +39,7 @@ warning() {
...
@@ -39,7 +39,7 @@ warning() {
die
()
{
die
()
{
quiet
=
quiet
=
vecho
"
$@
"
>
&2
msg
"
$@
"
>
&2
exit
1
exit
1
}
}
...
@@ -139,7 +139,7 @@ cleanpkg() {
...
@@ -139,7 +139,7 @@ cleanpkg() {
runpart
()
{
runpart
()
{
local
part
=
$1
local
part
=
$1
vecho
"
$part
"
msg
"
$part
"
$part
||
die
"
$part
failed"
$part
||
die
"
$part
failed"
}
}
...
@@ -318,7 +318,7 @@ trap 'die "Aborted by user"' INT
...
@@ -318,7 +318,7 @@ trap 'die "Aborted by user"' INT
if
[
-z
"
$1
"
]
;
then
if
[
-z
"
$1
"
]
;
then
if
up2date
&&
[
-z
"
$force
"
]
;
then
if
up2date
&&
[
-z
"
$force
"
]
;
then
vecho
"Package is up to date"
msg
"Package is up to date"
else
else
set
$default_cmds
set
$default_cmds
fi
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