On Thu, 23 Mar 2017 15:04:56 +0100 Dimitry Sibiryakov wrote

>    Hello, All.
> 
>    What version/build of subj supports '-D' switch 

Good question. If unix2dos is not found then an error will be thrown.
It is not clearly documented but in the HELP screen there will be this:

@echo     o sed is required for packaging. Use the sed provided by
@echo       gnuwin32. The cygwin one is not guaranteed to work.

Basically, if sed is available then unix2dos _ought_ to be available
and the clue is in the 'provided by gnuwin32'

If you google gnuwin32 you will arrive here

  http://gnuwin32.sourceforge.net/

that ought to be enough but I used

https://sourceforge.net/projects/getgnuwin32/

which is supposed to simplify installation and maintenance of gnuwin32.

I haven't upgraded the versions I use in years and the version in the
help message doesn't correspond with the version in alt-Properties.

To be honest it is a real hassle that we need to install so much just
to have two small posix executables. Maybe things have changed with
modern versions of windows and we could eliminate them now. But once
the toolchain is installed it just works.

> and what it is supposed to do in installation build script? 

Its purpose is clearly documented in the batch file just above where
it is called, so I will not repeat it.

The reason we need it is because git seems to check (some) files out
with LF eols and we need to deploy all text files with CR LF eols. 


> If only to convert EOL marks, it is job for '-ascii' switch...
 
Yes, weirdly, gnuwin32 seems to implement non-standard parameters, at
least for unix2dos, inasmuch as the --ascii switch is not available.
OTOH, the --ascii switch on linux is the default and can be omitted.

And unix2dos on linux assumes that output will be in dos format - hence
the name. Why the gnuwin32 version doesn't make that assumption is
anyone's guess. So the -D (or --unix2dos in the long format ) is
required.



Paul

-- 
Paul Reeves
http://www.ibphoenix.com
Supporting users of Firebird
 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to