feat: stop copying source over, and make less dirs for cleaner output
This commit is contained in:
parent
e2a0ce5ff2
commit
3049db5e9d
@ -18,14 +18,12 @@ dir_maker(){
|
||||
|
||||
curpath="$output"
|
||||
find "$input" -depth -type d \
|
||||
\! -path '*/.svn' \! -path '*/.svn/*' \
|
||||
\! -path '*/.git' \! -path '*/.git/*' \
|
||||
-regex "$input/[a-z\.]+\.[a-z]+\(/.*\)?" \
|
||||
-printf '%P\n' \
|
||||
| while read filepath; do
|
||||
| while read -r filepath; do
|
||||
oldpath="$curpath"
|
||||
curpath="$output/$filepath/"
|
||||
srcdir="$output/source/$filepath/"
|
||||
match "$oldpath" "^$curpath" || mkdir -p "$curpath" "$srcdir"
|
||||
match "$oldpath" "^$curpath" || mkdir -p "$curpath"
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -213,17 +213,6 @@ all: \$(COPY_DST_FILES)
|
||||
echo "* Linking file \$*"
|
||||
ln -sf "\$<" "\$@"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Copy .xhtml files to "source" directory in target directory tree
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
SOURCE_DST_FILES := \$(sort \$(patsubst \$(INPUTDIR)/%,\$(OUTPUTDIR)/source/%,\$(HTML_SRC_FILES)))
|
||||
|
||||
all: \$(SOURCE_DST_FILES)
|
||||
\$(SOURCE_DST_FILES): \$(OUTPUTDIR)/source/%: \$(INPUTDIR)/%
|
||||
echo "* Linking source \$*"
|
||||
ln -sf "\$<" "\$@"
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Clean up excess files in target directory
|
||||
# -----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user