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
395a7951
Commit
395a7951
authored
Jan 03, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: implemented listpkg and cleanoldpkg
parent
5b752e98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
abuild
abuild
+23
-0
No files found.
abuild
View file @
395a7951
...
...
@@ -204,6 +204,19 @@ cleanpkg() {
done
}
# clean all packages except current
cleanoldpkg
()
{
local
i j
msg
"Cleaning all packages except
$pkgver
-r
$pkgrel
..."
for
i
in
$pkgname
$subpackages
;
do
for
j
in
"
$PKGDEST
"
/
${
i
%
:
*
}
-[0-9]
*
.apk
;
do
[
"
$j
"
!=
"
$PKGDEST
/
${
i
%
:
*
}
-
$pkgver
-r
$pkgrel
.apk"
]
\
&&
rm
-f
"
$j
"
done
done
return
0
}
runpart
()
{
local
part
=
$1
[
-n
"
$DEBUG
"
]
&&
msg
"
$part
"
...
...
@@ -465,6 +478,14 @@ stripbin() {
return
0
}
# simply list target apks
listpkg
()
{
local
i
for
i
in
$pkgname
$subpackages
;
do
echo
"
${
i
%
:
*
}
-
$pkgver
-r
$pkgrel
.apk"
done
}
usage
()
{
echo
"
$(
basename
$0
)
$abuild_ver
"
echo
"usage:
$0
[options] [cmd] ..."
...
...
@@ -482,9 +503,11 @@ usage() {
echo
" md5check Check md5sums"
echo
" unpack Unpack sources to
\$
srcdir"
echo
" build Compile and install package into
\$
pkgdir"
echo
" listpkg List target packages"
echo
" package Create package in
\$
PKGDEST"
echo
" rootpkg Run '
$0
build package' as fakeroot"
echo
" clean Remove temp build and install dirs"
echo
" cleanoldpkg Remove binary packages except current version"
echo
" cleanpkg Remove already built binary and source package"
echo
" cleancache Remove downloaded files from
\$
SRCDEST"
echo
" srcpkg Make a source package"
...
...
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