File: remote_sync_repo_s915879.sh

package info (click to toggle)
trilinos 16.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 993,992 kB
  • sloc: cpp: 3,764,859; ansic: 425,011; fortran: 160,684; python: 101,476; xml: 74,329; sh: 37,044; makefile: 22,641; perl: 7,525; f90: 6,424; csh: 5,285; objc: 2,620; lex: 1,646; lisp: 810; yacc: 603; javascript: 552; awk: 364; ml: 281; php: 145
file content (49 lines) | stat: -rwxr-xr-x 1,616 bytes parent folder | download | duplicates (6)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
# Usage: ./remote_sync_repo.sh to|from [subdir] [--no-op]
#
# Script that I use to sync between local Trilinos repo on cygwin
# laptop and remote repo on Linux workstation brain.sandia.gov (see
# notes below).
#
# This must be run from the base directory of ./Trilinos
#

EXTRA_ARGS=$@

REPO_NAME="Trilinos"
REMOTE_BASE_DIR="brain:~/PROJECTS/Trilinos.laptop.mirror.base"

./Trilinos/commonTools/python/remote_sync_dir.py \
--dir-name=Trilinos \
--remote-base-dir=brain:~/PROJECTS/Trilinos.laptop.mirror.base \
$EXTRA_ARGS

#
# 2011/02/25
# 
# Here I am using rsync to sync the Trilinos directory tree between
# ./Trilinos and a temp repo on brain.sandia.gov using the
# remote_sync_repo.sh script.  This is to avoid expensive git operations
# that I just can't seem to afford under cygwin.
# 
# The idea is to make changes to the source either only here under
# ./Trilinos on in the remote copy of Trilinos on brain.sandia.gov and
# then use the script remote_sync_repo.sh to copy files back and forth.
# All of the git operations would be performed on brain.sandia.gov where
# they will be super fast.
# 
# Once finished making modifications locally here you would do:
# 
#   $ ./remote_sync_repo.sh to [subdir]
# 
# Then you go to the remote repo on brain.sandia.gov and do git stuff,
# make changes etc.  Once finished making changes on the remote repo you
# sync back from this machine as:
# 
#   $ ./remote_sync_repo.sh from [subdir]
# 
# Note that on the local repo, you can run 'eg diff -- FILE_NAME' and
# that will run pretty quickly.  It is just global git operations that
# take forever.
#