Skip to content

Commit 8e947cc

Browse files
committed
2008-07-25
1 parent 2a45905 commit 8e947cc

File tree

265 files changed

+14906
-5286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+14906
-5286
lines changed

bin/package

Lines changed: 47 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ all_types='*.*|sun4' # all but sun4 match *.*
4444
case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in
4545
0123) USAGE=$'
4646
[-?
47-
@(#)$Id: package (AT&T Research) 2008-01-31 $
47+
@(#)$Id: package (AT&T Research) 2008-06-24 $
4848
]'$USAGE_LICENSE$'
4949
[+NAME?package - source and binary package control]
5050
[+DESCRIPTION?The \bpackage\b command controls source and binary
@@ -2778,6 +2778,8 @@ cat $INITROOT/$i.sh
27782778
0) executable "$SHELL" || SHELL=
27792779
case $SHELL in
27802780
?*) case `$SHELL -c 'echo $KSH_VERSION' 2>&1` in
2781+
Version*????-??-??)
2782+
;;
27812783
?*) : any output here means $SHELL is not reliable for scripting
27822784
SHELL=
27832785
;;
@@ -2792,7 +2794,8 @@ cat $INITROOT/$i.sh
27922794
for i in ksh sh bash
27932795
do if onpath $i
27942796
then case `$_onpath_ -c 'echo $KSH_VERSION' 2>&1` in
2795-
'') SHELL=$_onpath_
2797+
Version*????-??-??|'')
2798+
SHELL=$_onpath_
27962799
break
27972800
;;
27982801
esac
@@ -4072,6 +4075,27 @@ admin) while test ! -f $admin_db
40724075
;;
40734076
esac
40744077
name=$host
4078+
eval x='$'${host}_index
4079+
eval ${host}_index=1
4080+
case $x in
4081+
1) i=0
4082+
while :
4083+
do case $i in
4084+
$index) h=''
4085+
break
4086+
;;
4087+
esac
4088+
i=`expr $i + 1`
4089+
eval h='$'${admin_host}${i}_name
4090+
case $h in
4091+
$host) host=${admin_host}${i}
4092+
eval user='$'${host}_user root='$'${host}_rsh:$host:'$'${host}_root
4093+
break
4094+
;;
4095+
esac
4096+
done
4097+
;;
4098+
esac
40754099
case $root in
40764100
*:$name:*)root=`echo '' $root | sed 's,:.*,:,'` ;;
40774101
esac
@@ -4129,8 +4153,9 @@ admin) while test ! -f $admin_db
41294153
;;
41304154
*) rsh=$1 sync=$2 root=$3
41314155
case $sync in
4132-
'') ;;
4133-
*) case " $sync_hosts " in
4156+
${admin_host}*)
4157+
;;
4158+
?*) case " $sync_hosts " in
41344159
*" $sync ${admin_host}"*)
41354160
set '' '' $sync_hosts
41364161
while :
@@ -4157,9 +4182,6 @@ admin) while test ! -f $admin_db
41574182
*) sync=
41584183
;;
41594184
esac
4160-
case $sync in
4161-
'') local_types="$local_types $type" ;;
4162-
esac
41634185
case $name in
41644186
$admin_on)
41654187
keep=1
@@ -4179,6 +4201,9 @@ admin) while test ! -f $admin_db
41794201
;;
41804202
esac
41814203
case $sync in
4204+
'') local_types="$local_types $type" ;;
4205+
esac
4206+
case $sync in
41824207
$host) remote_hosts="$remote_hosts $host"
41834208
;;
41844209
?*) eval ${sync}_share=\"\$${sync}_share $host\"
@@ -4300,11 +4325,15 @@ admin) while test ! -f $admin_db
43004325
esac
43014326
;;
43024327
esac
4303-
eval log='$'${host}_log
4328+
eval main_log='$'${host}_log
43044329
main=
43054330
share_keep=
43064331
for i in $host $share
4307-
do eval n='$'${i}_name t='$'${i}_type q='$'${i}_sync s='$'${i}_snarf l='$'${i}_log
4332+
do eval n='$'${i}_name t='$'${i}_type q='$'${i}_sync s='$'${i}_snarf l='$'${i}_log k='$'${i}_keep
4333+
case $main:$k in
4334+
:*) ;;
4335+
*:0) continue ;;
4336+
esac
43084337
case $admin_binary in
43094338
1) case $s:$q in
43104339
:?*) continue ;;
@@ -4366,7 +4395,7 @@ admin) while test ! -f $admin_db
43664395
esac
43674396
;;
43684397
esac
4369-
} < /dev/null > $admin_log/$log 2>&1 &
4398+
} < /dev/null > $admin_log/$main_log 2>&1 &
43704399
pids="$pids $!"
43714400
;;
43724401
*) echo "{"
@@ -4403,12 +4432,12 @@ admin) while test ! -f $admin_db
44034432
esac
44044433
;;
44054434
esac
4406-
echo "} < /dev/null > $admin_log/$log 2>&1 &"
4435+
echo "} < /dev/null > $admin_log/$main_log 2>&1 &"
44074436
;;
44084437
esac
44094438
eval name='$'${main}_name
44104439
hosts="$hosts $name"
4411-
logs="$logs $log"
4440+
logs="$logs $main_log"
44124441
for share in $share
44134442
do eval keep=\$${share}_keep
44144443
case $keep in
@@ -5065,8 +5094,8 @@ make|view)
50655094
b=$INSTALLROOT/bin/$c
50665095
t=$INSTALLROOT/lib/package/gen/$c.tim
50675096
intercept=0
5068-
for t in $h
5069-
do s=$INITROOT/$c.$t
5097+
for a in $h
5098+
do s=$INITROOT/$c.$a
50705099
test -x "$s" || continue
50715100
if cmp -s "$s" "$b" >/dev/null 2>&1
50725101
then intercept=1
@@ -6124,6 +6153,10 @@ test) requirements source $package
61246153

