~augdawg09/quickly-ruby/trunk

« back to all changes in this revision

Viewing changes to run

  • Committer: augdawg09
  • Date: 2010-10-22 20:24:07 UTC
  • Revision ID: augdawg09@gmail.com-20101022202407-qsdx9383s3kbb134
A Ruby template for Quickly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
usage(){
 
4
        cat<<EOUSAGE
 
5
Usage:
 
6
        quickly run
 
7
 
 
8
Runs your application. This is the best way to try test it out
 
9
while you are developing it. It starts up the main project window.
 
10
 
 
11
        quickly run -- values -<whathever>
 
12
to pass "-whatever" and "values" to the executed program. Without that
 
13
if you use for instance --help, it would be Quickly help and not your
 
14
program one.
 
15
 
 
16
EOUSAGE
 
17
        exit 0
 
18
}
 
19
 
 
20
# handle commandline arguments befor -- and keep everything else
 
21
while [ $# -gt 0 ]
 
22
do
 
23
        case "$1" in
 
24
                --)     shift; break;;
 
25
                *) usage break;;
 
26
        esac
 
27
        shift
 
28
done
 
29
 
 
30
chmod +x bin/*.rb
 
31
 
 
32
ruby bin/main.rb