User forums > Help

I'm too dumb to install Code::Blocks under GNU/Linux

<< < (3/3)

Bloop:
You are the man!

That did it. You should never work on linux when you are to tired to think.  :lol:

Thanks

Regards Bloop

TheTuxKeeper:
I think we should also exlude the *.c, *.cxx and *.ico .


--- Code: ---find . -type f -and -not -name "*.cpp" -and -not -name "*.h" -and -not -name "*.png" -and -not -name "*.bmp" -and -not -name "*.c" -and -not -name "*.cxx" -and -not -name "*.ico"  | sed "s/.*/\"\\0\"/" | xargs dos2unix
--- End code ---
These should be all files which shouldn't be converted. The rest should be XML or autotools files.

Or are there any additional files which should be excluded ?

Thanks for this great line of commands (this is why I like Linux, one line and done)

Daniel

rickg22:
Shouldn't it be easier JUST to modify the makefiles with dos2unix? why having to exlclude ALL extensions from aaa to zzz? (Just a thought, I'm a n00b in this linux area).

TheTuxKeeper:

--- Quote from: rickg22 on October 26, 2005, 05:05:37 pm ---Shouldn't it be easier JUST to modify the makefiles with dos2unix? why having to exlclude ALL extensions from aaa to zzz? (Just a thought, I'm a n00b in this linux area).

--- End quote ---

You have to convert the makefiles, bootstrap, the *.in's, src/update and the *.m4's , that are five.
The command would be a bit shorter but I think it's both ways nearly the same "effort".

Navigation

[0] Message Index

[*] Previous page

Go to full version