From 52896a9f015ce685e00c72dba3aff146ebc3df49 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Wed, 11 Mar 2015 01:30:41 -0500 Subject: [svn-r26424] Made the chkmanifest script a little more sh-friendly. Tested on: Manually on local Linux by modifying svn-controlled files. --- bin/chkmanifest | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/chkmanifest b/bin/chkmanifest index 8abd8ea..646f815 100755 --- a/bin/chkmanifest +++ b/bin/chkmanifest @@ -79,12 +79,14 @@ done # # First get a list of all the pending files with svn stat and # check those. -svn_stat="$(svn stat -q)" +svn_stat=`svn stat -q` for file in $svn_stat; do + # Newly added files are not listed by svn ls, which - # we check below.. - # The line listing them starts with 'A'. - letter="$(echo $file | head -c 1)" + # we check later. + + # The line listing new files starts with 'A'. + letter=`echo $file | head -c 1` if [ "$letter" = "A" ]; then # Convert the seven Subversion status columns to './' so it matches # the manifest file name. @@ -106,7 +108,7 @@ done # Next check svn ls, which gets a list of all files that are # checked in. -svn_ls="$(svn ls -R)" +svn_ls=`svn ls -R` for file in $svn_ls; do path="./${file}" # Ignore directories -- cgit v0.12