This question about Installation of Foswiki: Answered

Why does pseudo-install return 1 for success?

Hi,

I am trying to come to grips with the svn install for developers

As usual, I set up my commands in make. Saves a lot of retyping and mistakes.

So I did a cd core; perl pseudo-install.pl -A as recommended in HowToStartExtensionDevelopmentInSubversion

And make tells me make: *** [configure] Error 1 as if something failed.

On inspection it turns out that pseudo-install returns 1 on success. Is there any reason? Or just perl habit?

I have changed the exit code to 0, to suit my taste. But I do wonder "why the 1"?

regards....


sounds like a pretty good question smile - maybe Crawford has a reason?

-- SvenDowideit - 21 Feb 2009

I assume this relates to the piece of code:

   868 SvenDowideit if ($autoconf) {
   868 SvenDowideit     Autoconf();
  1070 OlivierRaginel     exit 1 unless ( scalar(@ARGV) );
   868 SvenDowideit }
Guess you'll have to ask Olivier.

-- CrawfordCurrie - 22 Feb 2009

I'm afraid I only ran perltidy on it, cf distro:f583af90a143

It's always been like that since Sven added this feature in distro:e6742f038d10

Therefore, I blame the convict smile

-- OlivierRaginel - 22 Feb 2009

fixed in Tasks.Item1120

-- WillNorris - 22 Feb 2009

QuestionForm edit

Subject Installation of Foswiki
Extension
Version
Status Answered
Topic revision: r6 - 09 Sep 2009, AndrewJones - This page was cached on 15 Aug 2019 - 16:31.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy