Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix devkit build script to work with paths containing spaces #4425

Merged
merged 2 commits into from
Jul 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions src/frontend/packages/devkit/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,14 @@
# Build script for devkit
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT="$( cd "$( dirname "${DIR}" )" && cd ../../.. && pwd )"
DIST=$ROOT/dist-devkit
DIST="$ROOT/dist-devkit"

echo $DIST
echo $DIR
tsc
if [ $? -eq 0 ]; then
echo "Copying supporting files"
# cp $DIR/package.json $DIST
# cp $DIR/src/schematics/*.json $DIST/schematics/
# cp $DIR/src/schematics/theme/*.json $DIST/schematics/theme
# cp $DIR/src/builders/*.json $DIST/builders/

cp $DIR/package.json $DIST
rsync -r --exclude=*.ts ${DIR}/src/ ${DIST}/
cp "$DIR/package.json" "$DIST"
rsync -r --exclude=*.ts "${DIR}/src/" "${DIST}/"
fi