change deploy

This commit is contained in:
Alfred Melch 2019-08-25 14:33:43 +02:00
parent 68c3521d92
commit 921fd47f67
2 changed files with 25 additions and 7 deletions

View File

@ -1,12 +1,30 @@
build:
all:
make clean
mkdir -p build
cp -r ./public/* ./build
cp ./thesis/main.pdf ./build/mt-polygon-simplification-2019.pdf
make thesis -B
make source-code-bundle -B
make public-files -B
make benchmarking-build -B
benchmarking-build:
cd ./benchmarking && npm install && npm run build
cp -r ./benchmarking/dist ./build/benchmarking
cd ./compare-algorithms && npm install && npm run build
cp -r ./compare-algorithms/dist ./build/polygon-simplification
thesis:
cp ./thesis/main.pdf ./build/mt-polygon-simplification.pdf
public-files:
cp -r ./public/* ./build
source-code-bundle:
mkdir -p build
cd .. && tar -czf /tmp/mt-polygon-simplification.tar.gz \
--exclude-from mt-polygon-simplification/.gitignore \
--exclude mt-polygon-simplification/.git \
--exclude mt-polygon-simplification/build \
--exclude mt-polygon-simplification/deploy.sh \
mt-polygon-simplification
mv /tmp/mt-polygon-simplification.tar.gz build/
clean:
rm -rf build
rm -rf build

View File

@ -1,2 +1,2 @@
make -B
make all -B
rsync -r ./build/ root@mt.melch.pro:/var/www/mt