~lbrulet-8/compiz-plugins-main/fix-876591

« back to all changes in this revision

Viewing changes to sync-with-upstream.sh

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-07-19 08:02:00 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20110719080200-0expimqowpfdfj6i
Tags: upstream-0.9.5.0
ImportĀ upstreamĀ versionĀ 0.9.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
export PACK=compiz-plugins-main
 
4
export GITPACK=`echo ${PACK} | cut -b 8-`
 
5
export CURRENT_PLUGINS=`cat .gitmodules | grep "path =" | cut -b 9-`
 
6
 
 
7
echo "Removing all the plugins"
 
8
for CURRENT_PLUGIN in ${CURRENT_PLUGINS}; do
 
9
        rm -rfv ${CURRENT_PLUGIN}
 
10
done
 
11
 
 
12
bzr commit -m "Sync - Remove Plugins"
 
13
echo "Syncing in changes from upstream - cloning " ${GITPACK}
 
14
git clone git://git.compiz.org/compiz/${GITPACK} ${PACK}-tmp
 
15
mv ${PACK}-tmp/.gitmodules .
 
16
mv ${PACK}-tmp/* .
 
17
rm -rf ${PACK}-tmp
 
18
 
 
19
PLUGINS=`cat .gitmodules | grep "path =" | cut -b 9-`
 
20
 
 
21
for PLUGIN in ${PLUGINS}; do
 
22
        rm -rfv ${PLUGIN}
 
23
        echo "Branching bzr plugin compiz-${PLUGIN}-plugin"
 
24
        bzr branch lp:~compiz-team/compiz-${PLUGIN}-plugin/oneiric
 
25
        mv oneiric ${PLUGIN}
 
26
        cd ${PLUGIN}
 
27
        rm -rf .bzr
 
28
        cd ..
 
29
        bzr add ${PLUGIN}
 
30
done
 
31
 
 
32
bzr commit -m "Sync in changes from upstream"
 
33
echo "Done"