tUse iname during find - andersdamsgaard.com - my photography webpage
(HTM) git clone git://src.adamsgaard.dk/andersdamsgaard.com
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit ab26c64b4472032a2cee4d71bd901052a9dda2f0
(DIR) parent c7d765d60350cd7da9443f750557e99c423ae6c6
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 5 Nov 2018 07:37:19 +0100
Use iname during find
Diffstat:
M Makefile | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -25,19 +25,19 @@ generate-public:
# generate public/
hugo
# list unprocessed images
- find public \
- -name '.DS_Store' \
- -name '*.jpg' \
- -not -name '*resize*.jpg' \
- -not -name '*fill*.jpg' \
- -not -name '*fit*.jpg' \
+ find public/ \
+ -iname '.DS_Store' \
+ -iname '*.jpg' \
+ -not -iname '*resize*.jpg' \
+ -not -iname '*fill*.jpg' \
+ -not -iname '*fit*.jpg' \
# remove unprocessed images
find public \
- -name '.DS_Store' \
- -name '*.jpg' \
- -not -name '*resize*.jpg' \
- -not -name '*fill*.jpg' \
- -not -name '*fit*.jpg' \
+ -iname '.DS_Store' \
+ -iname '*.jpg' \
+ -not -iname '*resize*.jpg' \
+ -not -iname '*fill*.jpg' \
+ -not -iname '*fit*.jpg' \
-delete
# report size of build
du -h public/