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
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
e8508f7b
Commit
e8508f7b
authored
Aug 20, 2016
by
Jakub Jirutka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add .editorconfig and fix code formatting
parent
8a4680cc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
40 additions
and
25 deletions
+40
-25
.editorconfig
.editorconfig
+18
-0
abump.in
abump.in
+0
-1
apkbuild-gem-resolver.in
apkbuild-gem-resolver.in
+1
-1
apkgrel.in
apkgrel.in
+0
-1
buildlab.in
buildlab.in
+20
-20
newapkbuild.in
newapkbuild.in
+1
-2
No files found.
.editorconfig
0 → 100644
View file @
e8508f7b
# http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
[apkbuild-gem-resolver.in]
indent_size = 2
indent_style = space
[apkbuild-pypi.in]
indent_size = 4
indent_style = space
abump.in
View file @
e8508f7b
...
...
@@ -136,4 +136,3 @@ fi
abuild_opts
=
"
$recursive
$keep
"
do_bump
"
$@
"
apkbuild-gem-resolver.in
View file @
e8508f7b
...
...
@@ -211,7 +211,7 @@ end
class
Update
def
initialize
def
initialize
@
gems
=
{}
@
deps
=
[]
end
...
...
apkgrel.in
View file @
e8508f7b
...
...
@@ -136,4 +136,3 @@ IFS=$oldifs
do_verify
"
$@
"
||
exit
1
$cmd
"
$@
"
buildlab.in
View file @
e8508f7b
...
...
@@ -15,32 +15,32 @@ ABUILD_CONF=${ABUILD_CONF:-"$sysconfdir/abuild.conf"}
[
-f
"
$ABUILD_CONF
"
]
&&
.
"
$ABUILD_CONF
"
default_colors
()
{
NORMAL
=
"
\0
33[1;0m"
STRONG
=
"
\0
33[1;1m"
RED
=
"
\0
33[1;31m"
GREEN
=
"
\0
33[1;32m"
YELLOW
=
"
\0
33[1;33m"
BLUE
=
"
\0
33[1;34m"
NORMAL
=
"
\0
33[1;0m"
STRONG
=
"
\0
33[1;1m"
RED
=
"
\0
33[1;31m"
GREEN
=
"
\0
33[1;32m"
YELLOW
=
"
\0
33[1;33m"
BLUE
=
"
\0
33[1;34m"
}
default_colors
is_local
()
{
case
"
$1
"
in
http://
*
|
ftp://
*
|
https://
*
|
saveas-
*
://
*
)
return
1
;;
esac
return
0
case
"
$1
"
in
http://
*
|
ftp://
*
|
https://
*
|
saveas-
*
://
*
)
return
1
;;
esac
return
0
}
msg
()
{
local
prompt
=
"
$GREEN
>>>
${
NORMAL
}
"
[
-z
"
$quiet
"
]
&&
printf
"
${
prompt
}
$@
\n
"
>
&2
[
-z
"
$quiet
"
]
&&
printf
"
${
prompt
}
$@
\n
"
>
&2
}
error
()
{
local
prompt
=
"
$RED
>>>
${
NORMAL
}
"
printf
"
${
prompt
}
$@
\n
"
>
&2
printf
"
${
prompt
}
$@
\n
"
>
&2
}
die
()
{
...
...
@@ -49,9 +49,9 @@ die() {
}
runpart
()
{
local
part
=
$1
local
part
=
$1
msg
"Running part
$part
"
$part
||
die
"
$part
failed"
$part
||
die
"
$part
failed"
}
is_vserver
()
{
...
...
@@ -161,9 +161,9 @@ prepare_chroot() {
msg
"Generating buildlab signing keys..."
do_chroot_action
"
$path
"
su abuild
-c
"'abuild-keygen -ai'"
msg
"Setting up repository symlink..."
mkdir
-p
"
$path
"
/home/abuild/.cache/apks
mkdir
-p
"
$path
"
/home/abuild/.cache/apks
do_chroot_action
"
$path
"
chown
abuild:abuild /home/abuild/
${
src
}
do_chroot_action
"
$path
"
ln
-sf
.cache/apks /home/abuild/repo
...
...
@@ -256,8 +256,8 @@ while getopts "chqCkp:v:m:a:b:u" opt; do
case
$opt
in
'c'
)
default_colors
color_opt
=
"-c"
;;
'h'
)
usage
;;
'q'
)
quiet
=
"-q"
;;
'h'
)
usage
;;
'q'
)
quiet
=
"-q"
;;
'C'
)
create
=
"-c"
;;
'p'
)
buildpath
=
"
$OPTARG
"
;;
'm'
)
buildmirror
=
"
$OPTARG
"
;;
...
...
@@ -266,7 +266,7 @@ while getopts "chqCkp:v:m:a:b:u" opt; do
'k'
)
enablecache
=
1
;;
'b'
)
buildpkg
=
"
$OPTARG
"
;;
'u'
)
update
=
"-u"
;;
esac
esac
done
shift
$((
$OPTIND
-
1
))
...
...
newapkbuild.in
View file @
e8508f7b
...
...
@@ -155,7 +155,7 @@ newaport() {
if
[
-z
"
$makedepends
"
]
&&[
"
$buildtype
"
=
"python"
]
;
then
makedepends
=
"python-dev"
else
makedepends
=
"
\$
depends_dev"
makedepends
=
"
\$
depends_dev"
fi
# Replace pkgver in $source
...
...
@@ -329,4 +329,3 @@ while [ $# -gt 0 ]; do
newaport
$1
||
exit
1
shift
done
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