1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 22:28:47 -04:00

copy sqlite sources only if they are amalgamated

This commit is contained in:
Kenichi Ishigaki 2010-06-10 08:19:01 +00:00
parent dfdca986de
commit 454e4a156a

View file

@ -323,16 +323,18 @@ sub postamble {
my $postamble = eval { my $postamble = eval {
DBI::DBD::dbd_postamble(@_) DBI::DBD::dbd_postamble(@_)
}; };
my $S = $^O eq 'MSWin32' ? '\\' : '/'; # only Win32 (not cygwin) if (-e 'sqlite3.c' && -e 'sqlite3.h') {
my $share = "\$(INST_LIB)${S}auto${S}share${S}dist${S}\$(DISTNAME)"; my $S = $^O eq 'MSWin32' ? '\\' : '/'; # only Win32 (not cygwin)
my $perm_dir = $ExtUtils::MakeMaker::VERSION >= 6.52 ? '$(PERM_DIR)' : '755'; my $share = "\$(INST_LIB)${S}auto${S}share${S}dist${S}\$(DISTNAME)";
$postamble .= <<"SHARE"; my $perm_dir = $ExtUtils::MakeMaker::VERSION >= 6.52 ? '$(PERM_DIR)' : '755';
$postamble .= <<"SHARE";
config :: config ::
\t\$(NOECHO) \$(MKPATH) "$share" \t\$(NOECHO) \$(MKPATH) "$share"
\t\$(NOECHO) \$(CHMOD) $perm_dir "$share" \t\$(NOECHO) \$(CHMOD) $perm_dir "$share"
\t\$(NOECHO) \$(CP) "sqlite3.c" "$share${S}sqlite3.c" \t\$(NOECHO) \$(CP) "sqlite3.c" "$share${S}sqlite3.c"
\t\$(NOECHO) \$(CP) "sqlite3.h" "$share${S}sqlite3.h" \t\$(NOECHO) \$(CP) "sqlite3.h" "$share${S}sqlite3.h"
SHARE SHARE
}
return $postamble; return $postamble;
} }