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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.package
Commits
1e57b55e
Commit
1e57b55e
authored
May 05, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine script build-slapos.sh
parent
b22f5291
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
windows/scripts/build-slapos.sh
windows/scripts/build-slapos.sh
+15
-12
No files found.
windows/scripts/build-slapos.sh
View file @
1e57b55e
#! /bin/bash
if
[[
!
-d
/opt/slapos
]]
;
then
mkdir
-p
/opt/slapos
slapos_home
=
/opt/slapos
slapos_cache
=
/opt/download-cache
if
[[
!
-d
$slapos_home
]]
;
then
echo
"Make directory of slapos home:
$slapos_home
"
mkdir
-p
$slapos_home
fi
if
[[
!
-d
/opt/download-cache
]]
;
then
mkdir
-p
/opt/download-cache
if
[[
!
-d
$slapos_cache
]]
;
then
echo
"Make directory of slapos cache:
$slapos_cache
"
mkdir
-p
$slapos_cache
fi
cd
/opt/slapos
cd
$slapos_home
if
[[
!
-f
buildout.cfg
]]
;
then
echo
"Create
$slapos_home
/buildout.cfg"
echo
"[buildout]
extends = http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/cygwin-0:/component/slapos/buildout.cfg
download-cache = /opt/download-cache
...
...
@@ -17,20 +23,17 @@ prefix = ${buildout:directory}
fi
if
[[
!
-f
bootstrap.py
]]
;
then
echo
"Download
$slapos_home
/bootstrap.py"
python
-S
-c
'import urllib2;print urllib2.urlopen("http://git.erp5.org/gitweb/slapos.core.git/blob_plain/HEAD:/bootstrap.py").read()'
>
bootstrap.py
python
-S
bootstrap.py
fi
bin/buildout
-v
-N
if
((
!
$?
==
0
))
;
then
echo
"Error: buildout of slapos failed"
exit
1
fi
bin/buildout
-v
-N
||
(
echo
"Buildout SlapOS failed."
;
exit
1
)
# apply patches
if
[[
-f
/etc/slapos/patches/slapos-core.patch
]]
;
then
(
cd
`
ls
-d
/opt/slapos/eggs/slapos.core-
*
-py2
.7.egg
`
/slapos
;
\
echo
"Apply patch: /etc/slapos/patches/slapos-core.patch"
(
cd
`
ls
-d
$slapos_home
/eggs/slapos.core-
*
-py2
.7.egg
`
/slapos
;
\
patch
-p1
< /etc/slapos/patches/slapos-core.patch
)
(
cd
/etc/slapos/patches
;
mv
slapos-core.patch slapos-core.patch.done
)
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