Re: Auto BackPort Script

2013-01-15 Thread Guillermo R. Palavecino
On Mon, 14 Jan 2013 08:36:51 +0100
Alexander Burger a...@software-lab.de wrote:
 The normal way of course is:
 
(de callCheck (Ret . @)
   (when (pass call)
  Ret ) )
 
 This avoids 'cons'ing a list (explicitly with 'mapcar' or implicitly
 with 'rest').

It's all right. I did the mapcar eval thing due to being a bit out of
practice.
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Auto BackPort Script

2013-01-13 Thread Alexander Burger
Hi Guillermo,

 Hi all. This is a script I wrote to auto-build .deb packages with the
 latest sources, or a specific (current) repo version. Haven't tested it

Nice! Many thanks!


One question: Is there a special reason for using undevaluated args
followed by mapcar eval in

   (de callCheck (Ret . Call)
  (when (apply call (mapcar eval Call))
 Ret ) )

or could we simply go the normal way?

   (de callCheck (Ret . @)
  (when (apply call (rest))
 Ret ) )

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: Auto BackPort Script

2013-01-13 Thread Alexander Burger
On Mon, Jan 14, 2013 at 08:15:46AM +0100, Alexander Burger wrote:
 or could we simply go the normal way?
 
(de callCheck (Ret . @)
   (when (apply call (rest))
  Ret ) )

Aaargh, now I've got confused myself ...


The normal way of course is:

   (de callCheck (Ret . @)
  (when (pass call)
 Ret ) )

This avoids 'cons'ing a list (explicitly with 'mapcar' or implicitly
with 'rest').

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Auto BackPort Script

2013-01-12 Thread Guillermo R. Palavecino
Hi all. This is a script I wrote to auto-build .deb packages with the
latest sources, or a specific (current) repo version. Haven't tested it
thoroughly. So far it works just fine here. It lacks some things like
dependency checking/installing and a few tests for things that could
go wrong here and there. I won't go out of my way to test it on other
boxes/systems/settings since it's a minor script (and it's original
purpose was to make life simpler for those trying to figure out how to
build a .deb package out of the hg sources), but if you find any
problem with it I'll fix it right away. Also, I'm open to suggestions
and improvements.

How to use:
  % cd picolisp-sources-dir   # can be a repo or just an unpacked tgz
  % pil auto-backport.l
  if everything went well...
  % sudo dpkg -i picolisp_VERSION_ARCH.deb
  where VERSION = sources_version + repo_local_rev_num (if any)

That'd be all. Hope it's useful.


auto-backport.l
Description: Binary data