Skip to content

Instantly share code, notes, and snippets.

@caridy
Forked from isao/build.sh
Created December 13, 2012 20:55
Show Gist options
  • Save caridy/4279764 to your computer and use it in GitHub Desktop.
Save caridy/4279764 to your computer and use it in GitHub Desktop.
#!/bin/sh -ex
appname=${1:-hybrid}
bldname=$appname-bld
statdir=yahoo.application.$appname
mojitodir=/Users/caridy/repo/mojito
pwd
mojito create app hybrid $appname
( #build
cd $appname
pwd
mojito build hybridapp ../$bldname -r -n name -t tag -c build:debug
)
( #cp yui library similar to what crt/ide would do
cd $bldname
pwd
ln -s $mojitodir/node_modules/yui ./yahoo.libs.yui
)
(
#make a dummy cfg file
mkdir $bldname/yahoo.crt.lib
touch $bldname/yahoo.crt.lib/yui-cfg.js
tree $bldname/yahoo.crt.lib
)
open $bldname/$statdir/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment