URL:
  <http://gna.org/bugs/?22781>

                 Summary: Windows start script issues
                 Project: Freeciv
            Submitted by: dunnoob
            Submitted on: Sat 11 Oct 2014 08:41:11 UTC
                Category: None
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: Microsoft Windows
         Planned Release: 

    _______________________________________________________

Details:

On Windows 2.4.x and 2.5.0-beta1 install 3 scripts *.cmd to start the
corresponding (same name) binary *.exe in the same directory, e.g.,
freeciv-server.cmd for freeciv-server.exe.  The job of these scripts is to
ignore a first argument "auto" or to SET LANG=arg1 for any other first
argument.  After that foo.cmd starts foo.exe arg2..9.

0 The scripts should support more than eight (2..9) tokens for any options
after the first "auto" or locale.
0 Windows or OS/2 *.cmd should be configured as binary in SVN, because tools
on these platforms expect CR LF line ends for *.cmd scripts.
0 A ^Z (ASCII SUB) to indicate the "DOS" EOF is unnecessary, but no line end
at all (even no LF) for the last line is odd.
0 Changing LANG permanently is unnecessary, the script(s) should start with
"setlocal".
0 "if %1 NEQ auto" would trigger an error for a missing first argument, and
NEQ requires enabled Windows NT cmd.exe extensions: "setlocal
enableextensions" can handle this.

Suggested solutions attached, three identical scripts with different names.   
   



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 11 Oct 2014 08:41:11 UTC  Name: 2.4.freeciv-modpack.cmd.patch  Size:
910B   By: dunnoob

<http://gna.org/bugs/download.php?file_id=22597>
-------------------------------------------------------
Date: Sat 11 Oct 2014 08:41:11 UTC  Name: 2.5.freeciv-mp-gtk2.cmd.patch  Size:
910B   By: dunnoob

<http://gna.org/bugs/download.php?file_id=22598>
-------------------------------------------------------
Date: Sat 11 Oct 2014 08:41:11 UTC  Name: 2.x.freeciv-gtk2.cmd.patch  Size:
872B   By: dunnoob

<http://gna.org/bugs/download.php?file_id=22599>
-------------------------------------------------------
Date: Sat 11 Oct 2014 08:41:11 UTC  Name: 2.x.freeciv-server.cmd.patch  Size:
878B   By: dunnoob

<http://gna.org/bugs/download.php?file_id=22600>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22781>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to