-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun-sync.sh
More file actions
executable file
·38 lines (30 loc) · 800 Bytes
/
run-sync.sh
File metadata and controls
executable file
·38 lines (30 loc) · 800 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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Uses "cvs-sync" to sync with CVS and then pushes the changes to github.
cd `dirname $0`
# Include our configuration options.
. ./drupal_sync.conf
QUIET="-q"
if [ ! $VERBOSE = "0" ]; then
QUIET=""
fi
LIST="entity rules"
for module in $LIST
do
echo "Synching with cvs..."
./sync-cvs $module
cd $GITSRV/$module.cvs
echo "Synch git-cvs from $module..."
git push $QUIET --all -f ../$module.git
cd $GITSRV/$module.git
echo "Pulling $module from origin..."
git fetch $QUIET origin
echo "Rebasing branches for $module..."
for branch in `ls .git/refs/remotes/origin/`; do
git checkout $QUIET $branch
git rebase $QUIET origin/$branch
done
echo "Pushing $module to origin..."
git push --all origin $QUIET
git push --tags origin $QUIET
cd ../..
done