on Mac, LEAST cannot be larger than 255

This commit is contained in:
Marc Wäckerlin
2015-05-04 12:11:13 +00:00
parent 8e35543298
commit 96bb5b886b

View File

@@ -25,7 +25,8 @@ m4_define(x_least, m4_esyscmd_s(
LEAST="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout" LEAST="ERROR-UNDEFINED-REVISION-to-be-built-in-subdirectory-of-svn-checkout"
for path in . .. ../..; do for path in . .. ../..; do
if svn info $path 2>&1 > /dev/null; then if svn info $path 2>&1 > /dev/null; then
LEAST=$(LANG= svn info $path | sed -n 's/Last Changed Rev: //p') # Mac does not support LEAST > 255
LEAST=$(($(LANG= svn info $path | sed -n 's/Last Changed Rev: //p')%256))
(cd $path && svn2cl) (cd $path && svn2cl)
break; break;
fi fi