Added check for too long description.txt files.

This commit is contained in:
Geert-Jan Giezeman 1998-10-08 11:43:32 +00:00
parent f84772a9a7
commit 0ae6483756
1 changed files with 6 additions and 0 deletions

View File

@ -255,6 +255,12 @@ sub check_package($)
}
if ( ! -f 'description.txt' ) {
log_msg "WARNING: File description.txt is missing!";
} else {
my $word_count;
$word_count = `cat description.txt| wc -w`;
if ($word_count > 50) {
log_msg "WARNING: File description.txt contains more than 50 words!";
}
}
# if ( ! -f 'changes.txt' ) {
# log_msg "WARNING: File changes.txt is missing!";