File: perm_cp

package info (click to toggle)
libsysadm-install-perl 0.39-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 336 kB
  • sloc: perl: 734; makefile: 11
file content (16 lines) | stat: -rwxr-xr-x 378 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
###########################################
# perm_cp
# Mike Schilli, 2005 (m@perlmeister.com)
# Copy file permissions/owner from one file
# to another
###########################################
use warnings;
use strict;

use Sysadm::Install qw(:all);
use Log::Log4perl qw(:easy);
Log::Log4perl->easy_init($DEBUG);

Sysadm::Install::dry_run(1);
perm_cp(@ARGV);