[go: up one dir, main page]

Menu

[r1]: / myrna / emr / util / push.sh  Maximize  Restore  History

Download this file

27 lines (22 with data), 703 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
##
# push.sh
#
# Run from Myrna root directory (i.e. sh emr/util/push.sh X.Y.Z
# where X.Y.Z is version). Puts all of the Perl-script intrastructure
# into place. Doesn't do anything about the binaries. You either have
# to push those yourself or use the pull_push.sh script to move
# everything from one version to another first. The S3CFG environent
# variable must be set to an appropriate .s3cfg file (config file for
# s3cmd).
#
d=`dirname $0`
d=$d/../..
VERSION=$1
[ -z "$VERSION" ] && echo "Must specify version as argument" && exit 1
[ -z "$S3CFG" ] && echo "S3CFG not set" && exit 1
s3cmd -c $S3CFG \
--acl-public \
put \
$d/*.pl $d/*.pm $d/*.R \
s3://myrna-emr/$VERSION/