Udiff install-sfw
--- /export/home/steve/work.tclx/usr/webrev/src/lib/tclx/install-sfw-   Wed Jan 23 03:05:18 2008
+++ install-sfw Mon Jan 14 02:05:33 2008
@@ -21,38 +21,36 @@
 #
 
 
 #!/bin/sh
 #
-# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
+# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-#ident  "@(#)install-sfw       1.7     05/11/07 SMI"
 
-VERS=tclx8.3.5
+VERS=tclx8.4
 PREFIX=${ROOT}/opt/sfw
 BINDIR=${PREFIX}/bin
-LIBDIR=${PREFIX}/lib
-TCLXDIR=${PREFIX}/lib/tclX8.3
-TCLXHDIR=${PREFIX}/lib/tclX8.3/help
-TCLXHTCLDIR=${PREFIX}/lib/tclX8.3/help/tcl
-TKXDIR=${PREFIX}/lib/tkX8.3
-TKXHDIR=${PREFIX}/lib/tkX8.3/help
-TKXHTKDIR=${PREFIX}/lib/tkX8.3/help/tk
+TCLXDIR=${PREFIX}/lib/tclx8.4
+LIBDIR=${TCLXDIR}
+TCLXHDIR=${PREFIX}/lib/tclx8.4/help
+TCLXHTCLDIR=${PREFIX}/lib/tclx8.4/help/tcl
 INCDIR=${PREFIX}/include
 MANNDIR=${PREFIX}/man/mann
 MAN3DIR=${PREFIX}/man/man3
 
-cd ${VERS}/unix
+cd ${VERS}
 
-/usr/sfw/bin/gmake INSTALL_ROOT=${ROOT} INSTALL="/usr/ucb/install -c" install
+/usr/sfw/bin/gmake \
+       DESTDIR=${ROOT} \
+       INSTALL="/usr/ucb/install -c" \
+       install
 
 #
 #  Set ownership and permissions for all directories (just in case).
 #
-for i in ${TCLXDIR} ${TCLXHDIR} ${TCLXHTCLDIR} \
-        ${TKXDIR} ${TKXHDIR} ${TKXHTKDIR}
+for i in ${TCLXDIR} ${TCLXHDIR} ${TCLXHTCLDIR}
 do
        chmod 0755 ${i}
 done
 
 for i in ${MANNDIR} ${MAN3DIR}
@@ -60,32 +58,25 @@
        chmod 0755 ${i}
 done
 
 for i in intro strings events variables control status time \
                 files lists intl processes math sockets libraries \
-                debug signals filescan keyedlists tclshell
+                debug signals filescan keyedlists
 do
        chmod 0755 ${TCLXHTCLDIR}/${i}
 done
 
-for i in control images widgets
-do
-       chmod 0755 ${TKXHTKDIR}/${i}
-done
-
 #
 #  Set ownership and permissions for all files (just in case).
 #
 
-for i in tcl wishx tclhelp
+for i in pkgIndex.tcl tclx.tcl autoload.tcl help.tcl \
+       fmath.tcl pushd.tcl tcllib.tcl compat.tcl events.tcl \
+       forfile.tcl convlib.tcl edprocs.tcl profrep.tcl \
+       setfuncs.tcl showproc.tcl buildhelp.tcl globrecur.tcl \
+       stringfile.tcl arrayprocs.tcl
 do
-       chmod 0755 ${BINDIR}/${i}
-done
-
-for i in pkgIndex.tcl tclx.tcl tcl.tlib tcl.tndx \
-                buildidx.tcl autoload.tcl tclXAppInit.c
-do
        chmod 0444 ${TCLXDIR}/${i}
 done
 
 for i in syntax tclsh keyedlists
 do
@@ -110,11 +101,11 @@
        chmod 0444 ${TCLXHTCLDIR}/variables/${i}
 done
 
 for i in break case catch continue dde error eval exit for foreach \
                 if interp proc rename return safe source switch uplevel while \
-                commandloop loop try_eval tclx_errorHandler
+                commandloop loop try_eval
 do
        chmod 0444 ${TCLXHTCLDIR}/control/${i}
 done
 
 for i in cd history info pwd dirs infox popd pushd showproc id umask
@@ -138,11 +129,11 @@
 done
 
 for i in concat join lappend lindex linsert list llength \
                 lrange lreplace lsearch lsort split intersect intersect3 \
                 lassign lcontain lempty lmatch lrmdups lvarcat lvarpop \
-                lvarpush union
+                lvarpush union lset
 do
        chmod 0444 ${TCLXHTCLDIR}/lists/${i}
 done
 
 for i in encoding msgcat catopen catgets catclose
@@ -190,78 +181,32 @@
 for i in keyldel keylget keylkeys keylset
 do
        chmod 0444 ${TCLXHTCLDIR}/keyedlists/${i}
 done
 
-for i in intro variables
-do
-       chmod 0444 ${TCLXHTCLDIR}/tclshell/${i}
-done
-
 for i in TclX.brf help
 do
        chmod 0444 ${TCLXHDIR}/${i}
 done
 
