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
b9ce3c17
Commit
b9ce3c17
authored
Nov 25, 2008
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement is_remote(). fix up2date to deal with $SRCDEST properly.
parent
c3408b76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
16 deletions
+25
-16
abuild
abuild
+25
-16
No files found.
abuild
View file @
b9ce3c17
...
...
@@ -129,19 +129,24 @@ uri_fetch() {
&&
mv
"
$SRCDEST
/
$d
.part"
"
$SRCDEST
/
$d
"
}
is_remote
()
{
case
"
$1
"
in
http://
*
|
ftp://
*
)
return
0
;;
esac
return
1
}
fetch
()
{
local
s
mkdir
-p
"
$srcdir
"
for
s
in
$source
;
do
case
"
$s
"
in
http://
*
|
ftp://
*
)
uri_fetch
"
$s
"
||
return
1
ln
-sf
"
$SRCDEST
/
${
s
##*/
}
"
"
$srcdir
"
/
;;
*
)
ln
-sf
"
$startdir
/
$s
"
"
$srcdir
/"
;;
esac
for
s
in
$source
;
do
if
is_remote
"
$s
"
;
then
uri_fetch
"
$s
"
||
return
1
ln
-sf
"
$SRCDEST
/
${
s
##*/
}
"
"
$srcdir
"
/
else
ln
-sf
"
$startdir
/
$s
"
"
$srcdir
/"
fi
done
}
...
...
@@ -181,11 +186,10 @@ clean() {
cleancache
()
{
local
s
for
s
in
$source
;
do
case
"
$s
"
in
http://
*
|
ftp://
*
)
msg
"Cleaning downloaded
${
s
##*/
}
..."
rm
-f
"
$SRCDEST
/
${
s
##*/
}
"
;;
esac
if
is_remote
"
$s
"
;
then
msg
"Cleaning downloaded
${
s
##*/
}
..."
rm
-f
"
$SRCDEST
/
${
s
##*/
}
"
fi
done
}
...
...
@@ -377,7 +381,12 @@ up2date() {
cd
"
$startdir
"
[
-f
"
$pkg
"
]
||
return
1
for
i
in
$source
APKBUILD
;
do
local
s
=
"
$SRCDEST
/
${
i
##*/
}
"
# $(basename $i)
local
s
if
is_remote
"
$i
"
;
then
s
=
"
$SRCDEST
/
${
i
##*/
}
"
# $(basename $i)
else
s
=
"
$startdir
/
${
i
##*/
}
"
fi
if
[
"
$s
"
-nt
"
$pkg
"
]
;
then
return
1
fi
...
...
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