Skip to content

Commit

Permalink
hg revert & hg pull instead of hg clone if there is already a ipccode…
Browse files Browse the repository at this point in the history
… clone

otherwise hg will abort:
 abort: destination 'firegpg-ipc' is not empty
  • Loading branch information
evgeni committed Sep 29, 2011
1 parent b4de7ec commit ec4637d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ipc/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ name=firegpg
var=${name}_ipc
domain=getfiregpg.org
uuid=babce0
hg clone http://hg.mozilla.org/ipccode $name-ipc

if [ -d $name-ipc ]; then
cd $name-ipc
hg revert --all --no-backup
hg pull
cd ..
else
hg clone http://hg.mozilla.org/ipccode $name-ipc
fi

sed -i s/8431e1/$uuid/g $name-ipc/public/*.idl
sed -i "s/= ipc/= $var/g" $name-ipc/build/Makefile.in
Expand Down

0 comments on commit ec4637d

Please sign in to comment.