]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2540] bootstrap script needs to 'touch' files in finer-grained groups
authorHarlan Stenn <stenn@ntp.org>
Mon, 20 Jan 2014 02:39:11 +0000 (02:39 +0000)
committerHarlan Stenn <stenn@ntp.org>
Mon, 20 Jan 2014 02:39:11 +0000 (02:39 +0000)
bk: 52dc8c4fSkVoT_-RtsBSDVcBT9brmQ

ChangeLog
bootstrap

index 7511ab37796fa7f4a0304b30ae3ddfdcffe85538..63ead46ccf17d787dadf8c45a11afcdc729e42ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 2540] bootstrap script needs to 'touch' files in finer-grained groups.
 (4.2.7p411) 2014/01/12 Released by Harlan Stenn <stenn@ntp.org>
 * [Bug 2532] Note in ntpdc docs that "enable pps" only works on older ntpd.
 (4.2.7p410) 2014/01/08 Released by Harlan Stenn <stenn@ntp.org>
index 142038e7d81789647b692779f0c76bad1f27aa86..359105a8a267f1fe787d0d5c8317a8de209fa3ac 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -83,16 +83,20 @@ prog_opt_files=`grep -l '^prog.name' $def_files`
 
 # touch the stuff generated by the opt files
 
+l=
+lh=
+li=
 for f in ${prog_opt_files}
 do
     f=`echo $f | sed -e 's/-opts.def//' -e 's/.def//'`
-    l=
-    lh=
     dfi=`dirname $f`
     dfi=`echo $dfi | sed -e 's:$:/invoke-*:'`
     for i in `ls -1 $f* $dfi`
     do
        case "$i" in
+        *invoke-*)
+           li="$li $i"
+           ;;
         *.c|*.h|*.[1-9]*man|*.[1-9]*mdoc|*.man.in|*.mdoc.in|*-opts|*.texi|*.menu)
            l="$l $i"
            ;;
@@ -101,12 +105,27 @@ do
            ;;
        esac
     done
-    case "$l:$lh" in
-     ':') ;;
-     *) touch $l $lh
-       ;;
-    esac
 done
+case "$l" in
+ '') ;;
+ *) touch $l
+    echo "Touching <$l>"
+    sleep 1
+    ;;
+esac
+case "$li" in
+ '') ;;
+ *) touch $li
+    echo "Touching <$li>"
+    sleep 1
+    ;;
+esac
+case "$lh" in
+ '') ;;
+ *) touch $lh
+    echo "Touching <$lh>"
+    ;;
+esac
 
 ## EOAutoGen stuff