mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-11 16:01:00 +08:00
[svn-r26348] Updates bin/chkmanifest to correctly handle the seven Subversion status
columns that are output by svn stat. Previously, the script assumed that they would all be blank for newly- added files. This is not always true when merging. Part of: HDFFV-8895 Tested on: jam (bin/chkmanifest only)
This commit is contained in:
parent
f56cb6a8f0
commit
6ee9ea656f
@ -86,15 +86,18 @@ for file in $svn_stat; do
|
||||
# The line listing them starts with 'A'.
|
||||
letter="$(echo $file | head -c 1)"
|
||||
if [ "$letter" = "A" ]; then
|
||||
# Convert 'A ' to './' so it matches
|
||||
# Convert the seven Subversion status columns to './' so it matches
|
||||
# the manifest file name.
|
||||
path=`echo $file | sed 's/^A\s*/\.\//g'`
|
||||
#
|
||||
# There is a space between the status columns and file name, hence
|
||||
# the '8' instead of '7'.
|
||||
path=`echo $file | sed 's/^.\{8\}/\.\//g'`
|
||||
# Ignore directories
|
||||
if [ ! -d $path ]; then
|
||||
if (grep ^$path$ $MANIFEST >/dev/null); then
|
||||
:
|
||||
else
|
||||
echo "+ $path"
|
||||
echo "- $path"
|
||||
fail=yes
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user