Merge lp:~serapophis/quickly/Fixes into lp:~shanepatrickfagan/quickly/Quickly-vala

Proposed by Harald Wartig
Status: Merged
Approved by: Shane Fagan
Approved revision: 32
Merged at revision: 29
Proposed branch: lp:~serapophis/quickly/Fixes
Merge into: lp:~shanepatrickfagan/quickly/Quickly-vala
Diff against target: 142 lines (+102/-7)
5 files modified
design (+17/-1)
edit (+32/-2)
edit_run (+18/-1)
project_root/.run (+5/-2)
run (+30/-1)
To merge this branch: bzr merge lp:~serapophis/quickly/Fixes
Reviewer Review Type Date Requested Status
Shane Fagan Approve
Review via email: mp+36835@code.launchpad.net

Description of the change

 * Added support for the quickly help command
 * edit does now make use of $VISUAL and $EDITOR variables
 * run now produces a binary with the same name as the project
 * run now supports passing of commandline args to the created binary

To post a comment you must log in.
Revision history for this message
Shane Fagan (shanepatrickfagan) wrote :

Looks good to me awesome work thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'design'
--- design 2010-09-27 20:16:46 +0000
+++ design 2010-09-28 10:12:44 +0000
@@ -1,3 +1,19 @@
1#!/bin/sh1#!/bin/bash
2
3usage(){
4 cat<<EOUSAGE
5Usage:
6 quickly `basename $0`
7
8Opens Glade UI editor so that you can edit the UI for dialogs
9and windows in your project.
10EOUSAGE
11 exit 0
12}
13
14# invoke usage
15# call usage() function if any argument was supplied
16[[ $# -ne 0 ]] && usage
17
2cd data/ui18cd data/ui
3glade *.ui19glade *.ui
420
=== modified file 'edit'
--- edit 2010-09-25 18:07:02 +0000
+++ edit 2010-09-28 10:12:44 +0000
@@ -1,2 +1,32 @@
1#!/bin/sh1#!/bin/bash
2gedit bin/*.vala2
3usage(){
4 cat<<EOUSAGE
5Usage:
6 quickly `basename $0`
7
8A convenience command to open all of your vala files in your project
9directory in your default editor, ready for editing.
10
11If you put yourself VISUAL or EDITOR environment variable, this latter will
12be used.
13EOUSAGE
14 exit 0
15}
16
17# invoke usage
18# call usage() function if any argument was supplied
19[[ $# -ne 0 ]] && usage
20
21# if $VISUAL is defined we use that
22if test -n "$VISUAL"
23then
24 EDITOR=$VISUAL
25fi
26
27# if $EDITOR is not defined we set gedit as default
28if test -z "$EDITOR"
29then
30 EDITOR="gedit"
31fi
32eval $EDITOR bin/*.vala
333
=== modified file 'edit_run'
--- edit_run 2010-09-25 13:28:26 +0000
+++ edit_run 2010-09-28 10:12:44 +0000
@@ -1,2 +1,19 @@
1#!/bin/sh1#!/bin/bash
2
3usage(){
4 cat<<EOUSAGE
5Usage:
6 quickly `basename $0`
7
8Opens your default text editor for the .run script. This script is uset to
9build and run your application. In most cases you only want to edit it when
10you have to change the build process. When you add a new source file or
11pkg dependency for example.
12EOUSAGE
13 exit 0
14}
15
16# invoke usage
17# call usage() function if any argument was supplied
18[[ $# -ne 0 ]] && usage
2xdg-open .run19xdg-open .run
320
=== modified file 'project_root/.run'
--- project_root/.run 2010-09-25 13:28:26 +0000
+++ project_root/.run 2010-09-28 10:12:44 +0000
@@ -1,6 +1,9 @@
1#!/bin/sh1#!/bin/sh
2cd bin2cd bin
3# Get the name of the project. We use that as name for the binary.
4PRJNAME=$(basename $(dirname $PWD))
5
3#feel free to change the next line to add bindings you are using and other classes you want to compile6#feel free to change the next line to add bindings you are using and other classes you want to compile
4valac --pkg gtk+-2.0 --pkg gmodule-2.0 *.vala7valac -o $PRJNAME --pkg gtk+-2.0 --pkg gmodule-2.0 *.vala
5#dont change below here if you want it to run8#dont change below here if you want it to run
6./*9./$PRJNAME $@
710
=== modified file 'run'
--- run 2010-09-20 21:56:10 +0000
+++ run 2010-09-28 10:12:44 +0000
@@ -1,3 +1,32 @@
1#!/bin/sh1#!/bin/sh
2
3usage(){
4 cat<<EOUSAGE
5Usage:
6 quickly run
7
8Runs your application. This is the best way to try test it out
9while you are developing it. It starts up the main project window.
10
11 quickly run -- values -<whathever>
12to pass "-whatever" and "values" to the executed program. Without that
13if you use for instance --help, it would be Quickly help and not your
14program one.
15
16EOUSAGE
17 exit 0
18}
19
20# handle commandline arguments befor -- and keep everything else
21while [ $# -gt 0 ]
22do
23 case "$1" in
24 --) shift; break;;
25 *) usage break;;
26 esac
27 shift
28done
29
2chmod +x .run30chmod +x .run
3./.run31# run ".run" and pass all commandline arguments that where found after --
32./.run $@

Subscribers

People subscribed via source and target branches

to all changes: