develooper Front page | perl.perl5.porters | Postings from September 2012

Generating config_h.SH from Porting/

Thread Next
Sawyer X
September 21, 2012 07:37
Generating config_h.SH from Porting/
Message ID:
<html style="direction: ltr;">

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="latin-charset" bgcolor="#FFFFFF"
    The script "Porting/" generates a shell script called
    "config_h.SH". When running this, it had repeated some lines making
    them duplicated. I'm not sure whether I'm using the script
    correctly, or whether people aren't actually using the script. Third
    option: using the script *and* editing the generated output
    The Git history for both show that the last time anyone edited the
    Perl script was 2010 (xdg -x'ing it, then rafl +x'ing it), and 2007
    before that (h.m.brand). The last time anyone edited the shell
    script was 2012 in a commit by Andy Dougherty ("Fix alignment for
    darwin with -Dusemorebits") which introduced changes to "Configure"
    and then "config_h.SH" was used to generate a new "uconfig.h" file.
    I don't know if Andy had generated the shell script at 2012 using
    the script or edited it directly. There's no mention of it.<br>
    What's unclear to me that I'd like to find out:<br>
    1. does anyone actually use Porting/ to generate
    config_h.SH or do you edit config_h.SH directly?<br>
    2. if the Perl script is used, does that mean I'm using it
    incorrectly because it creates duplicate lines?<br>
    3. if this is a problem with the script, should the script be fixed
    or is it unnecessary nowadays? That depends on clause no. 1
    Hopefully once that's sorted out, I'll be able to make my first
    contribution to #p5p. :)<br>
    I'm including a diff-style output of the lines duplicated, as an
    (notice "THIS IS A GENERATED FILE" block and "case $CONFIG_H
    [...]already-done)" case clause)<br>
    <pre><span class="gh">diff --git a/config_h.SH b/config_h.SH</span>
<a name="l-2"></a><span class="gh">index 3267fee..7a37301 100755</span>
<a name="l-3"></a><span class="gd">--- a/config_h.SH</span>
<a name="l-4"></a><span class="gi">+++ b/config_h.SH</span>
<a name="l-5"></a><span class="gu">@@ -3,6 +3,11 @@</span>
<a name="l-6"></a> #
<a name="l-7"></a> # See Porting/
<a name="l-8"></a> 
<a name="l-9"></a><span class="gi">+# THIS IS A GENERATED FILE</span>
<a name="l-10"></a><span class="gi">+# DO NOT HAND-EDIT</span>
<a name="l-11"></a><span class="gi">+#</span>
<a name="l-12"></a><span class="gi">+# See Porting/</span>
<a name="l-13"></a><span class="gi">+</span>
<a name="l-14"></a> : Set up for generating config_h.SH
<a name="l-15"></a> case "$CONFIG_SH" in
<a name="l-16"></a> '');;
<a name="l-17"></a><span class="gu">@@ -29,6 +34,9 @@ esac</span>
<a name="l-18"></a> case "$CONFIG_H" in
<a name="l-19"></a> already-done) echo "Not re-extracting config.h" ;;
<a name="l-20"></a> *)
<a name="l-21"></a><span class="gi">+case "$CONFIG_H" in</span>
<a name="l-22"></a><span class="gi">+already-done) echo "Not re-extracting config.h" ;;</span></pre>
    Thank you,<br>

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About