[Slackbuilds-users] OUTPUT

Nick Warne nick at linicks.net
Sat Nov 16 09:21:00 UTC 2013


Hi Rob,

Rob McGee wrote, On 15/11/13 19:03:
> On Fri, Nov 15, 2013 at 06:47:27PM +0000, Nick Warne wrote:
>> Rob McGee wrote, On 15/11/13 18:40:
>> >SBo Slackbuilds support a feature which makes this unnecessary:
>> >$OUTPUT. Run your build as such:
>> >
>> >root at darkstar:~# OUTPUT=/root/pkg ./foo.Slackbuild
>> >
>> >Or, you could set OUTPUT=/root/pkg in one of your bash startup
>> >scripts, such as in "/root/.bashrc".
>> >
>> >Regarding the discussion upthread about clearing /tmp, what I do:
>> >tmpfs for /tmp, so mine is cleared each boot, like it or not.
>> >(I've gotten out of the habit of using /tmp for things which are
>> >not temporary.)
>>
>> All well and fine, but I _never_ log in nor use root account
>> (unless in emergencies and/or slackware updates).  I use sudoers.
>
> Hmmm, I am failing to see the relevance of your reply. Perhaps you
> were thinking that .bashrc is only used for login shells? No, it's
> for interactive NON-login shells, per bash(1) manual, INVOCATION:
>
> "When an interactive shell that is not a login shell is started, bash
> reads and executes commands from ~/.bashrc, if that file exists."

OK, sorry was tired when I read this last night.

I just tested with this:

OUTPUT=$PWD ./foo.Slackbuild

and package is created in the directory I am in.  Thanks, that works a 
treat!

Nick
-- 
FSF Associate Member 5508
http://linicks.net/


More information about the SlackBuilds-users mailing list