sub clean
{
- system("rm -rf .config.cache");
+ unlink(".config.cache");
}
sub update
exit 0;
} else {
# We've Loaded the cache file and all our variables..
- print "Updating Files..\n";
+ print "Updating files...\n";
getosflags();
if ($opt_disable_debug == 1)
{
exit 0;
} else {
# We've Loaded the cache file and all our variables..
- print "Updating Files..\n";
+ print "Updating files...\n";
getosflags();
$has_epoll = $config{HAS_EPOLL};
$has_ports = $config{HAS_PORTS};
$config{LDLIBS} = "-lstdc++";
$config{FLAGS} = "-fPIC -Wall -pedantic $config{OPTIMISATI}";
- $config{DEVELOPER} = "-fPIC -Wall -std=c99 -pedantic -g";
+ $config{DEVELOPER} = "-fPIC -Wall -pedantic -g";
$SHARED = "-Wl,--rpath -Wl,$config{LIBRARY_DIR} -shared";
$config{MAKEPROG} = "make";
if ($name =~ /\.cpp$/)
{
open (CPP, "<$dir/$name") or die("Can't open $dir/$name to scan it! oh bugger");
+ print ".";
while (chomp($line = <CPP>))
- {
+ {
if ($line =~ /\/\* \$Core: (\w+) \*\//i)
{
$filelist{$name} = $1;
- print ".";
}
elsif ($line =~ /\/\* \$ExtraDeps: (.*?) \*\//i)
{
$existing_install_list{$1} = 1;
$idir = (split(' ',$1))[1];
$ifile = (split(' ',$1))[0];
- $install_list = $install_list . " -cp $1\n" if (!exists($existing_install_list{$1}));
+ $install_list = $install_list . " -cp $1\n";
$ifile =~ s/.*\///g;
$uninstall_list = $uninstall_list . " -rm $idir/$ifile\n";
}