aboutsummaryrefslogtreecommitdiffstats
path: root/cpan2tgz
diff options
context:
space:
mode:
authorJason Woodward2004-11-16 06:16:51 +0000
committerJason Woodward2004-11-16 06:16:51 +0000
commit33759c4789993a8c775d3bca5b2da0a9c6cdaabc (patch)
treecab5963c401e5b772e14f1f7b1f6d4a577daa67c /cpan2tgz
parent96fe47214a2883c13e68b71e74c54a0b63e253b4 (diff)
downloadcpan2tgz-33759c4789993a8c775d3bca5b2da0a9c6cdaabc.tar.gz
added extra error checking for gzipping man pages and moving man out of share
Diffstat (limited to 'cpan2tgz')
-rwxr-xr-xcpan2tgz8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpan2tgz b/cpan2tgz
index 93dbf9d..8996da9 100755
--- a/cpan2tgz
+++ b/cpan2tgz
@@ -103,13 +103,13 @@ sub do_package {
print $script_fh "cd $dest_dir\n";
print $script_fh "find . | xargs file | grep \"executable\" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null\n";
print $script_fh "find . | xargs file | grep \"shared object\" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null\n";
- print $script_fh "find ./usr/share/man/ -name \'*.3\' -exec gzip -9 {} \\;\n";
- print $script_fh "find ./usr/share/man/ -name \'*.1\' -exec gzip -9 {} \\;\n";
+ print $script_fh "find ./usr/share/man/ -name \'*.3\' -exec gzip -9 {} \\; 2> /dev/null\n";
+ print $script_fh "find ./usr/share/man/ -name \'*.1\' -exec gzip -9 {} \\; 2> /dev/null\n";
print $script_fh "mv ./usr/share/man ./usr/\n" if( -d "$dest_dir/usr/share/man" );
print $script_fh "chown -R root.bin ./usr/bin\n" if( -d "$dest_dir/usr/bin" );
print $script_fh "chmod 755 ./usr/bin/*\n" if( -d "$dest_dir/usr/bin");
- print $script_fh "chmod 644 ./usr/man/man?/*\n";
- print $script_fh "rmdir ./usr/share\n";
+ print $script_fh "chmod 644 ./usr/man/man?/*\n" if( -d "$dest_dir/usr/man" );
+ print $script_fh "rmdir ./usr/share\n" if( -d "$dest_dir/usr/share" );
print $script_fh "mkdir ./install\n";
close($script_fh);
system("cd $dest_dir && sh build.sh");