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
=== modified file 'debian/changelog'
--- debian/changelog 2009-08-22 13:44:01 +0000
+++ debian/changelog 2009-10-10 06:10:24 +0000
@@ -1,22 +1,36 @@
1runurl (0.1-6) UNRELEASED; urgency=low
2
3 * Add correct signing key to installation documents in man page
4
5 -- Eric Hammond <ehammond@thinksome.com> Fri, 09 Oct 2009 18:47:31 -0700
6
7runurl (0.1-5) karmic; urgency=low
8
9 * Expanded man page.
10 * Added --help option.
11 * Fixed Vcs-Bzr value in debian/control
12
13 -- Eric Hammond <ehammond@thinksome.com> Sun, 27 Sep 2009 19:48:53 -0700
14
1runurl (0.1-4) karmic; urgency=low15runurl (0.1-4) karmic; urgency=low
216
3 * 17 * Fourth PPA upload attempt.
418
5 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:37:06 -070019 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:37:06 -0700
620
7runurl (0.1-3) jaunty; urgency=low21runurl (0.1-3) karmic; urgency=low
822
9 * Third PPA upload attempt.23 * Third PPA upload attempt.
1024
11 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:26:45 -070025 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:26:45 -0700
1226
13runurl (0.1-2) jaunty; urgency=low27runurl (0.1-2) karmic; urgency=low
1428
15 * Second PPA upload attempt.29 * Second PPA upload attempt.
1630
17 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:22:03 -070031 -- Eric Hammond <ehammond@thinksome.com> Sat, 22 Aug 2009 06:22:03 -0700
1832
19runurl (0.1-1) jaunty; urgency=low33runurl (0.1-1) karmic; urgency=low
2034
21 * Initial release.35 * Initial release.
2236
2337
=== modified file 'debian/control'
--- debian/control 2009-08-22 12:16:22 +0000
+++ debian/control 2009-10-10 06:10:24 +0000
@@ -5,11 +5,11 @@
5Build-Depends: cdbs, debhelper (>= 7)5Build-Depends: cdbs, debhelper (>= 7)
6Standards-Version: 3.8.06Standards-Version: 3.8.0
7Homepage: http://launchpad.net/runurl7Homepage: http://launchpad.net/runurl
8Vcs-Bzr: http://bazaar.launchpad.net/~esh/runurl/trunk/8Vcs-Bzr: http://bazaar.launchpad.net/~alestic/runurl/trunk/
99
10Package: runurl10Package: runurl
11Architecture: all11Architecture: all
12Depends: ${misc:Depends}, wget12Depends: ${misc:Depends}, wget, perl
13Description: Download and run a program, passing in arguments13Description: Download and run a program, passing in arguments
14 The "runurl" command downloads the contents of a specified URL and14 The "runurl" command downloads the contents of a specified URL and
15 runs the resulting program, passing it the remaining arguments.15 runs the resulting program, passing it the remaining arguments.
1616
=== modified file 'runurl'
--- runurl 2009-08-22 12:32:32 +0000
+++ runurl 2009-10-10 06:10:24 +0000
@@ -5,12 +5,23 @@
5# Copyright (C) 2009 Eric Hammond <ehammond@thinksome.com>5# Copyright (C) 2009 Eric Hammond <ehammond@thinksome.com>
6#6#
77
88while [ $# -gt 0 ]; do
9debug=9 case $1 in
10url=$1; shift10 -\?|--help) help=1; shift 1 ;;
11if [ "$url" = "-d" -o "$url" = "--debug" ]; then11 -d|--debug) debug=1; shift 1 ;;
12 debug=112 -*) echo "$0: Unrecognized option: $1 (try --help)" >&2; exit 1 ;;
13 url=$1; shift13 *) url=$1; shift 1; break ;;
14 esac
15done
16
17if [ "$help" ]; then
18 pod2text $0
19 exit 1
20fi
21
22if [ "$url" = "" ]; then
23 echo "$0: Missing URL specification (try --help)"
24 exit 1;
14fi25fi
1526
16runfile=$(mktemp /tmp/runurl.XXXX)27runfile=$(mktemp /tmp/runurl.XXXX)
@@ -51,9 +62,15 @@
5162
52exit $exitstatus63exit $exitstatus
5364
65#
66# To read the documentation in this file use the command:
67#
68# perldoc runurl
69#
70
54=head1 NAME71=head1 NAME
5572
56runurl - Download a URL and as a program, passing in arguments73runurl - Download a URL and run as a program, passing in arguments
5774
58=head1 SYNOPSYS75=head1 SYNOPSYS
5976
@@ -63,7 +80,11 @@
6380
64=over 881=over 8
6582
66=item B<--debug>83=item B<-?> B<--help>
84
85Debug mode
86
87=item B<-d> B<--debug>
6788
68Debug mode89Debug mode
6990
@@ -88,15 +109,15 @@
88The B<runurl> command is a simple tool that downloads a program (or109The B<runurl> command is a simple tool that downloads a program (or
89script) from the specified URL and runs it.110script) from the specified URL and runs it.
90111
91The first argument to the runurl command is the URL of a script or112The first argument to the B<runurl> command is the URL of a script or
92program that should be run. Any leading "http://" may be omitted,113program that should be run. Any leading "http://" may be omitted, but
93but "https://" or "ftp://" and the like must still be specified.114"https://" or "ftp://" and the like must still be specified.
94115
95All remaining arguments listed after the URL (including ones which116All remaining arguments listed after the URL (including ones which
96look like options) are passed verbatim to the program as its own117look like options) are passed verbatim to the program as its own
97options and arguments when it is run.118options and arguments when it is run.
98119
99The exit code of runurl is the exit code of the program, unless the120The exit code of B<runurl> is the exit code of the program, unless the
100original download of the URL failed, in which case that error is121original download of the URL failed, in which case that error is
101returned.122returned.
102123
@@ -120,13 +141,13 @@
120Only run content that you control or completely trust.141Only run content that you control or completely trust.
121142
122Just because you like the content of a URL when you look at it in your143Just because you like the content of a URL when you look at it in your
123browser does not mean that it will still look like that when runurl144browser does not mean that it will still look like that when B<runurl>
124goes to run it. It could change at any point to something that is145goes to run it. It could change at any point to something that is
125broken or even malicious unless it is under your control.146broken or even malicious unless it is under your control.
126147
127Realize that you are depending on the network for commands to succeed.148Realize that you are depending on the network for commands to succeed.
128If the content is temporarily unavailable or has been moved, then the149If the content is temporarily unavailable or has been moved, then the
129runurl command will fail.150B<runurl> command will fail.
130151
131=head1 DEPENDENCIES152=head1 DEPENDENCIES
132153
@@ -136,14 +157,27 @@
136157
137=head1 SEE ALSO158=head1 SEE ALSO
138159
139The runurl project site:160The B<runurl> project site:
140161
141 https://launchpad.net/runurl162 https://launchpad.net/runurl
142163
143Article about using runurl for initial configuration of Amazon EC2 instances:164Article about using B<runurl> for initial configuration of Amazon EC2
165instances:
144166
145 http://alestic.com/2009/08/runurl167 http://alestic.com/2009/08/runurl
146168
169=head1 INSTALLATION
170
171On most Ubuntu releases, the B<runurl> package can be installed using the
172following commands:
173
174 code=$(lsb_release -cs)
175 echo "deb http://ppa.launchpad.net/alestic/ppa/ubuntu $code main"|
176 sudo tee /etc/apt/sources.list.d/alestic-ppa.list
177 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BE09C571
178 sudo apt-get update
179 sudo apt-get install runurl
180
147=head1 BUGS181=head1 BUGS
148182
149Please report bugs at https://bugs.launchpad.net/runurl183Please report bugs at https://bugs.launchpad.net/runurl

Subscribers

People subscribed via source and target branches

to all changes: