enable Perl's strict and warnings in make-release

Declare the undeclared variables $help, $man, and @toCompress, delete
the duplicate declaration for $last, and remove the unused $tag
variable.

Change-Id: I33de42722b84207dc1bbad50539dc5bf92da2f5e
Reviewed-on: http://gerrit.openafs.org/10117
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
Ken Dreyer 2013-07-31 16:16:16 -06:00 committed by Derrick Brashear
parent 7f15a1bbb3
commit cd0cac7e1a

View File

@ -1,12 +1,14 @@
#!/usr/bin/perl
use warnings;
use strict;
use Getopt::Long;
use Pod::Usage;
use File::Path;
use File::Temp;
my $tag;
my $last;
my $help;
my $man;
my $tagPoint;
my $last;
my $outDir = ".";
@ -64,6 +66,9 @@ system("git describe --abbrev=4 $tagName > $tempDir/$name/.version");
system ("cd $tempDir/$name && ./regen.sh") == 0
or die $!;
# A list of files to compress
my @toCompress;
# Create the documentation tarball
system("tar -cf $outDir/$name-doc.tar -C $tempDir $name/doc") == 0
or die "Unable to create documentation tarball : $!";