mirror of
https://github.com/google/blockly.git
synced 2026-01-14 12:27:10 +01:00
Merge pull request #2189 from DubeySandeep/local_build_message
Fix #2172: Add a message to run local_build.sh file from local_build dir.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#
|
||||
# Usage: local_build.sh.
|
||||
#
|
||||
# This script generates only local_blockly_compressed.js. You may modify it as
|
||||
# This script generates only local_blockly_compressed.js. You may modify it as
|
||||
# needed to build other files.
|
||||
#
|
||||
# The compressed file is a concatenation of all of Blockly's core files, run
|
||||
@@ -33,6 +33,15 @@
|
||||
# - Add a good error message if multiple versions of the closure compiler were
|
||||
# found.
|
||||
|
||||
EXPECTED_PWD='local_build'
|
||||
# Check the current working directory.
|
||||
if [[ ${PWD##*/} != $EXPECTED_PWD ]]; then
|
||||
echo ""
|
||||
echo " WARNING This script should be run from the local_build folder."
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Find the Closure Compiler.
|
||||
if [ -f "$(npm root)/google-closure-compiler/compiler.jar" ]; then
|
||||
COMPILER="$(npm root)/google-closure-compiler/compiler.jar"
|
||||
|
||||
Reference in New Issue
Block a user