Makefile.in
changeset 9918 091fd8381674
parent 9903 2c511d591fc8
child 9919 5122deb390ae
equal deleted inserted replaced
9917:1816159a6b8e 9918:091fd8381674
   154 # Are we a SVN dir?
   154 # Are we a SVN dir?
   155 ifeq ($(shell if test -d $(SRC_DIR)/.svn; then echo 1; fi), 1)
   155 ifeq ($(shell if test -d $(SRC_DIR)/.svn; then echo 1; fi), 1)
   156 # Find if the local source if modified
   156 # Find if the local source if modified
   157 REV_MODIFIED := $(shell svnversion $(SRC_DIR) | sed -n 's/.*\(M\).*/\1/p' )
   157 REV_MODIFIED := $(shell svnversion $(SRC_DIR) | sed -n 's/.*\(M\).*/\1/p' )
   158 # Find the revision like: rXXXX-branch
   158 # Find the revision like: rXXXX-branch
   159 REV := $(shell LC_ALL=C svn info $(SRC_DIR) | $(AWK) '/^URL:.*branches/ { split($$2, a, "/"); i=1; while(i<length(a) && a[i++]!="branches"); BRANCH="-"a[i] } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
   159 REV := $(shell LC_ALL=C svn info $(SRC_DIR) | $(AWK) '/^URL:.*branches/ { split($$2, a, "/"); for (i in a) if(a[i]=="branches") { BRANCH="-"a[i+1]; break } } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
   160 endif
   160 endif
   161 endif
   161 endif
   162 # Make sure we have something in REV
   162 # Make sure we have something in REV
   163 ifeq ($(REV),)
   163 ifeq ($(REV),)
   164 REV := norev000
   164 REV := norev000