[SCM] Git repository for devscripts branch, master, updated. v2.12.0-41-ge5d6ac8
Christoph Berg
myon at debian.org
Sat Aug 18 06:56:00 UTC 2012
The following commit has been merged in the master branch:
commit e5d6ac8ff4d7a558accafdd2f24aa8dabf1e68dc
Author: Christoph Berg <myon at debian.org>
Date: Sat Aug 18 08:55:16 2012 +0200
origtargz: Use --path instead of --dir, as dget does
Also, add -p and -t short options.
diff --git a/scripts/origtargz.pl b/scripts/origtargz.pl
index d8725a9..bdfab5d 100755
--- a/scripts/origtargz.pl
+++ b/scripts/origtargz.pl
@@ -45,7 +45,7 @@ Various download locations are tried:
=item * First, an existing file is looked for.
-=item * Directories given with B<--dir> are searched.
+=item * Directories given with B<--path> are searched.
=item * B<apt-get source> is tried when B<apt-cache showsrc> reports a matching version.
@@ -84,7 +84,7 @@ useful for downloading the current tarball.
=over
-=item B<--dir> I<directory>
+=item B<-p>, B<--path> I<directory>
Add I<directory> to the list of locations to search for an existing tarball.
When found, a hardlink is created if possible, otherwise a symlink.
@@ -117,7 +117,7 @@ F<.gitignore>, F<.hg>, F<.hgignore>, and F<.svn>.
Alias for B<--unpack=no>.
-=item B<--tar-only>
+=item B<-t>, B<--tar-only>
When using B<apt-get source>, pass B<--tar-only> to it. The default is to
download the full source package including F<.dsc> and F<.diff.gz> or
@@ -160,10 +160,10 @@ my $tar_only = 0;
my $unpack = 'once'; # default when --unpack is not used
GetOptions(
- "dir=s" => \@dirs,
+ "path|p=s" => \@dirs,
"download-only|d" => sub { $unpack = 'no' },
"help|h" => sub { pod2usage({-exitval => 0, -verbose => 1}); },
- "tar-only" => \$tar_only,
+ "tar-only|t" => \$tar_only,
"unpack|u:s" => \$unpack,
) or pod2usage({-exitval => 3});
--
Git repository for devscripts
More information about the devscripts-devel
mailing list