News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

distribute.sh fails

Started by sanna, May 16, 2010, 10:50:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sanna

Running distribute.sh on rev 3293 fails with page not found. Replacing the called url ( http://simutrans-germany.com/translator/script/wrap.php) with http://simutrans-germany.com/translator/script/main.php?page=wrap seems to fix the issue.

My diff seems "dirty", also including changes to files to be removed...so only for reference I am afraid...
Index: distribute.sh
===================================================================
--- distribute.sh       (revision 3293)
+++ distribute.sh       (arbetskopia)
@@ -30,7 +30,7 @@
# get the translations for basis
# The first file is longer, but only because it contains SQL error messages
# - discard it after complete download (although parsing it would give us the archive's name):
-wget --post-data "version=0&choice=all&submit=Export!" --delete-after http://simutrans-germany.com/translator/script/wrap.php || {
+wget --post-data "version=0&choice=all&submit=Export!" --delete-after http://simutrans-germany.com/translator/script/main.php?page=wrap || {
   echo "Error: generating file language_pack-Base+texts.zip failed (wget returned $?)" >&2;
   exit 3;
}
@@ -51,4 +51,4 @@
cd ../..
distribute
rm simutrans/simutrans$simexe
-rm simutrans/text/*.tab
+#rm simutrans/text/*.tab

Dwachs

Thank you!

I should have done this earlier, as Frank told me about this change some time ago  :'(
Parsley, sage, rosemary, and maggikraut.

sanna

Sorry, it is still not right, a "script" is missing from the url, it should be:
http://simutrans-germany.com/translator/script/main.php?page=wrap

Dwachs

should work now (thanks to tron)
Parsley, sage, rosemary, and maggikraut.