Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

make get.sh more robust #5

Merged
merged 3 commits into from over 2 years ago

2 participants

Evgeni Golov Aaron C. de Bruyn
Evgeni Golov

the commits are pretty easy
1. make the hg not fail if there is already a checkout
2. make the sed not fail on directories
:)

Aaron C. de Bruyn
Owner

Nice work Evgeni, thanks!

Aaron C. de Bruyn darkpixel merged commit b8a5bc7 into from October 02, 2011
Aaron C. de Bruyn darkpixel closed this October 02, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 3 unique commits by 1 author.

Sep 29, 2011
Evgeni Golov 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
ec4637d
Evgeni Golov sed only files, not directories
sed will complain otherwise :)
831e65b
Oct 02, 2011
Evgeni Golov fix the grep regex -- only match \.hg, not .hg 8893164
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 10 additions and 2 deletions. Show diff stats Hide diff stats

  1. 12  ipc/get.sh
12  ipc/get.sh
@@ -2,14 +2,22 @@ name=firegpg
2 2
 var=${name}_ipc
3 3
 domain=getfiregpg.org
4 4
 uuid=babce0
5  
-hg clone http://hg.mozilla.org/ipccode $name-ipc
  5
+
  6
+if [ -d $name-ipc ]; then
  7
+	cd $name-ipc
  8
+	hg revert --all --no-backup
  9
+	hg pull
  10
+	cd ..
  11
+else
  12
+	hg clone http://hg.mozilla.org/ipccode $name-ipc
  13
+fi
6 14
 
7 15
 sed -i s/8431e1/$uuid/g $name-ipc/public/*.idl
8 16
 sed -i "s/= ipc/= $var/g" $name-ipc/build/Makefile.in
9 17
 sed -i "s/= ipc/= $var/g" $name-ipc/public/Makefile.in
10 18
 sed -i "s/$var-pipe/$var/g" $name-ipc/build/Makefile.in
11 19
 sed -i "s/$var-pipe/$var/g" $name-ipc/public/Makefile.in
12  
-sed -i  "s/mozilla.org\/ipc/$domain\/ipc/g" $name-ipc/*/*
  20
+find $name-ipc -type f |grep -v '/\.hg' |xargs sed -i "s/mozilla.org\/ipc/$domain\/ipc/g"
13 21
 
14 22
 cat << EOF > chrome.manifest
15 23
 resource   $name     modules/
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.