2015-02-05 22:36:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Note that this relies on the detail that all elements share one dir inside
|
|
|
|
# the chroot. This will copy all the files that elements have added to
|
|
|
|
# element/static into the image. Mode, symlinks etc will be respected.
|
2014-09-04 04:56:29 +00:00
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
2015-02-05 22:36:24 +00:00
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
STATIC_SOURCE="$(dirname $0)/../static"
|
|
|
|
[ -d "${STATIC_SOURCE}" ] || exit 0
|
|
|
|
|
|
|
|
rsync -lCr "${STATIC_SOURCE}"/ /
|