Building some software from source and there are a lot of configure switches.
./configure --enable-ftp --with-gettext ...
I have all the switches I want in a text file separated by new lines, e.g.:
--enable-ftp
--with-gettext
etc...
Is there a way I can pass the text file as an argument to configure to set the options? Or some other way to cut and paste the options that I have?
EDIT
I am using $HOME
variable in my switches so any solution should accommodate that.
./configure `cat file`
. You might also want to look at Comfigure, it basically remembersconfigure
options from previous runs for the same package.