Follow-up commit

This commit is contained in:
JustArchi
2018-04-27 05:08:49 +02:00
parent de77125581
commit d0a75a33ed
2 changed files with 14 additions and 3 deletions

View File

@@ -1,16 +1,28 @@
#!/bin/bash
set -eu
OUTPUT="dist"
OUTPUT="dist" # Relative to script directory
TARGET="../docs" # Relative to script directory
SRC="WebConfigGenerator" # Path between $OUTPUT and $TARGET
cd "$(dirname "$(readlink -f "$0")")"
cd "$SRC_DIR"
git pull
npm install
npm run build
while read -r FILE; do
rm -f "$FILE"
done < <(find "$TARGET" -mindepth 1 -maxdepth 1 -type l)
while read -r FILE; do
ln -s "${SRC}/${FILE}" "$TARGET"
done < <(find "$OUTPUT" -mindepth 1 -maxdepth 1)
git reset
git add -A -f "$OUTPUT"
git add -A -f "$OUTPUT" "$TARGET"
git commit -m "WebConfigGenerator build"
git push

1
docs
View File

@@ -1 +0,0 @@
WebConfigGenerator/dist