| Author |
Message |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Thu 10 Jan 2013, 14:06 Post subject:
po2pot using awk command running Puppy Precise? [SOLVED] |
|
Hello,
This command line worked fine running Puppy Racy 5.3 but don't anymore running Puppy Precise 5.4.3 | Code: | | msgfilter --keep-header -i input.po -o empty.po awk -e '{}' | This is what I get in console: | Quote: | 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, 05:49; edited 1 time in total
|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1714 Location: Burghaslach, Germany
|
Posted: Thu 10 Jan 2013, 16:12 Post subject:
Re: po2pot? Subject description: How to get a pot file from a po file? |
|
| Argolance wrote: | ... | Code: | | 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 )
|
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Thu 10 Jan 2013, 17:38 Post subject:
|
|
Hello L18L,
Thank you for answering.
| Quote: | 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... | Quote: | | I would generate the .pot file from the sources (that is how it is usually done) | This is "usually" right.
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.
_________________

|
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 1714 Location: Burghaslach, Germany
|
Posted: Fri 11 Jan 2013, 05:42 Post subject:
awk -e |
|
I have no idea how to solve this by myself.
You could report this in bug section for precise
|
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Fri 11 Jan 2013, 05:44 Post subject:
|
|
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.
| Quote: | | You could report this in bug section for precise | this is what I am doing now...
Thank you!
Cordialement.
_________________

|
|
Back to top
|
|
 |
|