Symlink instead of copy non-HTML files
the build was successful

This change is done so in a test environment, files like .less
stylesheets are always up to date in the target directory.
This commit is contained in:
2019-06-03 19:56:09 +02:00
parent 4c374cc24c
commit 58ff656a5d
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ build_into(){
} | t_logstatus phase_2 || exit 1
if [ "$stagedir" != "$target" ]; then
rsync -av --del "$stagedir/" "$target/" | t_logstatus stagesync
rsync -av --copy-unsafe-links --del "$stagedir/" "$target/" | t_logstatus stagesync
fi
date +%s > "$(logname end_time)"
+4 -4
View File
@@ -210,8 +210,8 @@ COPY_DST_FILES := \$(sort \$(patsubst \$(INPUTDIR)/%,\$(OUTPUTDIR)/%,\$(COPY_SRC
all: \$(COPY_DST_FILES)
\$(COPY_DST_FILES): \$(OUTPUTDIR)/%: \$(INPUTDIR)/%
echo "* Copying file \$*"
cp "\$<" "\$@"
echo "* Linking file \$*"
ln -sf "\$<" "\$@"
# -----------------------------------------------------------------------------
# Copy .xhtml files to "source" directory in target directory tree
@@ -221,8 +221,8 @@ SOURCE_DST_FILES := \$(sort \$(patsubst \$(INPUTDIR)/%,\$(OUTPUTDIR)/source/%,\$
all: \$(SOURCE_DST_FILES)
\$(SOURCE_DST_FILES): \$(OUTPUTDIR)/source/%: \$(INPUTDIR)/%
echo "* Copying source \$*"
cp "\$<" "\$@"
echo "* Linking source \$*"
ln -sf "\$<" "\$@"
# -----------------------------------------------------------------------------
# Clean up excess files in target directory