Updates to disk layout scripts.
This commit is contained in:
parent
10a0bdc073
commit
a99cf1d758
4 changed files with 18 additions and 10 deletions
|
@ -1,11 +1,18 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
$tgzdir = "/stage/fgfs03/curt/Scenery/Scenery-0.9.5";
|
$tgzdir = "/stage/fgfs07/ftp/pub/fgfs/Scenery-1.0.0/";
|
||||||
$verbose = 0;
|
$verbose = 0;
|
||||||
|
|
||||||
if ( $#ARGV < 0 ) {
|
if ( $#ARGV != 1 ) {
|
||||||
die "usage: $0 <disk_size_mb> (DVD=4500, CDROM=700)\n";
|
print "usage: $0 <reserve> <disk_size_mb>\n";
|
||||||
|
print " - where <reserve> is some amount to reserve on the first disk\n";
|
||||||
|
print " for things like the win32 setup program or aircraft or src.\n";
|
||||||
|
print " At the moment 700 (Mb) works well.\n";
|
||||||
|
print " - and <disk_size_mb> is the size in MB of each individual disk.\n";
|
||||||
|
print " DVD=4500 (Mb), CDROM=700 (Mb)\n";
|
||||||
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
$reserve = shift(@ARGV);
|
||||||
$disksize = shift(@ARGV);
|
$disksize = shift(@ARGV);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,13 +32,13 @@ if ( $#ARGV < 0 ) {
|
||||||
|
|
||||||
for $lon (@lons) {
|
for $lon (@lons) {
|
||||||
for $lat (@lats) {
|
for $lat (@lats) {
|
||||||
push( @files, "$lon$lat.tar.gz" );
|
push( @files, "$lon$lat.tgz" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$disk = 1;
|
$disk = 1;
|
||||||
$total_disk = 0;
|
$total_disk = $reserve;
|
||||||
$total_collection = 0;
|
$total_collection = 0;
|
||||||
|
|
||||||
foreach $file ( @files ) {
|
foreach $file ( @files ) {
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
$source = "/stage/fgfs03/curt/Scenery/Scenery-0.9.5";
|
$source = "/stage/fgfs07/ftp/pub/fgfs/Scenery-1.0.0";
|
||||||
|
|
||||||
$layout_master = shift( @ARGV );
|
$layout_master = shift( @ARGV );
|
||||||
$dest = shift( @ARGV );
|
$dest = shift( @ARGV );
|
||||||
|
|
||||||
if ( $layout_master eq "" ) {
|
if ( $layout_master eq "" ) {
|
||||||
$layout_master = "./layout-disks-0.9.5";
|
$layout_master = "./layout-dvd-1.0.0";
|
||||||
}
|
}
|
||||||
if ( $dest eq "" ) {
|
if ( $dest eq "" ) {
|
||||||
$dest = "./Images";
|
$dest = "./Images";
|
||||||
|
@ -43,5 +43,6 @@ foreach $file ( @layout ) {
|
||||||
system( "mkdir -p $dest/$dir" );
|
system( "mkdir -p $dest/$dir" );
|
||||||
}
|
}
|
||||||
|
|
||||||
system( "ln -sf $source/$base $dest/$file\n" );
|
printf( "ln -sf $source/$base $dest/$file\n" );
|
||||||
|
system( "ln -sf $source/$base $dest/$file" );
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ if [ "x${2}" == "x" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION=0.9.5
|
VERSION=1.0.0
|
||||||
SOURCE=$1
|
SOURCE=$1
|
||||||
DEST=$2
|
DEST=$2
|
||||||
VOLUME_ID=FG_Scenery_${SOURCE}_v${VERSION}
|
VOLUME_ID=FG_Scenery_${SOURCE}_v${VERSION}
|
||||||
|
|
|
@ -8,7 +8,7 @@ if ( $#ARGV < 0 ) {
|
||||||
$cdromdir = shift(@ARGV);
|
$cdromdir = shift(@ARGV);
|
||||||
}
|
}
|
||||||
|
|
||||||
@files = `ls $cdromdir/*.tar.gz`;
|
@files = `ls $cdromdir/*.tgz`;
|
||||||
$total = 0;
|
$total = 0;
|
||||||
|
|
||||||
foreach $file ( @files ) {
|
foreach $file ( @files ) {
|
||||||
|
|
Loading…
Reference in a new issue