From: Harlan Stenn Date: Mon, 20 Jan 2014 02:39:11 +0000 (+0000) Subject: [Bug 2540] bootstrap script needs to 'touch' files in finer-grained groups X-Git-Tag: NTP_4_2_7P412~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9efd3df71841a54160b90e8ce67235676a17caf7;p=thirdparty%2Fntp.git [Bug 2540] bootstrap script needs to 'touch' files in finer-grained groups bk: 52dc8c4fSkVoT_-RtsBSDVcBT9brmQ --- diff --git a/ChangeLog b/ChangeLog index 7511ab377..63ead46cc 100644 --- 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 * [Bug 2532] Note in ntpdc docs that "enable pps" only works on older ntpd. (4.2.7p410) 2014/01/08 Released by Harlan Stenn diff --git a/bootstrap b/bootstrap index 142038e7d..359105a8a 100755 --- 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