|
|
|
@ -14,6 +14,7 @@ m4_define(x_least, m4_ifdef([x_least_fix], [x_least_fix], |
|
|
|
|
VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout" |
|
|
|
|
for path in . .. ../.. ../../..; do |
|
|
|
|
if test -d .svn; then |
|
|
|
|
svn upgrade 1>&2 > /dev/null || true |
|
|
|
|
VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p') |
|
|
|
|
if test -n "${VCS_REVISION}"; then break; fi |
|
|
|
|
elif test -d .git; then |
|
|
|
@ -26,6 +27,7 @@ m4_define(x_least, m4_ifdef([x_least_fix], [x_least_fix], |
|
|
|
|
VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout" |
|
|
|
|
for path in . .. ../.. ../../..; do |
|
|
|
|
if test -d .svn; then |
|
|
|
|
svn upgrade 1>&2 > /dev/null || true |
|
|
|
|
VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p') |
|
|
|
|
if test -n "${VCS_REVISION}"; then break; fi |
|
|
|
|
elif test -d .git; then |
|
|
|
@ -46,6 +48,7 @@ m4_define(x_minor_diff, m4_ifdef([x_least_fix], 0, mrw_esyscmd_s([ |
|
|
|
|
VCS_REVISION="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-checkout" |
|
|
|
|
for path in . .. ../.. ../../..; do |
|
|
|
|
if test -d .svn; then |
|
|
|
|
svn upgrade 1>&2 > /dev/null || true |
|
|
|
|
VCS_REVISION=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p') |
|
|
|
|
if test -n "${VCS_REVISION}"; then break; fi |
|
|
|
|
elif test -d .git; then |
|
|
|
|