diff options
author | Jonas Smedegaard <dr@jones.dk> | 2008-08-20 18:31:04 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2008-08-20 18:31:04 +0200 |
commit | 6a261418526b0076f4a9f5ed7440d2db4735def5 (patch) | |
tree | 8eadce06b475e3fa11eba1d62a9c0d818e82cb33 /make | |
parent | 5e7cf797e8f7422d56e8e72ca3a3966488b20bda (diff) | |
parent | 3febffeb51ef8d2c21647a3e42e2586eb34223bf (diff) |
Merge branch '_multilang' into multilang
Diffstat (limited to 'make')
-rw-r--r-- | make/git.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/make/git.mk b/make/git.mk index 5595057..2c8c827 100644 --- a/make/git.mk +++ b/make/git.mk @@ -7,6 +7,7 @@ branches = $(master) # local name of origin origin = origin +allbranches = $(sort $(master) $(branches)) currentbranch := $(shell git branch | grep ^\* | awk '{ print $2 }') noncurrentbranches := $(filter-out $(currentbranch),$(branches)) @@ -15,15 +16,15 @@ localbranches := $(shell git branch | perl -ne 'm,^.\s+([a-z_]\S+)$$, && print " update: git fetch $(origin) - for branch in $(filter-out $(localbranches),$(branches)); do \ - git branch $$branch $(origin)/$(branch); \ + for branch in $(filter-out $(localbranches),$(allbranches)); do \ + git branch $$branch $(origin)/$$branch; \ done - git checkout $(master) - git pull $(origin) for branch in $(noncurrentbranches); do \ - git checkout $(branch); \ + git checkout $$branch; \ git pull $(origin); \ done + git checkout $(master) + git pull $(origin) init: git init |