Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xfce4-dev-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xfce
xfce4-dev-tools
Commits
3ba3f2e1
Commit
3ba3f2e1
authored
4 years ago
by
Simon Steinbeiss
Browse files
Options
Downloads
Patches
Plain Diff
helpers: Add xfce-build 'pull' argument
This command simply updates the container and then exits.
parent
27fc51ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#4766
passed
4 years ago
Stage: build
Stage: distcheck
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
helpers/xfce-build
+12
-1
12 additions, 1 deletion
helpers/xfce-build
with
12 additions
and
1 deletion
helpers/xfce-build
+
12
−
1
View file @
3ba3f2e1
#!/bin/bash
# Just a small script that runs the same build that we have on gitlab-ci locally.
# Possible arguments:
# - the version of the xfce-build container (if you want to build with a special version)
# - 'pull' to simply update the container and exit
CONTAINER
=
"xfce/xfce-build"
VERSION
=
"latest"
...
...
@@ -8,15 +11,23 @@ CFLAGS="-Wall -Wno-deprecated-declarations -Werror=implicit-function-declaration
VOLUME
=
$(
pwd
)
BUILD_CMD
=
'cd /tmp; ./autogen.sh && make distcheck'
docker_pull
()
{
docker pull xfce/xfce-build:
$VERSION
}
if
[
-z
"
$1
"
]
;
then
VERSION
=
"latest"
elif
[[
"
$1
"
==
"pull"
]]
;
then
docker_pull
exit
0
else
VERSION
=
$1
fi
# Make sure we're running the latest version
docker
pull
xfce/xfce-build:
$VERSION
docker
_
pull
# Run the build in the docker container
docker run
--rm
-u
$(
id
-u
${
USER
}
)
:
$(
id
-g
${
USER
}
)
--volume
$VOLUME
:/tmp
--env
CFLAGS
=
"
${
CFLAGS
}
"
$CONTAINER
:
$VERSION
/bin/bash
-c
"
${
BUILD_CMD
}
"
printf
"
\n
---
\n
Built using container
$CONTAINER
:
$VERSION
on
$VOLUME
\n
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment