abuild: remove use of svnurl
Not used by anything in aports
This commit is contained in:
parent
42820c6d44
commit
115e41fd1f
17
abuild.in
17
abuild.in
|
@ -2619,7 +2619,7 @@ all() {
|
|||
}
|
||||
|
||||
# This abuild hook will checkout an svn or git repository by specifying
|
||||
# $svnurl or $giturl in APKBUILD. You can checkout a specific branch in
|
||||
# $giturl in APKBUILD. You can checkout a specific branch in
|
||||
# git by adding -b $branch in $giturl. $reporev will select the correct
|
||||
# commit, revision or tag for you. If you specify $disturl your distfile
|
||||
# will automatically be uploaded with rsync to the url provided.
|
||||
|
@ -2628,8 +2628,7 @@ all() {
|
|||
snapshot() {
|
||||
# check if we setup vars correctly
|
||||
[ -z "$disturl" ] && warning "Missing disturl in APKBUILD, auto uploading disabled."
|
||||
[ -z "$svnurl" ] && [ -z "$giturl" ] && die "Missing repository url in APKBUILD!"
|
||||
[ -n "$svnurl" ] && [ -n "$giturl" ] && die "You can only use a single repository!"
|
||||
[ -z "$giturl" ] && die "Missing repository url in APKBUILD!"
|
||||
local _date=$(date +%Y%m%d)
|
||||
local _format="tar.gz"
|
||||
# remove any repositories left in srcdir
|
||||
|
@ -2649,16 +2648,6 @@ snapshot() {
|
|||
--prefix=$pkgname-$_version/ $_rev \
|
||||
|| return 1
|
||||
fi
|
||||
# export svn repo and archive
|
||||
if [ -n "$svnurl" ]; then
|
||||
local _version=${verbase:-0}_svn${_date}
|
||||
command -v svn >/dev/null || \
|
||||
die "Missing svn! Install subverion to support svn export."
|
||||
[ -n "$reporev" ] && local _rev="-r $reporev"
|
||||
msg "Creating svn snapshot: $pkgname-$_version"
|
||||
svn co $_rev $svnurl $pkgname-$_version || return 1
|
||||
tar zcf $pkgname-$_version.$_format $pkgname-$_version || return 1
|
||||
fi
|
||||
# upload to defined distfiles url
|
||||
if [ -n "$disturl" ]; then
|
||||
command -v rsync >/dev/null || \
|
||||
|
@ -2712,7 +2701,7 @@ usage() {
|
|||
rootbld Build package in clean chroot
|
||||
rootpkg Run 'package', the split functions and create apks as fakeroot
|
||||
sanitycheck Basic sanity check of APKBUILD
|
||||
snapshot Create a \$giturl or \$svnurl snapshot and upload to \$disturl
|
||||
snapshot Create a \$giturl snapshot and upload to \$disturl
|
||||
sourcecheck Check if remote source package exists upstream
|
||||
srcpkg Make a source package
|
||||
undeps Uninstall packages listed in makedepends and depends
|
||||
|
|
Loading…
Reference in New Issue