git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH resend 1/2] Make git-svn tests behave better on OS X

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 21, 2008, 07:04 UTC
Message-ID
<7vod98r210.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080321065824.GB28144@muzzle>
Eric Wong <normalperson@yhbt.net> writes:
Show 15 quoted lines
> Kevin Ballard <kevin@sb.org> wrote:
> ...
> I seem to recall seeing a RHEL or CentOS machine using /usr/sbin/httpd,
> somewhere, too.  Any non-Debian users care to comment/add more paths?
> ...
>> -SVN_HTTPD_MODULE_PATH=${SVN_HTTPD_MODULE_PATH-'/usr/lib/apache2/modules'}
>> -SVN_HTTPD_PATH=${SVN_HTTPD_PATH-'/usr/sbin/apache2'}
>> +if test `uname -s` = Darwin
>> +then
>> +	SVN_HTTPD_MODULE_PATH=${SVN_HTTPD_MODULE_PATH-'/usr/libexec/apache2'}
>> +	SVN_HTTPD_PATH=${SVN_HTTPD_PATH-'/usr/sbin/httpd'}
>> +else
>> +	SVN_HTTPD_MODULE_PATH=${SVN_HTTPD_MODULE_PATH-'/usr/lib/apache2/modules'}
>> +	SVN_HTTPD_PATH=${SVN_HTTPD_PATH-'/usr/sbin/apache2'}
>> +fi
I really hate this patch.
Why do we even _care_ about uname?
Wouldn't something like this be a lot easier to maintain in the longer run?
    for d in \
            "$SVN_HTTPD_MODULE_PATH" \
            /usr/lib/apache2/modules \
            /usr/libexec/apache2 \
    ; do
            if test -d "$d"
            then
                    SVN_HTTPD_MODULE_PATH="$d"
                    break
            fi
    done
Previous: Eric WongNext: Kevin Ballard
Message 6 of 8 in “Make git-svn tests behave better on OS X”
  1. 1/2 Make git-svn tests behave better on OS XKevin Ballard, Mar 20, 2008
  2. 2/2 Don't try and percent-escape existing percent escapes in git-svn URIsKevin Ballard, Mar 20, 2008
  3. Eric WongMar 21, 2008
  4. Junio C HamanoMar 21, 2008
  5. Eric WongMar 21, 2008
  6. Junio C HamanoMar 21, 2008
  7. Make git-svn tests behave better on OS XKevin Ballard, Mar 21, 2008
  8. Eric WongMar 22, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.