Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
getty
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
getty
Commits
dec7b3a3
Commit
dec7b3a3
authored
Oct 26, 2016
by
alexstocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add mac build script
parent
2df8247c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
95 additions
and
8 deletions
+95
-8
test.sh
echo/tcp-echo/client/assembly/mac/test.sh
+1
-1
test.sh
echo/tcp-echo/server/assembly/mac/test.sh
+1
-1
build.sh
echo/ws-echo/client/assembly/common/build.sh
+17
-3
test.sh
echo/ws-echo/client/assembly/mac/test.sh
+29
-0
build.sh
echo/ws-echo/server/assembly/common/build.sh
+18
-3
test.sh
echo/ws-echo/server/assembly/mac/test.sh
+29
-0
No files found.
echo/tcp-echo/client/assembly/mac/test.sh
View file @
dec7b3a3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# DESC : build script for test env
# DESC : build script for test env
# AUTHOR : Alex Stocks
# AUTHOR : Alex Stocks
# VERSION : 1.0
# VERSION : 1.0
# LICENCE :
LGPL V3
# LICENCE :
Apache License 2.0
# EMAIL : alexstocks@foxmail.com
# EMAIL : alexstocks@foxmail.com
# MOD : 2016-07-12 16:34
# MOD : 2016-07-12 16:34
# FILE : test.sh
# FILE : test.sh
...
...
echo/tcp-echo/server/assembly/mac/test.sh
View file @
dec7b3a3
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# DESC : build script for test env
# DESC : build script for test env
# AUTHOR : Alex Stocks
# AUTHOR : Alex Stocks
# VERSION : 1.0
# VERSION : 1.0
# LICENCE :
LGPL V3
# LICENCE :
Apache License 2.0
# EMAIL : alexstocks@foxmail.com
# EMAIL : alexstocks@foxmail.com
# MOD : 2016-07-12 16:34
# MOD : 2016-07-12 16:34
# FILE : test.sh
# FILE : test.sh
...
...
echo/ws-echo/client/assembly/common/build.sh
View file @
dec7b3a3
...
@@ -46,11 +46,25 @@ mkdir -p ${CONF_DIR}
...
@@ -46,11 +46,25 @@ mkdir -p ${CONF_DIR}
mv
${
TARGET_NAME
}
${
SBIN_DIR
}
mv
${
TARGET_NAME
}
${
SBIN_DIR
}
cp
-r
assembly/bin
${
BIN_DIR
}
cp
-r
assembly/bin
${
BIN_DIR
}
# modify APPLICATION_NAME
# modify APPLICATION_NAME
sed
-i
"s~APPLICATION_NAME~
${
TARGET_EXEC_NAME
}
~g"
${
BIN_DIR
}
/bin/
*
if
[[
${
GOOS
}
==
"darwin"
]]
;
then
sed
-i
""
"s~APPLICATION_NAME~
${
TARGET_EXEC_NAME
}
~g"
${
BIN_DIR
}
/bin/
*
else
sed
-i
"s~APPLICATION_NAME~
${
TARGET_EXEC_NAME
}
~g"
${
BIN_DIR
}
/bin/
*
fi
# modify TARGET_CONF_FILE
# modify TARGET_CONF_FILE
sed
-i
"s~TARGET_CONF_FILE~
${
TARGET_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
if
[[
${
GOOS
}
==
"darwin"
]]
;
then
sed
-i
""
"s~TARGET_CONF_FILE~
${
TARGET_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
else
sed
-i
"s~TARGET_CONF_FILE~
${
TARGET_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
fi
# modify TARGET_LOG_CONF_FILE
# modify TARGET_LOG_CONF_FILE
sed
-i
"s~TARGET_LOG_CONF_FILE~
${
TARGET_LOG_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
if
[[
${
GOOS
}
==
"darwin"
]]
;
then
sed
-i
""
"s~TARGET_LOG_CONF_FILE~
${
TARGET_LOG_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
else
sed
-i
"s~TARGET_LOG_CONF_FILE~
${
TARGET_LOG_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
fi
cp
-r
profiles/
${
PROFILE
}
/
*
${
CONF_DIR
}
cp
-r
profiles/
${
PROFILE
}
/
*
${
CONF_DIR
}
...
...
echo/ws-echo/client/assembly/mac/test.sh
0 → 100644
View file @
dec7b3a3
#!/usr/bin/env bash
# ******************************************************
# DESC : build script for test env
# AUTHOR : Alex Stocks
# VERSION : 1.0
# LICENCE : Apache License 2.0
# EMAIL : alexstocks@foxmail.com
# MOD : 2016-07-12 16:34
# FILE : test.sh
# ******************************************************
set
-e
export
GOOS
=
darwin
export
GOARCH
=
amd64
PROFILE
=
test
PROJECT_HOME
=
`
pwd
`
if
[
-f
"
${
PROJECT_HOME
}
/assembly/common/app.properties"
]
;
then
.
${
PROJECT_HOME
}
/assembly/common/app.properties
fi
if
[
-f
"
${
PROJECT_HOME
}
/assembly/common/build.sh"
]
;
then
.
${
PROJECT_HOME
}
/assembly/common/build.sh
fi
echo/ws-echo/server/assembly/common/build.sh
View file @
dec7b3a3
...
@@ -45,12 +45,27 @@ mkdir -p ${CONF_DIR}
...
@@ -45,12 +45,27 @@ mkdir -p ${CONF_DIR}
mv
${
TARGET_NAME
}
${
SBIN_DIR
}
mv
${
TARGET_NAME
}
${
SBIN_DIR
}
cp
-r
assembly/bin
${
BIN_DIR
}
cp
-r
assembly/bin
${
BIN_DIR
}
# modify APPLICATION_NAME
# modify APPLICATION_NAME
sed
-i
"s~APPLICATION_NAME~
${
TARGET_EXEC_NAME
}
~g"
${
BIN_DIR
}
/bin/
*
if
[[
${
GOOS
}
==
"darwin"
]]
;
then
sed
-i
""
"s~APPLICATION_NAME~
${
TARGET_EXEC_NAME
}
~g"
${
BIN_DIR
}
/bin/
*
else
sed
-i
"s~APPLICATION_NAME~
${
TARGET_EXEC_NAME
}
~g"
${
BIN_DIR
}
/bin/
*
fi
# modify TARGET_CONF_FILE
# modify TARGET_CONF_FILE
sed
-i
"s~TARGET_CONF_FILE~
${
TARGET_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
if
[[
${
GOOS
}
==
"darwin"
]]
;
then
sed
-i
""
"s~TARGET_CONF_FILE~
${
TARGET_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
else
sed
-i
"s~TARGET_CONF_FILE~
${
TARGET_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
fi
# modify TARGET_LOG_CONF_FILE
# modify TARGET_LOG_CONF_FILE
sed
-i
"s~TARGET_LOG_CONF_FILE~
${
TARGET_LOG_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
if
[[
${
GOOS
}
==
"darwin"
]]
;
then
sed
-i
""
"s~TARGET_LOG_CONF_FILE~
${
TARGET_LOG_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
else
sed
-i
"s~TARGET_LOG_CONF_FILE~
${
TARGET_LOG_CONF_FILE
}
~g"
${
BIN_DIR
}
/bin/
*
fi
cp
-r
profiles/
${
PROFILE
}
/
*
${
CONF_DIR
}
cp
-r
profiles/
${
PROFILE
}
/
*
${
CONF_DIR
}
...
...
echo/ws-echo/server/assembly/mac/test.sh
0 → 100644
View file @
dec7b3a3
#!/usr/bin/env bash
# ******************************************************
# DESC : build script for test env
# AUTHOR : Alex Stocks
# VERSION : 1.0
# LICENCE : Apache License 2.0
# EMAIL : alexstocks@foxmail.com
# MOD : 2016-07-12 16:34
# FILE : test.sh
# ******************************************************
set
-e
export
GOOS
=
darwin
export
GOARCH
=
amd64
PROFILE
=
test
PROJECT_HOME
=
`
pwd
`
if
[
-f
"
${
PROJECT_HOME
}
/assembly/common/app.properties"
]
;
then
.
${
PROJECT_HOME
}
/assembly/common/app.properties
fi
if
[
-f
"
${
PROJECT_HOME
}
/assembly/common/build.sh"
]
;
then
.
${
PROJECT_HOME
}
/assembly/common/build.sh
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