Linked by Jussi Pakkanen on Tue 17th Apr 2007 18:20 UTC
Editorial Let me begin by telling you a little story. Some time ago I needed to run a script at work once a day. We had tons of machines ranging from big Unix servers to Linux desktops. Due to various reasons the script could only be run on a desktop machine. However using cron was disabled on desktops. All other machines allowed cron.
Thread beginning with comment 231688
To view parent comment, click here.
To read all comments associated with this story, please click here.
siebharinn
Member since:
2005-07-06

So, instead of writing a makefile ("config file for make"), we now write a config file for the makefile generator generator. Nice improvement.

This is not limited to C/C++:
http://discuss.joelonsoftware.com/default.asp?joel.3.219431.12

This is part of the reason why people are migrating en mass to languages like Ruby and Python.

Reply Parent Bookmark Score: 3

sanctus Member since:
2005-08-31

yeah python, (same thing goes for ruby) to make your script work you have to write at the beginning : #!/usr/bin/python
but wait, what if python is not located there.
solution : #!/usr/bin/env python
but wait, what if env is not there either !!

what a hack

so just remove that line and type python before the script

Reply Parent Bookmark Score: 1

MORB Member since:
2005-07-06

This is part of the reason why people are migrating en mass to languages like Ruby and Python.

Most python apps come with configure scripts/makefile to make sure that all required optional 3rd party modules are available and to precompile everything to .pyc anyway.

Reply Parent Bookmark Score: 1