Another common method is to use environment variables.
Your program checks to see if MYPROGRAM_PREFIX_DIR is set, and if so uses that, otherwise it uses the hardcoded path.
then you can just 'export MY_PROGRAM_PREFIX_DIR=/home/mine/devel/myprogram/' and run normally.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement