Message ID | 20230519140206.1369B33E6E@hamza.pair.com |
---|---|
State | New |
Headers | show |
Series | [pushed] wwwdocs: preprocess: Check whether input files exist | expand |
diff --git a/bin/preprocess b/bin/preprocess index c62ba457..c6d34c4b 100755 --- a/bin/preprocess +++ b/bin/preprocess @@ -155,6 +155,11 @@ process_file() # Strip possibly leading "./". f=`echo $1 | sed -e 's#^\./##'` + if [ ! -f "$SOURCETREE/$f" ] wwwdocs:; then + echo "Input file $f not found." + return + fi + if [ ! -d "$DESTTREE/`dirname $f`" ] wwwdocs:; then echo "Creating new directory `dirname $f`." mkdir -p $DESTTREE/`dirname $f`