nbuild/lib/NBuild/CommonFunc.pm
2024-10-19 19:05:03 +08:00

20 lines
No EOL
282 B
Perl

#!/usr/bin/perl
package NBuild::Func;
use strict;
use warnings;
use v5.10;
use NBuild::ShareVar;
sub build_host_arch {
}
sub detect_cache_dir {
if(-w '/'){
$ShareVar::CACHE_DIR='/var/cache/build';
}else {
$ShareVar::CACHE_DIR='~/.cache/build';
}
}
1;