Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ec4637d735b237fdc511b7a1c4359af1f5a27374 1 parent b4de7ec
@evgeni evgeni authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 ipc/get.sh
View
10 ipc/get.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.