-for i in pkgIndex.tcl tkx.tcl tkXAppInit.c
+for i in pkgIndex.tcl tclx.tcl autoload.tcl help.tcl \
+       fmath.tcl pushd.tcl tcllib.tcl compat.tcl events.tcl \
+       forfile.tcl convlib.tcl edprocs.tcl profrep.tcl \
+       setfuncs.tcl showproc.tcl buildhelp.tcl globrecur.tcl \
+       stringfile.tcl arrayprocs.tcl
 do
-       chmod 0444 ${TKXDIR}/${i}
-done
-
-for i in Tk.brf
-do
-       chmod 0444 ${TKXHDIR}/${i}
-done
-
-for i in bell bind bindtags clipboard destroy event focus \
-                tk_focusNext font grab grid loadTk lower option pack \
-                pack-old tk_setPalette tk_bisque place raise selection \
-                send tk tkerror tkvars tkwait winfo wm
-do
-       chmod 0444 ${TKXHTKDIR}/control/${i}
-done
-
-for i in bitmap image photo
-do
-       chmod 0444 ${TKXHTKDIR}/images/${i}
-done
-
-for i in button canvas checkbutton tk_chooseColor tk_dialog \
-                entry frame tk_getOpenFile label listbox menu tk_menuBar \
-                menubutton message tk_messageBox tk_optionMenu options \
-                tk_popup radiobutton scale scrollbar text toplevel
-do
-       chmod 0444 ${TKXHTKDIR}/widgets/${i}
-done
-
-for i in libtclx8.3.a tclxConfig.sh libtkx8.3.a tkxConfig.sh
-do
        chmod 0444 ${LIBDIR}/${i}
 done
 
 
-for i in libtclx8.3.so libtkx8.3.so
-do
-       chmod 0755 ${LIBDIR}/${i}
-done
-
-
 for i in tclExtend.h
 do
        chmod 0444 ${INCDIR}/${i}
 done
 
-cd ../doc
+cd doc
 
-for i in ckfree.n ckalloc.n memoryx.n Tcl_InitMemory.n Tcl_DisplayMemory.n Tcl_ValidateAllMemory.n
-
-do
-
-rm -rf ${MANNDIR}/${i}
-
-done
-
 for i in TkX_Main.3 TclX_Main.3 Tclx_Init.3 Tclxcmd_Init.3 Tcl_HandleFree.3 Tcl_HandleWalk.3 \
          Tcl_HandleAlloc.3 Tcl_HandleXlate.3 Tcl_HandleTblInit.3 Tcl_HandleTblRelease.3 Tcl_HandleTblUseCount.3 \
          TclX_KeyedListGet.3 TclX_KeyedListSet.3 TclX_NewKeyedListObj.3 TclX_KeyedListDelete.3 TclX_KeyedListGetKeys.3
 
 do
@@ -268,17 +213,10 @@
 
 rm -rf ${MAN3DIR}/${i}
 
 done
 
-cp -r Memory.n ${MANNDIR}/ckfree.n
-cp -r Memory.n ${MANNDIR}/ckalloc.n
-cp -r Memory.n ${MANNDIR}/memoryx.n
-cp -r Memory.n ${MANNDIR}/Tcl_InitMemory.n
-cp -r Memory.n ${MANNDIR}/Tcl_DisplayMemory.n
-cp -r Memory.n ${MANNDIR}/Tcl_ValidateAllMemory.n
-
 cp -r TclXInit.3 ${MAN3DIR}/TkX_Main.3
 cp -r TclXInit.3 ${MAN3DIR}/TclX_Main.3
 cp -r TclXInit.3 ${MAN3DIR}/Tclx_Init.3
 cp -r TclXInit.3 ${MAN3DIR}/Tclxcmd_Init.3
 
@@ -296,12 +234,11 @@
 cp -r Keylist.3 ${MAN3DIR}/TclX_KeyedListDelete.3
 cp -r Keylist.3 ${MAN3DIR}/TclX_KeyedListGetKeys.3
 
 cd ${MANNDIR}
 
-for i in ckalloc.n ckfree.n memoryx.n Tcl_DisplayMemory.n \
-                Tcl_InitMemory.n Tcl_ValidateAllMemory.n TclX.n
+for i in TclX.n
 do
        chmod 0444 ${i}
 done
 
 cd ${MAN3DIR}
@@ -308,12 +245,12 @@
 
 for i in Tcl_HandleAlloc.3 Tcl_HandleFree.3 Tcl_HandleTblInit.3 \
                 Tcl_HandleTblRelease.3 Tcl_HandleTblUseCount.3 Tcl_HandleWalk.3 \
                 Tcl_HandleXlate.3 TclX_NewKeyedListObj.3 TclX_KeyedListGet.3 \
                 TclX_KeyedListSet.3 TclX_KeyedListDelete.3 TclX_KeyedListGetKeys.3 \
-                TclCommandWriting.3 Tclx_Init.3 Tclxcmd_Init.3 TclX_Main.3 \
-                Tkx_Init.3 TkX_Main.3 
+               Tclx_Init.3 Tclxcmd_Init.3 TclX_Main.3 \
+               TkX_Main.3
 do
        chmod 0444 ${i}
 done
 
 exit 0