The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: sanna on May 16, 2010, 10:50:01 AM

Title: distribute.sh fails
Post by: sanna on May 16, 2010, 10:50:01 AM
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
Title: Re: distribute.sh fails
Post by: Dwachs on May 16, 2010, 11:15:26 AM
Thank you!

I should have done this earlier, as Frank told me about this change some time ago  :'(
Title: Re: distribute.sh fails
Post by: sanna on May 20, 2010, 02:34:24 PM
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
Title: Re: distribute.sh fails
Post by: Dwachs on May 21, 2010, 07:13:49 AM
should work now (thanks to tron)