po2pot using awk command running Puppy Precise? [SOLVED]

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

po2pot using awk command running Puppy Precise? [SOLVED]

#1 Post 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.
Last edited by Argolance on Fri 11 Jan 2013, 09:49, edited 1 time in total.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: po2pot?

#2 Post 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) )

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#3 Post 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.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

awk -e

#4 Post by L18L »

I have no idea how to solve this by myself.
You could report this in bug section for precise :roll:

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#5 Post 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.

Post Reply