You are here: Foswiki>Tasks Web>Item249 (05 Jan 2015, GeorgeClark)Edit Attach
MANIFEST files should contain, from what I understood, something along the lines of: path/to/file mode description

Where mode is the decimal mode the file should be chmod'ed.

Total number of MANIFEST files:
use strict;
use warnings;
use Carp qw(croak);
use File::Find qw(find);
my ( %manifest, %chmod, %NEW );

sub checkManifest {
    my $file     = $_[0];
    my $fullfile = $_[1];
    $manifest{$fullfile}++;
    open my $fh, "<", $file or croak "Can't open $file: $!";
    while (<$fh>) {
        $chmod{$fullfile}++ if /^\S+\s+\d{4}/;
        $NEW{$fullfile}++   if /^\S+\s+NEW/;
    }
    close $fh;
}
find(
    sub {
        /^MANIFEST$/
          && checkManifest( $_, $File::Find::name );
    },
    "."
);
print "MANIFEST: " . scalar( keys %manifest ) . "\n";
print "chmod: " . scalar( keys %chmod ) . "\n";
print "NEW: " . scalar( keys %NEW ) . "\n";
Output as of today:
MANIFEST: 367
chmod: 172
NEW: 122

-- OlivierRaginel - 22/23 Nov 2008

Edited the code to make SvenDowideit happy with perlcritic.


Changing to No Action. TWiki era catch all. Release manifests are checked.

-- GeorgeClark - 05 Jan 2015

ItemTemplate edit

Summary MANIFEST are mostly outdated
ReportedBy OlivierRaginel
Codebase
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Extension
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r4 - 05 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy