From 3f3928b65e67214f1f90329e088d61d888503f7f Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 5 Oct 2013 12:08:49 +0200 Subject: build-web-site: Don't copy web/attachments around Let the build-web-site script grab only the actual Poole source into the temporary directory. diff --git a/bin/build-web-site b/bin/build-web-site index 9886b7a..a980080 100755 --- a/bin/build-web-site +++ b/bin/build-web-site @@ -14,6 +14,7 @@ set -e set -u +umask 022 prefix='/home/plugins' @@ -37,12 +38,16 @@ else output_dir="$prefix/web/site" fi -# -# Collect the pieces of the site, and create a link to the output directory. -# -rsync -aH "$site_source_dir/" "$site_target_dir" -rsync -aH "$man_source_dir/" "$man_target_dir" -cp -p "$guidelines_source" "$guidelines_target" +# Grab the Poole source of the site. +tar -C "$site_source_dir" -cf - 'input' | tar -C "$site_target_dir" -xpf - +cp "$site_source_dir/macros.py" "$site_target_dir" +cp "$site_source_dir/page.html" "$site_target_dir" + +# Grab the pre-built documentation. +tar -C "$man_source_dir" -cf - '.' | tar -C "$man_target_dir" -xpf - +cp "$guidelines_source" "$guidelines_target" + +# Create a link to the output directory. ln -s "$output_dir" "$site_target_dir/output" # -- cgit v0.10-9-g596f