Improve find expressions/options

This commit is contained in:
FPille
2019-08-05 22:48:18 +02:00
parent 0bcc5dcabb
commit b8fcd7cf83
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -53,7 +53,7 @@ if [ "$1" == "--list-programs" ] ; then
echo ""
echo "Run \"$ARGV0\" with one of the following arguments to run the respective program."
echo ""
find . -type f -perm /111 ! -path '*/lib/*' -execdir basename {} ";" | sort | column
find . -type f -perm /111 ! -path '*/lib/*' -execdir basename {} ";" | sort -u | column
echo ""
exit $?
fi
@@ -63,8 +63,8 @@ if [ "$1" == "--list-licenses" ] ; then
echo ""
echo "Run \"$ARGV0\" with one of the following arguments to display the respective license file."
echo ""
find . -type f \( -iname "license*" -o -iname "*copyright*" -o -iname "*copying*" \) \
-printf "--show-license %P\n" | sort | column
find . -type f \( ! -path '*/tesseract-ocr-*' -o -path '*/tesseract-ocr-eng/*' \) \
\( -iname "license*" -o -iname "*copyright*" -o -iname "*copying*" \) -printf "--show-license %P\n" | sort | column
echo ""
exit $?
fi
+2 -2
View File
@@ -90,8 +90,8 @@ popd
pushd "$BUILD_DIR"/AppDir
# add some tools to AppDir
cp -f /usr/bin/column ./usr/bin/
cp -f /bin/less ./usr/bin/
#cp -f /usr/bin/column ./usr/bin/
#cp -f /bin/less ./usr/bin/
# remove unnecessary data from AppDir
[ -d bin ] && rm -rf ./bin