Merge lp://staging/~esh/runurl/trunk into lp://staging/runurl

Proposed by Eric Hammond
Status: Merged
Approved by: Eric Hammond
Approved revision: 14
Merged at revision: not available
Proposed branch: lp://staging/~esh/runurl/trunk
Merge into: lp://staging/runurl
Diff against target: 192 lines
3 files modified
debian/changelog (+18/-4)
debian/control (+2/-2)
runurl (+50/-16)
To merge this branch: bzr merge lp://staging/~esh/runurl/trunk
Reviewer Review Type Date Requested Status
Eric Hammond Approve
Review via email: mp+13162@code.staging.launchpad.net
To post a comment you must log in.
Revision history for this message
Eric Hammond (esh) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-08-22 13:44:01 +0000
3+++ debian/changelog 2009-10-10 06:10:24 +0000
4@@ -1,22 +1,36 @@
5+runurl (0.1-6) UNRELEASED; urgency=low
6+
7+ * Add correct signing key to installation documents in man page
8+
9+ -- Eric Hammond <ehammond@thinksome.com> Fri, 09 Oct 2009 18:47:31 -0700
10+
11+runurl (0.1-5) karmic; urgency=low
12+
13+ * Expanded man page.
14+ * Added --help option.
15+ * Fixed Vcs-Bzr value in debian/control
16+
17+ -- Eric Hammond <ehammond@thinksome.com> Sun, 27 Sep 2009 19:48:53 -0700
18+
19 runurl (0.1-4) karmic; urgency=low
20
21- *
22+ * Fourth PPA upload attempt.
23
24 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:37:06 -0700
25
26-runurl (0.1-3) jaunty; urgency=low
27+runurl (0.1-3) karmic; urgency=low
28
29 * Third PPA upload attempt.
30
31 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:26:45 -0700
32
33-runurl (0.1-2) jaunty; urgency=low
34+runurl (0.1-2) karmic; urgency=low
35
36 * Second PPA upload attempt.
37
38 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:22:03 -0700
39
40-runurl (0.1-1) jaunty; urgency=low
41+runurl (0.1-1) karmic; urgency=low
42
43 * Initial release.
44
45
46=== modified file 'debian/control'
47--- debian/control 2009-08-22 12:16:22 +0000
48+++ debian/control 2009-10-10 06:10:24 +0000
49@@ -5,11 +5,11 @@
50 Build-Depends: cdbs, debhelper (>= 7)
51 Standards-Version: 3.8.0
52 Homepage: http://launchpad.net/runurl
53-Vcs-Bzr: http://bazaar.launchpad.net/~esh/runurl/trunk/
54+Vcs-Bzr: http://bazaar.launchpad.net/~alestic/runurl/trunk/
55
56 Package: runurl
57 Architecture: all
58-Depends: ${misc:Depends}, wget
59+Depends: ${misc:Depends}, wget, perl
60 Description: Download and run a program, passing in arguments
61 The "runurl" command downloads the contents of a specified URL and
62 runs the resulting program, passing it the remaining arguments.
63
64=== modified file 'runurl'
65--- runurl 2009-08-22 12:32:32 +0000
66+++ runurl 2009-10-10 06:10:24 +0000
67@@ -5,12 +5,23 @@
68 # Copyright (C) 2009 Eric Hammond <ehammond@thinksome.com>
69 #
70
71-
72-debug=
73-url=$1; shift
74-if [ "$url" = "-d" -o "$url" = "--debug" ]; then
75- debug=1
76- url=$1; shift
77+while [ $# -gt 0 ]; do
78+ case $1 in
79+ -\?|--help) help=1; shift 1 ;;
80+ -d|--debug) debug=1; shift 1 ;;
81+ -*) echo "$0: Unrecognized option: $1 (try --help)" >&2; exit 1 ;;
82+ *) url=$1; shift 1; break ;;
83+ esac
84+done
85+
86+if [ "$help" ]; then
87+ pod2text $0
88+ exit 1
89+fi
90+
91+if [ "$url" = "" ]; then
92+ echo "$0: Missing URL specification (try --help)"
93+ exit 1;
94 fi
95
96 runfile=$(mktemp /tmp/runurl.XXXX)
97@@ -51,9 +62,15 @@
98
99 exit $exitstatus
100
101+#
102+# To read the documentation in this file use the command:
103+#
104+# perldoc runurl
105+#
106+
107 =head1 NAME
108
109-runurl - Download a URL and as a program, passing in arguments
110+runurl - Download a URL and run as a program, passing in arguments
111
112 =head1 SYNOPSYS
113
114@@ -63,7 +80,11 @@
115
116 =over 8
117
118-=item B<--debug>
119+=item B<-?> B<--help>
120+
121+Debug mode
122+
123+=item B<-d> B<--debug>
124
125 Debug mode
126
127@@ -88,15 +109,15 @@
128 The B<runurl> command is a simple tool that downloads a program (or
129 script) from the specified URL and runs it.
130
131-The first argument to the runurl command is the URL of a script or
132-program that should be run. Any leading "http://" may be omitted,
133-but "https://" or "ftp://" and the like must still be specified.
134+The first argument to the B<runurl> command is the URL of a script or
135+program that should be run. Any leading "http://" may be omitted, but
136+"https://" or "ftp://" and the like must still be specified.
137
138 All remaining arguments listed after the URL (including ones which
139 look like options) are passed verbatim to the program as its own
140 options and arguments when it is run.
141
142-The exit code of runurl is the exit code of the program, unless the
143+The exit code of B<runurl> is the exit code of the program, unless the
144 original download of the URL failed, in which case that error is
145 returned.
146
147@@ -120,13 +141,13 @@
148 Only run content that you control or completely trust.
149
150 Just because you like the content of a URL when you look at it in your
151-browser does not mean that it will still look like that when runurl
152+browser does not mean that it will still look like that when B<runurl>
153 goes to run it. It could change at any point to something that is
154 broken or even malicious unless it is under your control.
155
156 Realize that you are depending on the network for commands to succeed.
157 If the content is temporarily unavailable or has been moved, then the
158-runurl command will fail.
159+B<runurl> command will fail.
160
161 =head1 DEPENDENCIES
162
163@@ -136,14 +157,27 @@
164
165 =head1 SEE ALSO
166
167-The runurl project site:
168+The B<runurl> project site:
169
170 https://launchpad.net/runurl
171
172-Article about using runurl for initial configuration of Amazon EC2 instances:
173+Article about using B<runurl> for initial configuration of Amazon EC2
174+instances:
175
176 http://alestic.com/2009/08/runurl
177
178+=head1 INSTALLATION
179+
180+On most Ubuntu releases, the B<runurl> package can be installed using the
181+following commands:
182+
183+ code=$(lsb_release -cs)
184+ echo "deb http://ppa.launchpad.net/alestic/ppa/ubuntu $code main"|
185+ sudo tee /etc/apt/sources.list.d/alestic-ppa.list
186+ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BE09C571
187+ sudo apt-get update
188+ sudo apt-get install runurl
189+
190 =head1 BUGS
191
192 Please report bugs at https://bugs.launchpad.net/runurl

Subscribers

People subscribed via source and target branches

to all changes: