Closed xiaoxiang781216 closed 3 years ago
Hi @xiaoxiang781216,
Why did you remove find ../dist -name '*' | xargs dos2unix
and find ../dist -name '*' | xargs unix2dos
? Is it because they will cause problems, or because they are not necessary? My intention here is to make sure that files in the tar.gz
format will have UNIX newline characters and files in the zip
format will have Windows newline characters. May I know your concerns here? Thanks.
I want to remove dos2unix or unix2dos in dist, since the caller of dist always call dos2unix or unix2dos. But, the patch modify the wrong location, please review the update.
Hi @xiaoxiang781216 , I prefer keep dos2unix
and unix2dos
in the dist
function, because many people don't use build_tar
and build_zip
, but only use dist
to generate the amalgamation distribution. In this case, the dos2unix
and unix2dos
can guarantee the files have correct newline characters.
However, I will remove dos2unix
in build_tar
in the bash script, and remove unix2dos
in build_zip
in the Windows batch script. Thanks for reminding me this duplication.
I'll merge your pull request first, and then modify this patch.
Please read the commit message for the more info