2022-09-23 13:39:17 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-09-28 12:32:41 +00:00
|
|
|
mkdir $BUILDDIR
|
|
|
|
mkdir $SOURCEDIR
|
|
|
|
|
2022-09-23 13:39:17 +00:00
|
|
|
source /usr/local/bin/functions.sh
|
|
|
|
|
2022-09-28 12:32:41 +00:00
|
|
|
function move-website-files-to-target() {
|
|
|
|
(cd $BUILDDIR; dir=$(ls); cd $dir; rsync -ru --exclude-from "/etc/exclude.pattern" --delete resources/public/* $WEBSITEROOT;)
|
2022-09-23 13:39:17 +00:00
|
|
|
}
|
|
|
|
|
2022-09-28 12:32:41 +00:00
|
|
|
echo "Downloading website"
|
|
|
|
get-and-unzip-website-data
|
|
|
|
echo "Building website"
|
|
|
|
build-and-extract-website
|
|
|
|
echo "Moving files"
|
|
|
|
move-website-files-to-target
|