Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
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
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
c2b93b44
Commit
c2b93b44
authored
Mar 04, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts/deploy.sh: comment out unnecessary commands
Mounting the LOG directory is not needed anymore
parent
e4382a3a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
deploy.sh
scripts/deploy.sh
+11
-10
No files found.
scripts/deploy.sh
View file @
c2b93b44
...
...
@@ -3,7 +3,7 @@
TOP_DIR
=
..
REMOTE_HOME
=
"/home"
REMOTE_USERNAME
=
"lnls-bpm"
REMOTE_IP
=
10.0.18.
41
REMOTE_IP
=
10.0.18.
39
LOCAL_IP
=
10.0.18.35
REMOTE_DIR
=
"bpm-sw-deploy"
BOARD_TYPE
=
"afcv3"
...
...
@@ -13,9 +13,9 @@ REMOTE_LOG_DIR="/media/remote_logs"
CREATE_DIR_CMD
=
"mkdir -p
${
REMOTE_DEPLOY_DIR
}
"
MOUNT_REMOTE_LOG_CMD
=
"sshfs
${
whoami
}
@
${
LOCAL_IP
}
:~/remote_logs
${
REMOTE_LOG_DIR
}
"
COMPILE_CMD
=
"
make mrproper && make DBE_DBG=y FMC130M_4CH_TYPE=passive
\
BOARD=
${
BOARD_TYPE
}
&& make install
"
RUN_CMD
=
"./init.sh tcp
${
REMOTE_IP
}
${
REMOTE_LOG_DIR
}
"
COMPILE_CMD
=
"
./compile.sh"
#RUN_CMD="./init.sh tcp ${REMOTE_IP} ${REMOTE_LOG_DIR}
"
#RUN_CMD="systemctl start bpm-sw.service
"
# Change working directory
cd
${
TOP_DIR
}
...
...
@@ -25,15 +25,15 @@ echo "Creating remote directories on ${REMOTE_USERNAME}@${REMOTE_IP}"
ssh
-l
${
REMOTE_USERNAME
}
${
REMOTE_IP
}
"
${
CREATE_DIR_CMD
}
"
# Mount remote log directory
echo
"Mounting remote LOG directory to
${
REMOTE_LOG_DIR
}
"
ssh
-l
${
REMOTE_USERNAME
}
${
REMOTE_IP
}
"
${
MOUNT_REMOTE_LOG_CMD
}
"
#
echo "Mounting remote LOG directory to ${REMOTE_LOG_DIR}"
#
ssh -l ${REMOTE_USERNAME} ${REMOTE_IP} "${MOUNT_REMOTE_LOG_CMD}"
# Find all source files
SRC_FILES
=
$(
find
.
-type
f
-type
l
!
-iname
"*.[o|a]"
!
-iname
"*orig"
\
!
-iname
"*.swp"
!
-iname
"*.swap"
!
-iname
"*.txt"
\
SRC_FILES
=
$(
find
.
-type
f
!
-iname
"*.[o|a]"
!
-iname
"*orig"
\
!
-iname
"*.swp"
!
-iname
"*.swap"
!
-iname
"*.txt"
!
-iname
"*.pyc"
\
!
-path
"./majordomo*"
!
-path
"./.git*"
)
SYM_FILES
=
$(
find
.
-type
l
!
-iname
"*.[o|a]"
!
-iname
"*orig"
\
!
-iname
"*.swp"
!
-iname
"*.swap"
!
-iname
"*.txt"
\
!
-iname
"*.swp"
!
-iname
"*.swap"
!
-iname
"*.txt"
!
-iname
"*.pyc"
\
!
-path
"./majordomo*"
!
-path
"./.git*"
)
echo
"Copying files to
${
REMOTE_USERNAME
}
@
${
REMOTE_IP
}
:
${
REMOTE_DEPLOY_DIR
}
"
...
...
@@ -41,5 +41,6 @@ rsync -Rpr ${SRC_FILES} ${REMOTE_USERNAME}@${REMOTE_IP}:${REMOTE_DEPLOY_DIR}
rsync
-Rpr
${
SYM_FILES
}
${
REMOTE_USERNAME
}
@
${
REMOTE_IP
}
:
${
REMOTE_DEPLOY_DIR
}
echo
"Compiling source files with
\"
${
COMPILE_CMD
}
\"
"
ssh
-l
${
REMOTE_USERNAME
}
${
REMOTE_IP
}
"cd
${
REMOTE_DIR
}
&&
${
COMPILE_CMD
}
&&
${
RUN_CMD
}
"
ssh
-l
${
REMOTE_USERNAME
}
${
REMOTE_IP
}
"cd
${
REMOTE_DEPLOY_DIR
}
&&
\
${
COMPILE_CMD
}
"
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