This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: maintainer-scripts/gcc_release


On Mon, 15 Mar 2004, Gerald Pfeifer wrote:

> -FTP_PATH=~ftp/pub/gcc
> +# The directory in which the files will be placed.
> +FTP_PATH=/var/ftp

I don't really like this sort of hardcoding (if the lookup of the home
directory can be done at runtime, it surely is better to do it at runtime,
even though any move of the directory would probably be accompanied by
appropriate symlinks to support scripts with an old location hardcoded).  
(Besides, /var/ftp is not the same as ~ftp/pub/gcc.)

You could set it first time with the quotes then use eval
FTP_PATH=$FTP_PATH in the -l case to avoid duplicating the path.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]