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
Kasra Jamshidi
slapos.package
Commits
536d90dc
Commit
536d90dc
authored
Sep 09, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build-slapos.sh: add missing function show_usage
parent
88aed692
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
windows/scripts/build-slapos.sh
windows/scripts/build-slapos.sh
+19
-4
No files found.
windows/scripts/build-slapos.sh
View file @
536d90dc
...
@@ -11,6 +11,23 @@ fi
...
@@ -11,6 +11,23 @@ fi
# ======================================================================
# ======================================================================
# Functions
# Functions
# ======================================================================
# ======================================================================
function
show_usage
()
{
echo
""
echo
"Usage:"
echo
""
echo
" ./build-slapos.sh [slap_path]"
echo
""
echo
" You can specify the root path for slapos buildout, default is /opt"
echo
""
echo
" The following path will be created:"
echo
""
echo
"
$slap_path
/slapos buildout.cfg will be here"
echo
"
$slap_path
/download-cache used as buildout download cache"
echo
""
}
readonly
-f
show_usage
function
slapos_apply_patch
()
function
slapos_apply_patch
()
{
{
local
_filename
=
$1
local
_filename
=
$1
...
@@ -71,8 +88,8 @@ prefix = \${buildout:directory}
...
@@ -71,8 +88,8 @@ prefix = \${buildout:directory}
csih_inform
"start bin/buildout"
csih_inform
"start bin/buildout"
(
cd
${
_home
}
;
bin/buildout
-v
-N
)
||
csih_error
"bin/buildout failed"
(
cd
${
_home
}
;
bin/buildout
-v
-N
)
||
csih_error
"bin/buildout failed"
slapos_apply_patch
"~/slapos-core-format.patch"
"
${
_home
}
/eggs/slapos.core-*.egg/"
slapos_apply_patch
~/slapos-core-format.patch
"
${
_home
}
/eggs/slapos.core-*.egg/"
slapos_apply_patch
"~/supervisor-cygwin.patch"
"
${
_home
}
/eggs/supervisor-*.egg/"
slapos_apply_patch
~/supervisor-cygwin.patch
"
${
_home
}
/eggs/supervisor-*.egg/"
csih_inform
"Run buildout of slapos node OK"
csih_inform
"Run buildout of slapos node OK"
echo
""
echo
""
...
@@ -106,8 +123,6 @@ while test $# -gt 0; do
...
@@ -106,8 +123,6 @@ while test $# -gt 0; do
exit
0
exit
0
;;
;;
*
)
*
)
show_usage
exit
1
;;
;;
esac
esac
...
...
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