Permalink
Browse files

hg revert & hg pull instead of hg clone if there is already a ipccode…

… clone

otherwise hg will abort:
 abort: destination 'firegpg-ipc' is not empty
  • Loading branch information...
1 parent b4de7ec commit ec4637d735b237fdc511b7a1c4359af1f5a27374 @evgeni evgeni committed Sep 29, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 ipc/get.sh
View
@@ -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

0 comments on commit ec4637d

Please sign in to comment.