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
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
52d6af77
Commit
52d6af77
authored
Feb 14, 2012
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abump: add -s option for security updates
parent
817db0ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
abump.in
abump.in
+12
-6
No files found.
abump.in
View file @
52d6af77
...
...
@@ -10,18 +10,22 @@ die() {
# version bump a pkg
do_bump
()
{
pkgname
=
${
1
%-[0-9]*
}
pkgver
=
${
1
#
${
pkgname
}
-
}
local
pkgname
=
${
1
%-[0-9]*
}
local
pkgver
=
${
1
#
${
pkgname
}
-
}
APORTS
=
$HOME
/aports
set
-e
cd
$APORTS
/
*
/
$pkgname
||
return
1
section
=
${
PWD
%/*
}
local
section
=
${
PWD
%/*
}
upgrade
=
"upgrade"
cve
=
section
=
${
section
##*/
}
if
[
-n
"
$cvelist
"
]
;
then
upgrade
=
"security upgrade"
cve
=
" (
$cvelist
)"
fi
msg
=
"
$section
/
$pkgname
:
upgrade to
$pkgver
"
msg
=
"
$section
/
$pkgname
:
$upgrade
to
${
pkgver
}${
cve
}
"
echo
"
$msg
"
(
.
./APKBUILD
;
type
package |
grep
-q
function
)
||
die
"package() missing"
...
...
@@ -38,21 +42,23 @@ do_bump() {
usage
()
{
echo
"
$program
- utility to bump pkgver in APKBUILDs"
echo
"usage:
$program
[-hR]"
echo
"usage:
$program
[-hR]
[-s CVE-1,CVE-2,...]
"
echo
""
echo
" -h show this help"
echo
" -R run abuild with -R for recursive building"
echo
" -k keep existing packages"
echo
" -s security update"
exit
0
}
keep
=
recursive
=
"-r"
while
getopts
"hkR"
opt
;
do
while
getopts
"hkR
s:
"
opt
;
do
case
$opt
in
h
)
usage
;;
k
)
keep
=
"-k"
;;
R
)
recursive
=
"-R"
;;
s
)
cvelist
=
"
$OPTARG
"
;;
esac
done
shift
$((
$OPTIND
-
1
))
...
...
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