Files
blockly/demos/mobile/html/ln_resources.sh
Andrew n marshall eabea36953 Adding mobile HTML demo.
* 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.
2018-09-19 21:27:35 -07:00

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