Skip to content

Instantly share code, notes, and snippets.

@theshock
Created January 10, 2013 19:19
Show Gist options
  • Save theshock/4504946 to your computer and use it in GitHub Desktop.
Save theshock/4504946 to your computer and use it in GitHub Desktop.
Short Linux compilier for LibCanvas & AtomJS
shock@shock-notebook:~/dev/atomjs$ cat /usr/bin/libcanvas
#!/bin/sh
devPath=/home/shock/dev
atomPath=$devPath/atomjs
libcPath=$devPath/libcanvas
# project pathes
atomComp=$atomPath/atom-full-compiled.js
libcComp=$libcPath/libcanvas-full-compiled.js
lcGithub=$devPath/libcanvas.github.com/files/js
# compiling libs
$atomPath/build > $atomComp
$libcPath/Builder/build > $libcComp
# cloning to examples
cat $atomComp > $lcGithub/atom.js
cat $libcComp > $lcGithub/libcanvas.js
# end
date
echo ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment