enable Perl's strict and warnings in make-release
authorKen Dreyer <ktdreyer@ktdreyer.com>
Wed, 31 Jul 2013 22:16:16 +0000 (16:16 -0600)
committerDerrick Brashear <shadow@your-file-system.com>
Fri, 2 Aug 2013 15:50:05 +0000 (08:50 -0700)
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>

build-tools/make-release

index e2b235b..32b575a 100755 (executable)
@@ -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 : $!";