/usr/local/bin
NameSizeModeActions
config_data71380555editdlrm
crc3210430555editdlrm
crontab33207360755editdlrm
drush61386460755editdlrm
drush.phar61386460755editdlrm
ea-php7258154000755editdlrm
ea-php7356472880755editdlrm
ea-php7463832960755editdlrm
ea-php8079860800755editdlrm
ea-php8180989520755editdlrm
ea_convert_php_ini408110755editdlrm
ea_current_to_profile115190755editdlrm
ea_install_profile72740755editdlrm
ea_sync_user_phpini_settings68880755editdlrm
htmltree11730555editdlrm
instmodsh41940555editdlrm
ipcount37240555editdlrm
iptab9820555editdlrm
json_pp38280555editdlrm
json_xs70130555editdlrm
lsphp9370755editdlrm
lwp-download86350555editdlrm
lwp-dump27970555editdlrm
lwp-mirror24780555editdlrm
lwp-request150590555editdlrm
mech-dump46230555editdlrm
passwd37686640755editdlrm
pear9350755editdlrm
php9330755editdlrm
php-config63840755editdlrm
prove134570555editdlrm
ptar34560555editdlrm
ptardiff25350555editdlrm
ptargrep42990555editdlrm
shasum92870555editdlrm
tpage89230555editdlrm
ttree392340555editdlrm
wp69284610755editdlrm
wp-cli.phar69284610755editdlrm
zipdetails483660555editdlrm
Edit: /usr/local/bin/ptardiff (2535B)
#!/usr/bin/perl BEGIN { pop @INC if $INC[-1] eq '.' } use strict; use Archive::Tar; use Getopt::Std; my $opts = {}; getopts('h:', $opts) or die usage(); die usages() if $opts->{h}; ### need Text::Diff -- give a polite error (not a standard prereq) unless ( eval { require Text::Diff; Text::Diff->import; 1 } ) { die "\n\t This tool requires the 'Text::Diff' module to be installed\n"; } my $arch = shift or die usage(); my $tar = Archive::Tar->new( $arch ) or die "Couldn't read '$arch': $!"; foreach my $file ( $tar->get_files ) { next unless $file->is_file; my $prefix = $file->prefix; my $name = $file->name; if (defined $prefix) { $name = File::Spec->catfile($prefix, $name); } diff( \($file->get_content), $name, { FILENAME_A => $name, MTIME_A => $file->mtime, OUTPUT => \*STDOUT } ); } sub usage { return q[ Usage: ptardiff ARCHIVE_FILE ptardiff -h ptardiff is a small program that diffs an extracted archive against an unextracted one, using the perl module Archive::Tar. This effectively lets you view changes made to an archives contents. Provide the progam with an ARCHIVE_FILE and it will look up all the files with in the archive, scan the current working directory for a file with the name and diff it against the contents of the archive. Options: h Prints this help message Sample Usage: $ tar -xzf Acme-Buffy-1.3.tar.gz $ vi Acme-Buffy-1.3/README [...] $ ptardiff Acme-Buffy-1.3.tar.gz > README.patch See Also: tar(1) ptar Archive::Tar ] . $/; } =head1 NAME ptardiff - program that diffs an extracted archive against an unextracted one =head1 DESCRIPTION ptardiff is a small program that diffs an extracted archive against an unextracted one, using the perl module Archive::Tar. This effectively lets you view changes made to an archives contents. Provide the progam with an ARCHIVE_FILE and it will look up all the files with in the archive, scan the current working directory for a file with the name and diff it against the contents of the archive. =head1 SYNOPSIS ptardiff ARCHIVE_FILE ptardiff -h $ tar -xzf Acme-Buffy-1.3.tar.gz $ vi Acme-Buffy-1.3/README [...] $ ptardiff Acme-Buffy-1.3.tar.gz > README.patch =head1 OPTIONS h Prints this help message =head1 SEE ALSO tar(1), L. =cut