-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the need of the dos2unix program #164
Comments
Does spine use this itself? I will have to check. It may be used by third party scripts. |
Hello, It's in the INSTALL file
And the bootstrap
I'm downloading the cacti-spine-1.2.13.tar.gz from the site to a unix platform so the file is correctly formatted. I think bootstrap should test if it's a windows platform, if yes make the dos2unix program a prerequisite, else skip the dos2unix presence verification. |
In bootstrap I modified the code like this
Honestly, this dos2unix command is just usefull when you're on a Windows platform so the condition should be something like If you're on mac or linux you can assume that \r\n won't be added during the download. |
That does seem reasonable. I guess the precaution is there in case we actually package on a windows system. It may even really be a hang over from the SVN days because SVN used to convert line feeds. I don't think that Windows should actually convert the files imho, so we might be better removing it altogether, what do you think @TheWitness, @cigamit or @browniebraun ? |
While I don't think "I don't want to install this program on my system" is a valid reason for removing it, I don't believe it has been required on the Linux side since we moved to git. I tested it on Centos last night and didn't have any issues. I would wait until we get feedback from the Windows side though. |
That was my first thought and I would agree with that sentiment, though if it's unneeded then removing unnecessary prerequisites is always a good thing in my book 👍 |
dos2unix is everywhere. I use it all the time. The need for this was due to a legacy, and still relevant today of people who are still performing development and merge activities on Windows and those who prefer just to use the GitHub Desktop. Unfortunately, decades ago, Microsoft decided to make the backslash character a directory separator, and thus began a multi-decade long path of incompatibility that continues today. To add insult to injury, they also had to adopt the Carriage Return (yea, for old guys like me, that was the arm on the manual typewriter that you had to pull to go from the end of a line to the next one). Oh well, I thought I would write this down just in case the new kiddies were wondering what the hell happened in the late 70's and early 80's. |
Drugs |
The more I use windows, and I use it every day, the more I dislike it. But could not work without unless, I do. |
Hello TheWitness,
I'm not sure about what gives unamestr=$(uname) on Windows, can you test it ? When users are on Linux/Unix only there is no reason why a \r\n would appear, except if they download the cacti on their Windows desktop, unzip it, open a file and save it with notepad and then reupload it on a linux machine. |
Remove the need of the dos2unix program
Spine: 1.2.13
Hello,
It would be nice if you removed the need to use dos2unix
I don't want to install this program on my system and on the other hand there is no need for it when I download the tar.gz
Options possible:
The latest option seems good.
Thank you
The text was updated successfully, but these errors were encountered: