This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "eclipse - Powerful IDE written in java - Debian package.".

The branch, master has been updated
       via  7174b4829264eebd1820a03960aaf587650cdc96 (commit)
      from  a3ac2012ddca0712878590e7c9c374357dc48574 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7174b4829264eebd1820a03960aaf587650cdc96
Author: Niels Thykier <[email protected]>
Date:   Mon Feb 22 22:20:22 2010 +0100

    Fixed the indention of unjar-jar.

-----------------------------------------------------------------------

Summary of changes:
 debian/extra/unjar-jar |   69 +++++++++++++++++++++--------------------------
 1 files changed, 31 insertions(+), 38 deletions(-)

diff --git a/debian/extra/unjar-jar b/debian/extra/unjar-jar
index b451c9b..e89ee26 100755
--- a/debian/extra/unjar-jar
+++ b/debian/extra/unjar-jar
@@ -6,11 +6,9 @@ use Debian::Debhelper::Dh_Lib;
 
 my $tmp = undef;
 my $wdir = undef;
-
 $SIG{'INT'} = \&cleanup;
 $SIG{'TERM'} = \&cleanup;
 
-
 ## we do not need the argument parsing...
 #init();
 inhibit_log();
@@ -21,49 +19,44 @@ chomp($wdir = `pwd`);
 map { map { repack($_); } glob($_); } @ARGV;
 
 cleanup();
-exit 0;
 
+exit 0;
 
 sub repack {
-    my $file = shift;
-    my $mtime;
-    choke("$file does not exist") if( ! -e $file);
-    complex_doit("cd \"$tmp\" && jar xf \"$wdir/$file\"");
-
-    unlink($file) or choke("Unlinking $file: $!");
-    $mtime = (stat("$tmp/META-INF/MANIFEST.MF"))[9];
-    open(MANIFEST_ORIG, "<", "$tmp/META-INF/MANIFEST.MF") or choke("Opening 
$tmp/META-INF/MANIFEST.MF");
-    open(MANIFEST, ">", "$tmp/manifest") or choke("Opening $tmp/manifest: $!");
-    while( my $line = <MANIFEST_ORIG> ) {
-       chomp($line);
-       last if($line =~ m/^\s*$/o);
-       print MANIFEST "$line\n";
-    }
-    close(MANIFEST) or choke("Writing $tmp/manifest: $!");
-    close(MANIFEST_ORIG);
-    # Set both atime and mtime to mtime of original manifest.
-    utime($mtime, $mtime, "$tmp/manifest") or print STDERR "W: Could not set 
modification time of $tmp/manifest: $!";
-    complex_doit("cd \"$tmp\" && jar cmf \"$tmp/manifest\" \"$wdir/$file\"  && 
rm -fr \"$tmp/\"*");
-    info("Replaced $file");
-    return 1;
+       my $file = shift;
+       my $mtime;
+       choke("$file does not exist") if( ! -e $file);
+       complex_doit("cd \"$tmp\" && jar xf \"$wdir/$file\"");
+       unlink($file) or choke("Unlinking $file: $!");
+       $mtime = (stat("$tmp/META-INF/MANIFEST.MF"))[9];
+       open(MANIFEST_ORIG, "<", "$tmp/META-INF/MANIFEST.MF") or choke("Opening 
$tmp/META-INF/MANIFEST.MF");
+       open(MANIFEST, ">", "$tmp/manifest") or choke("Opening $tmp/manifest: 
$!");
+       while( my $line = <MANIFEST_ORIG> ) {
+               chomp($line);
+               last if($line =~ m/^\s*$/o);
+               print MANIFEST "$line\n";
+       }
+       close(MANIFEST) or choke("Writing $tmp/manifest: $!");
+       close(MANIFEST_ORIG);
+       # Set both atime and mtime to mtime of original manifest.
+       utime($mtime, $mtime, "$tmp/manifest") or print STDERR "W: Could not 
set modification time of $tmp/manifest: $!";
+       complex_doit("cd \"$tmp\" && jar cmf \"$tmp/manifest\" \"$wdir/$file\"  
&& rm -fr \"$tmp/\"*");
+       info("Replaced $file");
+       return 1;
 }
-
 sub choke{
-    my $msg = shift;
-    cleanup();
-    error($msg);
-    exit 1;
+       my $msg = shift;
+       cleanup();
+       error($msg);
+       exit 1;
 }
-
 sub info{
-    my $msg = shift;
-    print "I: $msg\n";
+       my $msg = shift;
+       print "I: $msg\n";
 }
-
 sub cleanup{
-    if(defined($tmp) && -d $tmp){
-       info("Removing $tmp");
-       system("rm -fr \"$tmp\"");
-    }
+       if(defined($tmp) && -d $tmp){
+               info("Removing $tmp");
+               system("rm -fr \"$tmp\"");
+       }
 }
-


hooks/post-receive
-- 
eclipse - Powerful IDE written in java - Debian package.

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-commits

Reply via email to