summaryrefslogtreecommitdiffstats
path: root/release/scripts
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>2002-08-09 07:45:42 +0000
committerjhay <jhay@FreeBSD.org>2002-08-09 07:45:42 +0000
commitdd31cc7afeddb9c102cab4ef5b5e8b0ef8ace8d8 (patch)
treeae883ed0ca5f079ea2ae82e77d940615c4f6f914 /release/scripts
parent49c32ba6e5cca970d9776fe252aec5e42657e4e2 (diff)
downloadFreeBSD-src-dd31cc7afeddb9c102cab4ef5b5e8b0ef8ace8d8.zip
FreeBSD-src-dd31cc7afeddb9c102cab4ef5b5e8b0ef8ace8d8.tar.gz
Add a third floppy to releases. It will only be built if there is a
release/${TARGET}/drivers.conf file which list drivers that have to go into the third floppy. Also shuffle i386/drivers.conf so that the floppies don't overflow anymore. Anybody with real/better usage statistics is welcome to shuffle it differently. Reviewed by: ru
Diffstat (limited to 'release/scripts')
-rwxr-xr-xrelease/scripts/driver-copy2.awk36
1 files changed, 16 insertions, 20 deletions
diff --git a/release/scripts/driver-copy2.awk b/release/scripts/driver-copy2.awk
index 0935878..91d34cd 100755
--- a/release/scripts/driver-copy2.awk
+++ b/release/scripts/driver-copy2.awk
@@ -30,7 +30,7 @@
function usage()
{
- print "usage: driver-copy2.awk config_file src_ko_dir dst_ko_dir" > "/dev/stderr";
+ print "usage: driver-copy2.awk flop_num config_file src_ko_dir dst_ko_dir" > "/dev/stderr";
exit 1;
}
@@ -62,12 +62,13 @@ function readconfig()
}
BEGIN {
- if (ARGC != 4)
+ if (ARGC != 5)
usage();
- config = ARGV[1];
- srcdir = ARGV[2];
- dstdir = ARGV[3];
+ fnum = ARGV[1];
+ config = ARGV[2];
+ srcdir = ARGV[3];
+ dstdir = ARGV[4];
readconfig();
@@ -77,20 +78,15 @@ BEGIN {
err(1, "cannot find %s directory", dstdir);
for (f in flp) {
- if (flp[f] == 1) {
- print f ": There's nothing to do with driver on first floppy." > "/dev/stderr";
- } else if (flp[f] == 2) {
- srcfile = srcdir "/" f ".ko";
- dstfile = dstdir "/" f ".ko";
- dscfile = dstdir "/" f ".dsc";
- print "Copying " f ".ko to " dstdir > "/dev/stderr";
- if (system("cp " srcfile " " dstfile) != 0)
- exit 1;
- printf "%s", dsc[f] > dscfile;
- close(dscfile);
- } else if (flp[f] == 3) {
- # third driver floppy (not yet implemented)
- err(1, "%s: 3rd driver floppy support is not implemented", f);
- }
+ if (flp[f] != fnum)
+ continue;
+ srcfile = srcdir "/" f ".ko";
+ dstfile = dstdir "/" f ".ko";
+ dscfile = dstdir "/" f ".dsc";
+ print "Copying " f ".ko to " dstdir > "/dev/stderr";
+ if (system("cp " srcfile " " dstfile) != 0)
+ exit 1;
+ printf "%s", dsc[f] > dscfile;
+ close(dscfile);
}
}
OpenPOWER on IntegriCloud