61256154
$make cd $INSTALLROOT/src
61266155

6156+
# disable core dumps (could be disasterous over nfs)
6157+
6158+
(ulimit -c 0) > /dev/null 2>&1 && ulimit -c 0
6159+
61276160
# do the tests
61286161

61296162
eval capture \$MAKE \$makeflags \$noexec recurse test \$target \$nmakesep \$package $assign

lib/package/INIT.README

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ All recorded changes follow.
9292

9393
:::::::: INIT ::::::::
9494

95+
08-06-24 package.sh: fix $INSTALLROOT/bin/cc intercept time stamp file typo
96+
08-06-20 TEST.mk: make the localyunit before *.rt => *.tst -- doh
97+
08-06-20 mktest.sh: prepend $PWD onto PATH for local units -- doh^2
98+
08-06-11 regress.sh: fix bug that skipped the last test
99+
08-05-20 regress.sh: add --local to put *.tmp dir in local fs
100+
08-05-05 regerss.sh: add IF command ... ELIF command ... ELSE ... FI
101+
08-05-01 package.sh: package test => ulimit -c 0
102+
08-04-28 regress.sh: fix EXPORT quoting
103+
08-04-28 regress.sh: fix UNIT set check args too
104+
08-04-24 rt.sh: exit code > 256 => signal termination
105+
08-04-10 C+probe: change probe_so order to check .so last (macos ld workaround)
106+
08-04-01 package.sh: handle multiple admin HOSTTYPEs per HOST
107+
08-03-28 C+probe: add C++ #include <iostream> (no extension) dir probes
108+
08-03-17 regress.sh: fix trap on EXIT, add terminated note to final tally
109+
08-02-28 make.probe: fix probe_warn to include ld!
95110
08-02-02 make.probe: add CC.RUNPATH to match default -L order
96111
08-01-31 package.sh: check lib64 for LD_LIBRARY_PATH
97112
08-01-31 iffe.sh: tweak ancient /bin/sh workarounds

lib/package/INIT.html

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@
4848
<P><HR><CENTER><FONT color=red><FONT face=courier><H3><A name="INIT changes">INIT changes</A></H3></FONT></FONT></CENTER>
4949
<PRE>
5050

51+
08-06-24 package.sh: fix $INSTALLROOT/bin/cc intercept time stamp file typo
52+
08-06-20 TEST.mk: make the localyunit before *.rt =&gt; *.tst -- doh
53+
08-06-20 mktest.sh: prepend $PWD onto PATH for local units -- doh^2
54+
08-06-11 regress.sh: fix bug that skipped the last test
55+
08-05-20 regress.sh: add --local to put *.tmp dir in local fs
56+
08-05-05 regerss.sh: add IF command ... ELIF command ... ELSE ... FI
57+
08-05-01 package.sh: package test =&gt; ulimit -c 0
58+
08-04-28 regress.sh: fix EXPORT quoting
59+
08-04-28 regress.sh: fix UNIT set check args too
60+
08-04-24 rt.sh: exit code &gt; 256 =&gt; signal termination
61+
08-04-10 C+probe: change probe_so order to check .so last (macos ld workaround)
62+
08-04-01 package.sh: handle multiple admin HOSTTYPEs per HOST
63+
08-03-28 C+probe: add C++ #include &lt;iostream&gt; (no extension) dir probes
64+
08-03-17 regress.sh: fix trap on EXIT, add terminated note to final tally
65+
08-02-28 make.probe: fix probe_warn to include ld!
5166
08-02-02 make.probe: add CC.RUNPATH to match default -L order
5267
08-01-31 package.sh: check lib64 for LD_LIBRARY_PATH
5368
08-01-31 iffe.sh: tweak ancient /bin/sh workarounds
@@ -837,7 +852,7 @@
837852
<TR>
838853
<TD align=left></TD>
839854
<TD align=center></TD>
840-
<TD align=right>February 06, 2008</TD>
855+
<TD align=right>July 26, 2008</TD>
841856
</TR>
842857
</TABLE>
843858
<P>

lib/package/INIT.ver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
INIT 2008-02-02 2008-02-02 1
1+
INIT 2008-07-25 2008-07-25 1

0 commit comments

Comments
 (0)