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
Xiaowu Zhang
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
Show 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
#! /bin/bash
if
[[
!
-d
/opt/slapos
]]
;
then
slapos_home
=
/opt/slapos
mkdir
-p
/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
fi
if
[[
!
-d
/opt/download-cache
]]
;
then
if
[[
!
-d
$slapos_cache
]]
;
then
mkdir
-p
/opt/download-cache
echo
"Make directory of slapos cache:
$slapos_cache
"
mkdir
-p
$slapos_cache
fi
fi
cd
/opt/slapos
cd
$slapos_home
if
[[
!
-f
buildout.cfg
]]
;
then
if
[[
!
-f
buildout.cfg
]]
;
then
echo
"Create
$slapos_home
/buildout.cfg"
echo
"[buildout]
echo
"[buildout]
extends = http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/cygwin-0:/component/slapos/buildout.cfg
extends = http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/tags/cygwin-0:/component/slapos/buildout.cfg
download-cache = /opt/download-cache
download-cache = /opt/download-cache
...
@@ -17,20 +23,17 @@ prefix = ${buildout:directory}
...
@@ -17,20 +23,17 @@ prefix = ${buildout:directory}
fi
fi
if
[[
!
-f
bootstrap.py
]]
;
then
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
-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
python
-S
bootstrap.py
fi
fi
bin/buildout
-v
-N
bin/buildout
-v
-N
||
(
echo
"Buildout SlapOS failed."
;
exit
1
)
if
((
!
$?
==
0
))
;
then
echo
"Error: buildout of slapos failed"
exit
1
fi
# apply patches
# apply patches
if
[[
-f
/etc/slapos/patches/slapos-core.patch
]]
;
then
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
)
patch
-p1
< /etc/slapos/patches/slapos-core.patch
)
(
cd
/etc/slapos/patches
;
mv
slapos-core.patch slapos-core.patch.done
)
(
cd
/etc/slapos/patches
;
mv
slapos-core.patch slapos-core.patch.done
)
fi
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