38 lines
951 B
Diff
38 lines
951 B
Diff
diff -Ndurp cscope-15.8a/contrib/ocs cscope-15.8a-fix-bashisms/contrib/ocs
|
|
--- cscope-15.8a/contrib/ocs 2010-06-29 01:16:40.000000000 +0300
|
|
+++ cscope-15.8a-fix-bashisms/contrib/ocs 2014-10-19 19:16:03.210177402 +0300
|
|
@@ -168,7 +168,8 @@ create_list()
|
|
|
|
if [ "${FORCE}" != "Y" ]
|
|
then
|
|
- echo "\n${LIST}"
|
|
+ echo
|
|
+ echo "$LIST"
|
|
echo "Update the library? <(Y)es, (N)o, (Q)uit> [n] \c"
|
|
read x y
|
|
case $x in
|
|
@@ -177,10 +178,11 @@ create_list()
|
|
*) return ;;
|
|
esac
|
|
fi
|
|
- echo "Updating library:\n ${LIST} \c"
|
|
+ echo "Updating library:"
|
|
else
|
|
- echo "Creating library:\n ${LIST} \c"
|
|
+ echo "Creating library:"
|
|
fi
|
|
+ echo -n " ${LIST} "
|
|
|
|
(
|
|
find . -follow -type f \( -name \*.[sScChHlyG] -o \
|
|
@@ -197,7 +199,8 @@ create_list()
|
|
-print
|
|
) | grep -v SCCS | sort -u > ${LIST}
|
|
|
|
- echo "\n`cat ${LIST} | wc -l` files listed"
|
|
+ echo
|
|
+ echo "`cat ${LIST} | wc -l` files listed"
|
|
}
|
|
|
|
#
|