mirror of
https://github.com/google/blockly.git
synced 2026-01-07 09:00:11 +01:00
* Adds ln_resources script to generate Blockly symbolic links. * Moves toolbox_standard.js into this directory. Relatedly, updates Android and iOS copy scripts and .gitignore files. * Corrects HTML viewport scale and disallows zoom.
23 lines
631 B
Bash
Executable File
23 lines
631 B
Bash
Executable File
#!/bin/bash -e
|
|
#
|
|
# Create symbolic links in this directory for the
|
|
# Blockly library files used by this demo's index.html.
|
|
|
|
if [[ ! -e ../../../blockly_compressed.js ]]; then
|
|
echo "ERROR: Could not locate blockly_compressed.js. Run from demos/mobile/html/" 1>&2
|
|
exit 1 # terminate and indicate error
|
|
fi
|
|
|
|
if [ ! -L blockly_compressed.js ]; then
|
|
ln -s ../../../blockly_compressed.js blockly_compressed.js
|
|
fi
|
|
if [ ! -L blocks_compressed.js ]; then
|
|
ln -s ../../../blocks_compressed.js blocks_compressed.js
|
|
fi
|
|
if [ ! -L media ]; then
|
|
ln -s ../../../media media
|
|
fi
|
|
if [ ! -L msg ]; then
|
|
ln -s ../../../msg msg
|
|
fi
|