diff options
| author | Mattias Andrée <maandree@operamail.com> | 2014-10-31 23:34:47 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2014-10-31 23:34:47 +0100 |
| commit | 0ebee6eeb1e053d50b9f74c75c419d033c333616 (patch) | |
| tree | e3540e181b1d6308ec0c237d3d2bad2d9a74cc1a /src | |
| parent | update makefile (diff) | |
| download | splashtool-0ebee6eeb1e053d50b9f74c75c419d033c333616.tar.gz splashtool-0ebee6eeb1e053d50b9f74c75c419d033c333616.tar.bz2 splashtool-0ebee6eeb1e053d50b9f74c75c419d033c333616.tar.xz | |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
| -rwxr-xr-x | src/splashtool | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/splashtool b/src/splashtool index 95f8975..8443f46 100755 --- a/src/splashtool +++ b/src/splashtool @@ -26,12 +26,12 @@ d="$(dirname "$(realpath "$0")")" trim () { sed -e 's/\t/ /g' | sed -e '/^[ \t]*\(#\|$\)/d' -e 's/ #.*$//' -e 's/^ *//' -e 's/ *$//' | - awk ' BEGIN { text = 0; } - { t=tolower($1); - if (t=="text") text+=1; - if (t=="timeout" || t=="menu" || t=="font" || text==1) print $LINE; - if (t=="endtext") text+=1; - }' + awk 'BEGIN { text = 0; } + { t=tolower($1); + if (t=="text") text+=1; + if (t=="timeout" || t=="menu" || t=="font" || text==1) print $LINE; + if (t=="endtext") text+=1; + }' } cd "$(dirname "$1")" |
