Re: [Bashburn-info] I changed the Install.sh script.
Brought to you by:
bashburn
|
From: Steven W. O. <st...@sy...> - 2008-09-15 12:19:50
|
On Monday, Sep 15th 2008 at 04:39 -0000, quoth Nick Warne: =>On Mon, 15 Sep 2008 08:54:09 +0100 =>Nick Warne <ni...@uk...> wrote: => =>> On Sun, 14 Sep 2008 21:44:01 -0400 (EDT) =>> "Steven W. Orr" <st...@sy...> wrote: =>> =>> > On Sunday, Sep 14th 2008 at 17:37 -0000, quoth Steven W. Orr: =>> > =>> > =>Usage: =>> > => Install.sh [ --prefix dir ] [ --uninstall ] [ --help ] =>> > => =>> > =>--prefix will allow the user to specify the prefix directory =>> > =>where BashBurn will be installed or uninstalled. =>> > =>The default is $defprefix. The support files will go =>> > =>into \$dir/lib/BashBurn/lib and the program(s) will be in =>> > \$dir/bin => =>> > =>I recommend removing the old stuff just to reduce clutter (and =>> > confusion). => =>> > =>You can use --prefix in conjunction with --uninstall if you put it =>> > in a =>non-default location. =>> > => =>> > =>Questions anyone? =>> > => =>> > =>BTW, this will be useful as we go forward WRT the localization =>> > stuff. =>> > =>> > Sorry, I just wasn't satisfied with it. Instead of some home-brew =>> > options parsing, I switched it to use getopt. So now we support both =>> > short and long options. Much more betterer. =>> > =>> > Usage: =>> > $0 [OPTIONS] =>> > =>> > -p, --prefix=dir =>> > -u, --uninstall =>> > -h, --help =>> > =>> > --prefix will allow the user to specify the prefix directory =>> > where BashBurn will be installed or uninstalled. =>> > The default is $defprefix. The support files will go =>> > into \$dir/lib/BashBurn/lib and the program(s) will be in \$dir/bin =>> > =>> > --uninstall will remove all of the BashBurn files from your system =>> > based on its knowledge of what prefix is. =>> > =>> > --help This message =>> > =>> > =>> =>> OK, I can't get this to work at all. If I use no options, it tries to =>> install in default location with no questions asked, and as I am not =>> root... =>> =>> Second, if I use -h or --help - error, too many options. =>> =>> Nick => =>OK, I can get it to install, but specifying my home directory, I get =>this as installation path - which in not right, I feel: => =>/home/nick/bashburn/lib/Bashburn/lib/ => =>Nick I just checked. If you say ./Install.sh --prefix=$HOME then it will try to install in /home/nick/bin and /home/nick/lib/Bashburn/lib not /home/nick/bashburn/lib/Bashburn/lib The problem is that it tries to set ownership to root which is not allowed. I just fixed that too so it only runs chown if you're root. 542 -- steveo at syslang dot net TMMP1 http://frambors.syslang.net/ Do you have neighbors who are not frambors? Steve Orr Who should we vote for? http://steveo.syslang.net/electionrec-2008.5/ |