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:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user