summaryrefslogtreecommitdiff
path: root/infrastructure/BoxPlatform.pm.in
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-08-30 08:53:55 +0000
committerChris Wilson <chris+github@qwirx.com>2006-08-30 08:53:55 +0000
commit535ab4aec14fd9ac2753762beb28d01114753a82 (patch)
treee5149fd53277192a927bbc1e37b8926b55259538 /infrastructure/BoxPlatform.pm.in
parent6c3dabe68da278f71b7c2c2b1da1858033504fce (diff)
* infrastructure/BoxPlatform.pm.in
* win32.bat * bin/bbackupd/BackupClientDirectoryRecord.cpp - Merged back changes from trunk
Diffstat (limited to 'infrastructure/BoxPlatform.pm.in')
-rw-r--r--infrastructure/BoxPlatform.pm.in32
1 files changed, 1 insertions, 31 deletions
diff --git a/infrastructure/BoxPlatform.pm.in b/infrastructure/BoxPlatform.pm.in
index 81629414..828516e2 100644
--- a/infrastructure/BoxPlatform.pm.in
+++ b/infrastructure/BoxPlatform.pm.in
@@ -1,7 +1,7 @@
package BoxPlatform;
use Exporter;
@ISA = qw/Exporter/;
-@EXPORT = qw/$build_os $target_os $make_command $bsd_make $platform_define $platform_cpu $gcc_v3 $product_version $product_name $install_into_dir $sub_make_options $platform_compile_line_extra $platform_link_line_extra $platform_lib_files $platform_exe_ext $target_windows update_if_changed/;
+@EXPORT = qw/$build_os $target_os $make_command $bsd_make $platform_define $platform_cpu $gcc_v3 $product_version $product_name $install_into_dir $sub_make_options $platform_compile_line_extra $platform_link_line_extra $platform_lib_files $platform_exe_ext $target_windows/;
BEGIN
{
@@ -24,7 +24,6 @@ BEGIN
# Cygwin Builds usually something like CYGWIN_NT-5.0, CYGWIN_NT-5.1
# Box Backup tried on Win2000,XP only :)
-
$build_os = 'CYGWIN' if $build_os =~ m/CYGWIN/;
$make_command = ($build_os eq 'Darwin') ? 'bsdmake' : ($build_os eq 'SunOS') ? 'gmake' : 'make';
@@ -107,34 +106,5 @@ sub make_flag
return $_[0].'=1';
}
-sub update_if_changed ($)
-{
- my ($file) = @_;
- die "$file.new: not found" unless -r "$file.new";
-
- if (-r $file)
- {
- die "$file.new: not found" unless -r "$file.new";
- if (system("diff --brief $file $file.new") == 0)
- {
- unlink "$file.new";
- return;
- }
- }
-
- if (system("cp $file.new $file") != 0)
- {
- die "failed to copy $file.new to $file";
- }
-
- if (system("diff --brief $file $file.new") != 0)
- {
- die "$file and $file.new are still different";
- }
-
- unlink "$file.new";
- return;
-}
-
1;