hide awk BEGIN statements - make debian linda happy
This commit is contained in:
+6
-4
@@ -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 = ""
|
||||
}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user