summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlenz@mysql.com <>2003-07-16 12:06:55 +0200
committerlenz@mysql.com <>2003-07-16 12:06:55 +0200
commit42d6dea61b14a608e987d417e5a2d6f2a742187e (patch)
tree31987dfa80ac60ffa1738da6a74b380ac8df7464
parent35c9e97d77f880a0e0e4914bc6d3644cdf1dc76a (diff)
downloadmariadb-git-42d6dea61b14a608e987d417e5a2d6f2a742187e.tar.gz
- fixed the automatic generation of support-files/MacOSX/ReadMe.txt -
a node name was changed in manual.texi which resulted in a very large ReadMe.txt file, as the generating script could not find the (renamed) ending node. Fixed the ending node name in Docs/Makefile.am and the Docs/Support/generate-text-files.pl Perl script to make sure this does not happen again (I only discovered this because the Do-pkg script was not able to add the ReadMe.txt to the Apple Disk image because it ran out of disk space due to the size of the file)
-rw-r--r--Docs/Makefile.am2
-rwxr-xr-xDocs/Support/generate-text-files.pl9
2 files changed, 7 insertions, 4 deletions
diff --git a/Docs/Makefile.am b/Docs/Makefile.am
index f3df055a7dd..0beaa44c7eb 100644
--- a/Docs/Makefile.am
+++ b/Docs/Makefile.am
@@ -208,7 +208,7 @@ INSTALL-BINARY: mysql.info $(GT)
perl -w $(GT) mysql.info "LGPL license" "Function Index" > $@
../support-files/MacOSX/ReadMe.txt: mysql.info $(GT)
- perl -w $(GT) mysql.info "Mac OS X installation" "Netware installation" > $@
+ perl -w $(GT) mysql.info "Mac OS X installation" "NetWare installation" > $@
# Don't update the files from bitkeeper
%::SCCS/s.%
diff --git a/Docs/Support/generate-text-files.pl b/Docs/Support/generate-text-files.pl
index 570e579d926..6470baaa6e9 100755
--- a/Docs/Support/generate-text-files.pl
+++ b/Docs/Support/generate-text-files.pl
@@ -1,11 +1,11 @@
-#!/my/gnu/bin/perl -w -*- perl -*-
+#!/usr/bin/perl -w -*- perl -*-
# Generate text files from top directory from the manual.
$from = shift(@ARGV);
$fnode = shift(@ARGV);
$tnode = shift(@ARGV);
-open(IN, "$from") || die;
+open(IN, "$from") || die "Cannot open $from: $!";
$in = 0;
@@ -19,7 +19,7 @@ while (<IN>)
}
elsif (/^File: mysql.info/ || (/^/))
{
- # Just Skip node begginigs
+ # Just Skip node beginnings
}
else
{
@@ -38,3 +38,6 @@ while (<IN>)
}
close(IN);
+
+die "Could not find node \"$tnode\"" if ($in == 1);
+exit 0;