mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
7f4414ae39
Windows 95/98 port from IBM Almaden documentation and build support ==================== This delta was composed from multiple commits as part of the CVS->Git migration. The checkin message with each commit was inconsistent. The following are the additional commit messages. ==================== Windows 95/98 port from IBM Almaden changes to cache manager ==================== Windows 95/98 port from IBM Almaden makefile changes ==================== Windows 95/98 port from IBM Almaden osi changes to support 95/98 ==================== Windows 95/98 port from IBM Almaden installer for 95/98 client ==================== Windows 95/98 port from IBM Almaden win95/98 panel app ==================== Windows 95/98 port from IBM Almaden win95/98 panel app help ==================== Windows 95/98 port from IBM Almaden makefile changes plus dns implementation ==================== Windows 95/98 port from IBM Almaden makefile changes plus changes for compat with dos line conventions ==================== Windows 95/98 port from IBM Almaden config for 95/98 ==================== Windows 95/98 port from IBM Almaden makefile changes plus support for 95/98 env ==================== Windows 95/98 port from IBM Almaden ms compiler changes ==================== Windows 95/98 port from IBM Almaden makefile changes ==================== Windows 95/98 port from IBM Almaden lwp changes to support 95/98 port ==================== Windows 95/98 port from IBM Almaden rx changes to support 95/98 port
79 lines
1.6 KiB
Perl
79 lines
1.6 KiB
Perl
#!/usr/bin/perl
|
|
|
|
# mkdest: make AFS platform directory for build
|
|
|
|
if ($#ARGV >= 0) {
|
|
$srcdir = $ARGV[0];
|
|
}
|
|
else {
|
|
$srcdir = "/tmp/src";
|
|
}
|
|
$dir = $ENV{PWD};
|
|
|
|
print "Create build tree from the AFS source tree $srcdir\n";
|
|
print "Create links in platform tree $dir\n";
|
|
|
|
print "continue (y/n) ? ";
|
|
|
|
chop ($ans = <STDIN>);
|
|
exit if ($ans ne "y");
|
|
|
|
mkdir "dest", 0755 || die "Can't create directory dest\n";
|
|
mkdir "obj", 0755 || die "Can't create directory obj\n";
|
|
chdir "obj" || die "Can't change to directory obj\n";
|
|
|
|
&dodir($srcdir, "..");
|
|
|
|
sub dodir {
|
|
local($dir,$destpath) = @_;
|
|
print "$dir\n";
|
|
local($a);
|
|
local($i);
|
|
|
|
#if (-e "$dir/RCS") {
|
|
## Make RCS link and check out all files in this directory
|
|
#system("ln -sf $dir/RCS");
|
|
#system("co RCS/*");
|
|
#}
|
|
|
|
opendir(DIR,$dir) || die "Can't open directory $dir\n";
|
|
local(@allfiles) = readdir(DIR);
|
|
closedir(DIR);
|
|
|
|
$thisdir = &lastcomp($dir);
|
|
system("ln -s $destpath/dest DEST");
|
|
system("ln -s $destpath/../src/$thisdir SRC");
|
|
|
|
foreach $a (@allfiles) {
|
|
#print "$a\n";
|
|
if (! -d "$dir/$a") {
|
|
system("ln -s SRC/$a");
|
|
next;
|
|
}
|
|
next if $a eq '.';
|
|
next if $a eq '..';
|
|
next if $a eq 'RCS';
|
|
|
|
# Make this subdirectory on local copy
|
|
mkdir $a, 0755 || die "Can't create directory $dir/$a\n";
|
|
chdir $a || die "Can't change to directory $dir/$a\n";
|
|
|
|
# Recursively process this directory
|
|
&dodir("$dir/$a", "$destpath/..");
|
|
chdir '..';
|
|
}
|
|
}
|
|
|
|
sub lastcomp {
|
|
local($dir) = @_;
|
|
|
|
$_ = $dir;
|
|
if (/$srcdir\/(\S+)/) {
|
|
$dir = $1;
|
|
}
|
|
else {
|
|
$dir = $_;
|
|
}
|
|
return $dir;
|
|
}
|