Page 1 of 1

po2pot using awk command running Puppy Precise? [SOLVED]

Posted: Thu 10 Jan 2013, 18:06
by Argolance
Hello,
This command line worked fine running Puppy Racy 5.3 but don't anymore running Puppy Precise 5.4.3 :shock:

Code: Select all

msgfilter --keep-header  -i input.po  -o empty.po  awk -e '{}'
This is what I get in console:
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m[fr] val
-O --optimize
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables[=file] --dump-variables[=file]
-W exec=file --exec=file
-W gen-po --gen-po
-W help --help
-W lint[=fatal] --lint[=fatal]
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile[=file] --profile[=file]
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W use-lc-numeric --use-lc-numeric
-W version --version

To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.

gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.

Examples:
gawk '{ sum += $1 }; END { print sum }' file
gawk -F: '{ print $1 }' /etc/passwd
msgfilter: Sous-processus awk terminé avec le code de sortie 1
What's wrong? The option -e of awk (GNU Awk 3.1.8 on Puppy Precise) seems not to be supported?

Thank you!

Cordialement.

Re: po2pot?

Posted: Thu 10 Jan 2013, 20:12
by L18L
Argolance wrote:...

Code: Select all

msgfilter --keep-header  -i input.po  -o empty.po  awk -e '{}'
...
in his blog BarryK wrote:This line does it (plus a bit of editing by me):

# msgfilter --keep-header -i ROX-Filer.po -o ROX-Filer.pot awk -e '{}'
I would generate the .pot file from the sources (that is how it is usually done 8) )

Posted: Thu 10 Jan 2013, 21:38
by Argolance
Hello L18L,
Thank you for answering.
This line does it (plus a bit of editing by me):

# msgfilter --keep-header -i ROX-Filer.po -o ROX-Filer.pot awk -e '{}'
This is indeed where I found it...
I would generate the .pot file from the sources (that is how it is usually done)
This is "usually" right. :wink:
But this code line can be useful though (I used it before and currently need it inside a script for my own) and I was wondering why it works fine running Racy 5.3 but not, running Precise, and, perhaps, how to solve this?

Cordialement.

awk -e

Posted: Fri 11 Jan 2013, 09:42
by L18L
I have no idea how to solve this by myself.
You could report this in bug section for precise :roll:

Posted: Fri 11 Jan 2013, 09:44
by Argolance
Hello,
Found the solution: awk version which comes with Racy is 4.0.0 and the one which comes with Puppy Precise is 3.1.8.
You could report this in bug section for precise
this is what I am doing now...
Thank you!

Cordialement.