Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Adélie Linux
abuild
Commits
bcb440d4
Commit
bcb440d4
authored
Feb 11, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abuild: auto add bb to deps when install. added -P option.
-P lets user specify the REPODEST on cmd line
parent
78e0ab1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
abuild
abuild
+19
-11
No files found.
abuild
View file @
bcb440d4
...
@@ -30,11 +30,6 @@ default_cmds="sanitycheck builddeps clean fetch unpack rootpkg"
...
@@ -30,11 +30,6 @@ default_cmds="sanitycheck builddeps clean fetch unpack rootpkg"
ABUILD_CONF
=
${
ABUILD_CONF
:-
"/etc/abuild.conf"
}
ABUILD_CONF
=
${
ABUILD_CONF
:-
"/etc/abuild.conf"
}
[
-f
"
$ABUILD_CONF
"
]
&&
.
"
$ABUILD_CONF
"
[
-f
"
$ABUILD_CONF
"
]
&&
.
"
$ABUILD_CONF
"
# If REPODEST is set then it will override the PKGDEST
if
[
-n
"
$REPODEST
"
]
;
then
PKGDEST
=
"
$REPODEST
/
$repo
"
fi
# source functions
# source functions
datadir
=
/usr/share/abuild
datadir
=
/usr/share/abuild
...
@@ -284,15 +279,20 @@ builddate = $builddate
...
@@ -284,15 +279,20 @@ builddate = $builddate
packager =
${
PACKAGER
:-
"Unknown"
}
packager =
${
PACKAGER
:-
"Unknown"
}
size =
$size
size =
$size
EOF
EOF
local
i
local
i deps
deps
=
"
$depends
"
if
[
-n
"
$install
"
]
&&
head
-n
1
"
$srcdir
/
$install
"
|
grep
'^#'
>
/dev/null
&&
!
depends_has busybox
;
then
msg
"Adding busybox to depends since we have an install script"
deps
=
"
$deps
busybox"
fi
for
i
in
$license
;
do
for
i
in
$license
;
do
echo
"license =
$i
"
>>
.PKGINFO
echo
"license =
$i
"
>>
.PKGINFO
done
done
for
i
in
$replaces
;
do
for
i
in
$replaces
;
do
echo
"replaces =
$i
"
>>
.PKGINFO
echo
"replaces =
$i
"
>>
.PKGINFO
done
done
for
i
in
$dep
end
s
;
do
for
i
in
$deps
;
do
echo
"depend =
$i
"
>>
.PKGINFO
echo
"depend =
$i
"
>>
.PKGINFO
done
done
for
i
in
$conflicts
;
do
for
i
in
$conflicts
;
do
...
@@ -527,7 +527,7 @@ builddeps() {
...
@@ -527,7 +527,7 @@ builddeps() {
local
pkg
=
${
i
%
:
*
}
local
pkg
=
${
i
%
:
*
}
msg
"Entering
$dir
"
msg
"Entering
$dir
"
cd
"
$dir
"
||
return
1
cd
"
$dir
"
||
return
1
$0
-i
$pkg
||
return
1
$0
-
k
-
i
$pkg
||
return
1
uninstall_after
=
"
$pkg
$uninstall_after
"
uninstall_after
=
"
$pkg
$uninstall_after
"
done
done
}
}
...
@@ -654,7 +654,8 @@ newaport() {
...
@@ -654,7 +654,8 @@ newaport() {
usage
()
{
usage
()
{
echo
"
$(
basename
$0
)
$abuild_ver
"
echo
"
$(
basename
$0
)
$abuild_ver
"
echo
"usage:
${
0
##*/
}
[options] [-i PKG] [-p PKGDEST] [-s SRCDEST] [cmd] ..."
echo
"usage:
${
0
##*/
}
[options] [-i PKG] [-P REPODEST] [-p PKGDEST]"
echo
" [-s SRCDEST] [cmd] ..."
echo
"
${
0
##*/
}
[-c] -n PKGNAME[-PKGVER]"
echo
"
${
0
##*/
}
[-c] -n PKGNAME[-PKGVER]"
echo
"Options:"
echo
"Options:"
echo
" -f Force specified cmd, even if they are already done"
echo
" -f Force specified cmd, even if they are already done"
...
@@ -662,6 +663,7 @@ usage() {
...
@@ -662,6 +663,7 @@ usage() {
echo
" -i Install PKG after successul build"
echo
" -i Install PKG after successul build"
echo
" -k Keep built packages, even if APKBUILD or sources are newer"
echo
" -k Keep built packages, even if APKBUILD or sources are newer"
echo
" -p Set package destination directory"
echo
" -p Set package destination directory"
echo
" -P Set PKGDEST to REPODEST/<repo>, where repo is the parents dir name"
echo
" -q Quiet"
echo
" -q Quiet"
echo
" -r Install missing dependencies from system repository (using sudo)"
echo
" -r Install missing dependencies from system repository (using sudo)"
echo
" -R Recursively build and install missing dependencies (using sudo)"
echo
" -R Recursively build and install missing dependencies (using sudo)"
...
@@ -694,7 +696,7 @@ usage() {
...
@@ -694,7 +696,7 @@ usage() {
APKBUILD
=
"
${
APKBUILD
:-
./APKBUILD
}
"
APKBUILD
=
"
${
APKBUILD
:-
./APKBUILD
}
"
unset
force
unset
force
unset
recursive
unset
recursive
while
getopts
"cfhi:kin:p:qrRs:u"
opt
;
do
while
getopts
"cfhi:kin:p:
P:
qrRs:u"
opt
;
do
case
$opt
in
case
$opt
in
'c'
)
cpinitd
=
1
;;
'c'
)
cpinitd
=
1
;;
'f'
)
force
=
1
;;
'f'
)
force
=
1
;;
...
@@ -703,6 +705,7 @@ while getopts "cfhi:kin:p:qrRs:u" opt; do
...
@@ -703,6 +705,7 @@ while getopts "cfhi:kin:p:qrRs:u" opt; do
'k'
)
keep
=
1
;;
'k'
)
keep
=
1
;;
'n'
)
newname
=
$OPTARG
;;
'n'
)
newname
=
$OPTARG
;;
'p'
)
PKGDEST
=
$OPTARG
;;
'p'
)
PKGDEST
=
$OPTARG
;;
'P'
)
REPODEST
=
$OPTARG
;;
'q'
)
quiet
=
1
;;
'q'
)
quiet
=
1
;;
'r'
)
install_deps
=
1
;;
'r'
)
install_deps
=
1
;;
'R'
)
recursive
=
1
;;
'R'
)
recursive
=
1
;;
...
@@ -713,6 +716,11 @@ while getopts "cfhi:kin:p:qrRs:u" opt; do
...
@@ -713,6 +716,11 @@ while getopts "cfhi:kin:p:qrRs:u" opt; do
done
done
shift
$((
$OPTIND
-
1
))
shift
$((
$OPTIND
-
1
))
# If REPODEST is set then it will override the PKGDEST
if
[
-n
"
$REPODEST
"
]
;
then
PKGDEST
=
"
$REPODEST
/
$repo
"
fi
# source the buildfile
# source the buildfile
if
[
-z
"
$newname
"
]
;
then
if
[
-z
"
$newname
"
]
;
then
[
-f
"
$APKBUILD
"
]
||
die
"Could not find
$APKBUILD
(PWD=
$PWD
)"
[
-f
"
$APKBUILD
"
]
||
die
"Could not find
$APKBUILD
(PWD=
$PWD
)"
...
...
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