Re: Testing help files



Dnia 2010-03-02, wto o godzinie 15:28 +0100, Milo Casagrande pisze:

Unfortunately I don't have the script here with me at the office, but
it goes in something like this:

for i in `ls PATH_TO_FILES` do
xml2po -p TRANSLATION_FILE.po PATH_TO_FILES/$i > PATH_TO_LOCALIZED_DIR/$i
done

(plus some tests to check if it's a file or not)


Hope it might help.

Ciao.

I'm trying to tweak the script, but I'm not a developer and I find it difficult to figure out what I'm doing wrong. Could you, please, help me with this bit? When I try to run the script:

#!/bin/bash
for i in `ls /home/aleksander/Work/Aviary.pl/Git/empathy/help/C` do
xml2po -p pl.po /home/aleksander/Work/Aviary.pl/Git/empathy/help/C/$i > /home/aleksander/Work/Aviary.pl/Current1/$i
done

, I get is this:

aleksander laestrygo:~/Work/Aviary.pl/Current1$ ./po2page.sh
./po2page.sh: line 3: błąd składni przy nieoczekiwanym znaczniku `xml2po'
./po2page.sh: line 3: `xml2po -p pl.po /home/aleksander/Work/Aviary.pl/Git/empathy/help/C/$i > /home/aleksander/Work/Aviary.pl/Current1/$i'
aleksander laestrygo:~/Work/Aviary.pl/Current1$

What's wrong with my script? Thanx for help.

Regards,

Alex

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]