#
+if [ "$version_num" == "" ]
#
+ echo "Usage: $0 version_number"
#
+echo "Will create files for release v$version_num."
#
+echo "Press enter to continue"
#
+# Check uglifyjs is present
#
+echo "foo" | uglifyjs > /dev/null
#
+ echo "Uglifyjs doesn't seem to be working, do you need to do 'sudo apt-get install node-uglify'?"
#
+# Otherwise, do the minification
#
+uglifyjs embed.js > embed.min.js
#
+cp embed.min.js versions/embed.$version_num.min.js
#
+echo "Release complete, please check git status, commit and then upload the release"