Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Guillaume Hervier
slapos.package
Commits
b002e209
Commit
b002e209
authored
Sep 07, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
obs/slapos: Clean up and minor fixes.
parent
4ced03f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
obs/slapos/prepare_download_cache.sh
obs/slapos/prepare_download_cache.sh
+3
-5
No files found.
obs/slapos/prepare_download_cache.sh
View file @
b002e209
...
@@ -14,8 +14,6 @@ SETUPTOOL_VERSION=19.6.2
...
@@ -14,8 +14,6 @@ SETUPTOOL_VERSION=19.6.2
rm
-rf
$BUILD_ROOT_DIRECTORY
rm
-rf
$BUILD_ROOT_DIRECTORY
#./configure --prefix=/opt/slapos/parts/<NAME>
echo
"Preparing source tarball (recipe version:
$RECIPE_VERSION
)"
echo
"Preparing source tarball (recipe version:
$RECIPE_VERSION
)"
echo
" Build Directory:
$BUILD_DIRECTORY
"
echo
" Build Directory:
$BUILD_DIRECTORY
"
echo
" Buildroot Directory:
$BUILD_ROOT_DIRECTORY
"
echo
" Buildroot Directory:
$BUILD_ROOT_DIRECTORY
"
...
@@ -26,15 +24,15 @@ set -e
...
@@ -26,15 +24,15 @@ set -e
sed
"s/
\%
RECIPE_VERSION
\%
/
$RECIPE_VERSION
/g;s|
\%
PATCHES_DIRECTORY
\%
|
$PATCHES_DIRECTORY
|g;s|
\%
TARGET_DIRECTORY
\%
|
$TARGET_DIRECTORY
|g;s|
\%
BUILD_ROOT_DIRECTORY
\%
|
$BUILD_ROOT_DIRECTORY
|g;s|
\%
BUILD_DIRECTORY
\%
|
$BUILD_DIRECTORY
|g"
$BUILD_ROOT_DIRECTORY
/../buildout.cfg.in
>
$BUILD_DIRECTORY
/buildout.cfg
sed
"s/
\%
RECIPE_VERSION
\%
/
$RECIPE_VERSION
/g;s|
\%
PATCHES_DIRECTORY
\%
|
$PATCHES_DIRECTORY
|g;s|
\%
TARGET_DIRECTORY
\%
|
$TARGET_DIRECTORY
|g;s|
\%
BUILD_ROOT_DIRECTORY
\%
|
$BUILD_ROOT_DIRECTORY
|g;s|
\%
BUILD_DIRECTORY
\%
|
$BUILD_DIRECTORY
|g"
$BUILD_ROOT_DIRECTORY
/../buildout.cfg.in
>
$BUILD_DIRECTORY
/buildout.cfg
# Build first time to get download-cache and extends-cache ready
# Build first time to get download-cache and extends-cache ready
cd
$BUILD_DIRECTORY
cd
$BUILD_DIRECTORY
echo
"
$BUILD_ROOT_DIRECTORY
"
>
.
/original_directory
echo
"
$BUILD_ROOT_DIRECTORY
"
>
$CURRENT_DIRECTORY
/
$SLAPOS_DIRECTORY
/slapos
/original_directory
# Download bootstrap file
# Download bootstrap file
wget https://bootstrap.pypa.io/bootstrap-buildout.py
--no-check-certificate
-O
bootstrap.py
wget https://bootstrap.pypa.io/bootstrap-buildout.py
--no-check-certificate
-O
bootstrap.py
(
python
-S
bootstrap.py
--buildout-version
$BUILDOUT_VERSION
\
(
python
-S
bootstrap.py
--buildout-version
$BUILDOUT_VERSION
\
--setuptools-version
$SETUPTOOL_VERSION
\
--setuptools-version
$SETUPTOOL_VERSION
\
--setuptools-to-dir
eggs
\
--setuptools-to-dir
eggs
\
...
@@ -54,7 +52,7 @@ cp -R eggs/slapos.rebootstrap* $BUILD_ROOT_DIRECTORY/..
...
@@ -54,7 +52,7 @@ cp -R eggs/slapos.rebootstrap* $BUILD_ROOT_DIRECTORY/..
rm
-fv
.installed.cfg environment.
*
rm
-fv
.installed.cfg environment.
*
rm
-rfv
./
{
downloads,parts,eggs,develop-eggs,bin,rebootstrap
}
rm
-rfv
./
{
downloads,parts,eggs,develop-eggs,bin,rebootstrap
}
Removing empty directories
#
Removing empty directories
find
.
-type
d
-empty
-prune
-exec
rmdir
'{}'
';'
find
.
-type
d
-empty
-prune
-exec
rmdir
'{}'
';'
mkdir
-p
$BUILD_DIRECTORY
/eggs
mkdir
-p
$BUILD_DIRECTORY
/eggs
...
...
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