hide awk BEGIN statements - make debian linda happy

This commit is contained in:
dockes
2007-01-30 11:39:32 +00:00
parent 953a67c49c
commit 4f0c17d2e6
7 changed files with 36 additions and 22 deletions
+6 -4
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# @(#$Id: rcldjvu,v 1.2 2006-04-04 16:03:28 dockes Exp $ (C) 2005 J.F.Dockes
# @(#$Id: rcldjvu,v 1.3 2007-01-30 11:36:02 dockes Exp $ (C) 2005 J.F.Dockes
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -82,7 +82,7 @@ title=`djvused "$infile" -e 'select 1;output-ant' | \
grep ' (title ' | sed -e 's/^.* (title //' -e 's/)$//' |\
awk '
{
printf("BEGIN {s = %s; print s}\n", $0)
printf("BEGIN" " {s = %s; print s}\n", $0)
}' | awk -f -`
@@ -96,9 +96,11 @@ cat <<EOF
<pre>
EOF
# The strange 'BEGIN' setup is to prevent 'file' from thinking this file
# is an awk program
djvutxt "$infile" | sed -e 's/[ ][ ]*$//' | \
awk '
BEGIN {
awk 'BEGIN'\
' {
cont = ""
}
{