Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
abuild
Commits
c0167728
Commit
c0167728
authored
Nov 19, 2010
by
Natanael Copa
Browse files
abump: add usage and support for recursive abuild
parent
e1ebd05c
Changes
1
Hide whitespace changes
Inline
Side-by-side
abump.in
View file @
c0167728
#!/bin/sh
program
=
${
0
##*/
}
die
()
{
echo
"
$@
"
>
&2
exit
1
...
...
@@ -15,7 +17,7 @@ do_bump() {
set
-e
cd
$APORTS
/
*
/
$pkgname
cd
$APORTS
/
*
/
$pkgname
||
return
1
section
=
${
PWD
%/*
}
section
=
${
section
##*/
}
...
...
@@ -28,13 +30,32 @@ do_bump() {
-e
"s/^pkgrel=.*/pkgrel=0/"
\
APKBUILD
abuild
-r
checksum all
||
exit
1
abuild
$abuild_opts
checksum all
||
exit
1
git add APKBUILD
git commit
-m
"
$msg
"
}
usage
()
{
echo
"
$program
- utility to bump pkgver in APKBUILDs"
echo
"usage:
$program
[-hR]"
echo
""
echo
" -h show this help"
echo
" -R run abuild with -R for recursive building"
exit
0
}
abuild_opts
=
"-r"
while
getopts
"hR"
opt
;
do
case
$opt
in
h
)
usage
;;
R
)
abuild_opts
=
"-R"
;;
esac
done
shift
$((
$OPTIND
-
1
))
while
[
$#
-gt
0
]
;
do
(
do_bump
"
$1
"
)
||
exit
1
shift
done
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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