moved da to scripts/da
This commit is contained in:
parent
12f2c87c71
commit
9f46b37420
2
Build.PL
2
Build.PL
|
@ -12,7 +12,7 @@ my $build = Simba::Build->new
|
||||||
'Digest::SHA1' => 0,
|
'Digest::SHA1' => 0,
|
||||||
},
|
},
|
||||||
script_files => [
|
script_files => [
|
||||||
'da',
|
'scripts/da',
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
$build->create_build_script;
|
$build->create_build_script;
|
||||||
|
|
|
@ -10,8 +10,8 @@ our @ISA = ('Module::Build');
|
||||||
sub ACTION_install {
|
sub ACTION_install {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
# print STDERR Dumper($self), "\n";
|
# print STDERR Dumper($self), "\n";
|
||||||
print STDERR $self->install_path->{lib}, "\n";
|
# print STDERR $self->install_path->{lib}, "\n";
|
||||||
print STDERR Dumper($self->install_map), "\n";
|
# print STDERR Dumper($self->install_map), "\n";
|
||||||
my $lib = $self->install_map->{'blib/lib'};
|
my $lib = $self->install_map->{'blib/lib'};
|
||||||
for my $script (glob('blib/script/*')) {
|
for my $script (glob('blib/script/*')) {
|
||||||
open (my $in, '<', $script) or die "cannot open $script: $!";
|
open (my $in, '<', $script) or die "cannot open $script: $!";
|
||||||
|
|
|
@ -143,7 +143,9 @@ sub backup2disk {
|
||||||
$self->setmeta($f);
|
$self->setmeta($f);
|
||||||
} elsif ($f->{t} eq 'l') {
|
} elsif ($f->{t} eq 'l') {
|
||||||
my $l = "$self->{this_backup}/$f->{name}";
|
my $l = "$self->{this_backup}/$f->{name}";
|
||||||
symlink($f->{lt}, $l) or die "cannot symlink $l -> $f->{lt}: $!"; # XXX
|
unless (symlink($f->{lt}, $l)) {
|
||||||
|
die "cannot symlink $l -> $f->{lt}: $!"; # XXX
|
||||||
|
}
|
||||||
# $self->setmeta($f); ignore for symlinks. would need to use
|
# $self->setmeta($f); ignore for symlinks. would need to use
|
||||||
# lchown, lchmod, etc.
|
# lchown, lchmod, etc.
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue