[maemo-developers] [maemo-developers] Re: Proper documentation (was Re: HildonProgram input to gtk_widget_show()?)

From: Marius Gedminas marius at pov.lt
Date: Wed Nov 29 22:39:06 EET 2006
On Wed, Nov 29, 2006 at 07:46:51PM +0000, Danny Milosavljevic wrote:
> Is there a way to do something to the tone of like:
> 
> (outside of scratchbox)
> cd scratchbox/home/user/source/foobar/source/
> scratchbox-batch SDK_ARM make

I want this too!

> I.e. I'd like to avoid having to do manual mode changes with
> "/scratchbox/login" / "exit" all the time just to issue "make". And
> "/scratchbox/login" doesn't take the working directory you were in (before
> calling it) into account.

Reading /scratchbox/login: if you give it -d dir, then it chdirs there.
Hey, and you can give it a command to run--this actually works!

  /scratchbox/login sbox-config -st SDK_ARM
  /scratchbox/login -d nflick dpkg-buildpackage -rfakeroot

where "nflick" is relative to /scratchbox/users/$USER/home/$USER

> Hmm, I should just check what "/scratchbox/login" does and hack something
> up myself... after all, this might be some weird special thing that
> interests only me, again ;)

Apparently you don't need to.

> [and "/scratchbox/" is a bad place to put scratchbox to, am I the only one
> to have almost all the harddisk space on "/home/" and almost none on "/" ?]

I used to do that, but then I've learned and now I just put everything
into one big partition.

And yes, /scratchbox/ is a bad place.  It does not follow the Filesystem
Hierarchy Standard.  It should be /opt/scratchbox.  And the Debian
packages should copy/symlink the /opt/scratchbox/login script to
/usr/bin/sbox or something.

Marius Gedminas
-- 
This message has been ROT-13 encrypted twice for higher security.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20061129/c094faad/attachment.pgp 
More information about the maemo-developers mailing list