You are not logged in.
Pages: 1
Hi,
I'm trying to build the Boost C++ library. However, its configure scripts (hundreds of them) are filled with inane DOS line endings, and bash is not reading it correctly. It outputs things like "line 2: $'\r' command not found'. Is there a way to make bash accept it or ignore it?
Thanks in advance.
Offline
You might try automatically converting the file with the 'dos2unix' tool from the 'hd2u' package.
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
or ...
cat dos-file | tr -d '\r' >unix-file
Offline
Not practical. In a package of thousands of files, I do not know which are shell scripts, and there are hundreds of them...
Is there a way to make \r an alias of nothing? I tried doing it, but bash complains that \r is not a valid alias..
Offline
Sounds like you need to use some "find ... -exec sed ..." magic.
archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson
Offline
What do some of these files look like? I guess I'm just a little confused because the boost c++ sources that I'm looking at don't resemble what you're describing at all, so I'm not sure which boost c++ libs you're trying to build. I guess you could do this:
$ find /path/to/source -type f -exec dos2unix {} \;
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
It has C++ sources, but to build them into libraries, its configure scripts are shell scripts, and they are located across the library.
How well does that work ^? There are binaries in the package.
Offline
How about you simply modify the PKGBUILD? Why do you want to compile yourself in the first place?
1000
Offline
I have some special needs for the binary.
Turns out they distribute Windows and Unix packages differently. I downloaded the .zip version, which is Windows even though they say it's cross-platform. Big d'oh! Thanks for all the help guys.
Offline
Pages: 1