Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
564dc59b
Commit
564dc59b
authored
16 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
messages during running...
parent
affbe9d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/zmap_do_build.sh
+63
-3
63 additions, 3 deletions
scripts/zmap_do_build.sh
with
63 additions
and
3 deletions
scripts/zmap_do_build.sh
+
63
−
3
View file @
564dc59b
...
...
@@ -14,13 +14,14 @@ CVS_CHECKOUT_SCRIPT=./build_bootstrap.sh
GLOBAL_LOG
=
~/BUILDS/latest.build.log
ERROR_RECIPIENT
=
zmapdev@sanger.ac.uk
ENSURE_UP_TO_DATE
=
yes
SLEEP
=
15
# For development make sure these are set
#CVS_CHECKOUT_SCRIPT=./build_bootstrap.sh
#GLOBAL_LOG=~/BUILDS/OVERNIGHT.BUILD.LOG
#ERROR_RECIPIENT=
#ENSURE_UP_TO_DATE=no
#SLEEP=1
# ================== MAIN PART ==================
if
!
echo
$GLOBAL_LOG
| egrep
-q
"(^)/"
;
then
GLOBAL_LOG
=
$(
pwd
)
/
$GLOBAL_LOG
...
...
@@ -28,20 +29,79 @@ fi
rm
-f
$GLOBAL_LOG
# make sure a couple of things are sane.
SCRIPT_NAME
=
$(
basename
$0
)
INITIAL_DIR
=
$(
pwd
)
SCRIPT_DIR
=
$(
dirname
$0
)
if
!
echo
$SCRIPT_DIR
| egrep
-q
"(^)/"
;
then
BASE_DIR
=
$INITIAL_DIR
/
$SCRIPT_DIR
else
BASE_DIR
=
$SCRIPT_DIR
fi
if
!
echo
$CVS_CHECKOUT_SCRIPT
| egrep
-q
"(^)/"
;
then
CVS_CHECKOUT_SCRIPT
=
$INITIAL_DIR
/
$SCRIPT_DIR
/
$CVS_CHECKOUT_SCRIPT
fi
# ================== RUN INFO ==================
cat
<<
EOF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Welcome to the '
$0
' build script
We are running on '
$(
hostname
)
' and are going to run on the
bootstrap build script '
$CVS_CHECKOUT_SCRIPT
'
on '
$SRC_MACHINE
' (via ssh).
The global output log is '
$GLOBAL_LOG
'
Errors will be reported to '
$ERROR_RECIPIENT
'
EOF
# If we need to update from cvs...
if
[
"x
$ENSURE_UP_TO_DATE
"
==
"xyes"
]
;
then
old_dir
=
$(
pwd
)
new_dir
=
$(
dirname
$CVS_CHECKOUT_SCRIPT
)
up2date
=
$(
basename
$CVS_CHECKOUT_SCRIPT
)
cd
$new_dir
export
CVS_RSH
=
ssh
cat
<<
EOF
Now we are going to cvs update '
$CVS_CHECKOUT_SCRIPT
' in
$(
pwd
)
EOF
cvs update
-C
$up2date
||
{
echo
"Failed to update
$CVS_CHECKOUT_SCRIPT
"
;
exit
1
;
}
cd
$old_dir
echo
"cvs updated."
fi
[
!
-f
$CVS_CHECKOUT_SCRIPT
]
||
{
echo
"Failed to find
$CVS_CHECKOUT_SCRIPT
"
;
exit
1
;
}
[
-f
$CVS_CHECKOUT_SCRIPT
]
||
{
echo
"Failed to find
$CVS_CHECKOUT_SCRIPT
"
;
exit
1
;
}
cat
<<
EOF
After a short pause (
$SLEEP
seconds), we'll begin.
First some questions:
Does password-less ssh login work?
Have you committed all your code?
Have you tested it?
[last opportunity to hit Ctrl-C]...
EOF
sleep
$SLEEP
# A one step copy, run, cleanup!
cat
$CVS_CHECKOUT_SCRIPT
| ssh
$SRC_MACHINE
'/bin/bash -c "\
cat
$CVS_CHECKOUT_SCRIPT
| ssh
zmap@
$SRC_MACHINE
'/bin/bash -c "\
function _rm_exit \
{ \
echo Master Script Failed...; \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment