comparison SCRIPTS/process.sh @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 85e84012311b
children
comparison
equal deleted inserted replaced
132:540eca98552e 133:4acb5d8d80b6
603 local dir="$1" 603 local dir="$1"
604 local log=$(logfile_for envtest "$dir") 604 local log=$(logfile_for envtest "$dir")
605 local good=yes 605 local good=yes
606 echo 606 echo
607 echo "Testing existence of README and accompanying files..." 607 echo "Testing existence of README and accompanying files..."
608 if ! ls -1 "$dir" | egrep -qi "^readme(.txt)?$"; then 608 if ! ls -1 "$dir" | egrep -qi "^readme(.txt|.md)?$"; then
609 echo "ERROR: no README file found" | tee -a "$log" 609 echo "ERROR: no README file found" | tee -a "$log"
610 good=no 610 good=no
611 fi 611 fi
612 if ! ls -1 "$dir" | egrep -qi "^(copying|licen[cs]e)(.txt)?$"; then 612 if ! ls -1 "$dir" | egrep -qi "^(copying|licen[cs]e)(.txt)?$"; then
613 echo "ERROR: no COPYING or LICEN[CS]E file found" | tee -a "$log" 613 echo "ERROR: no COPYING or LICEN[CS]E file found" | tee -a "$log"