#!/bin/ksh
awk '{if ($1 == "install_target" && $3 != "") print $3}' \
- $2/databases/$1.udb >$1.list
+ "$2/databases/$1.udb" >"$1.list"
XCOMM ############################################
RemoveDemoFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
while read SRC
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-DEMOS
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveFontFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-FONTS
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveHelpFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-HELP-C
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
XCOMM
XCOMM set up symlinks that point into the $CDE_TOP tree
XCOMM
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveHelpFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF1
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-HELP
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveHelpRunFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-HELP-RUN
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveIconFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-ICONS
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveIncludeFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-INC
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveManFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-DEMOS
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveManDevFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- if [ -L $SRC -a -d $SRC ]
+ if [ -L "$SRC" ] && [ -d "$SRC" ]
then
- results=`ls $SRC`
+ results=$(find -name "$SRC")
if [ ! -s "$SRC" ]
then
- rm -f $SRC
+ rm -f "$SRC"
else
continue
fi
else
- rm -f $SRC
+ rm -f "$SRC"
fi
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-MAN-DEV
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemoveMsgCatFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-MSG-C
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
RemovePrgFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM ##########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-PRG
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
XCOMM ############################################
RemoveShlibFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
{
echo "Status mode owner group filename"
echo "-----------------------------------------"
-XCOMM exists correct correct correct /usr/dt/foo1
-XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
+XCOMM exists correct correct correct /usr/dt/foo1
+XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "verify.func"
done <<-EOF
XCOMM #########################################################################
XCOMM
-XCOMM Main Body
+XCOMM Main Body
XCOMM
XCOMM #########################################################################
-PRODUCT=CDE
-FILESET=CDE-SHLIBS
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
XCOMM #######
#define HASH #
-PRODUCT=CDE
-FILESET=CDE-MIN
-DO_CONFIGURATION=""
retval=0
FixEtcServices()
RemoveMinFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "../verify.func"
done <<-EOF
XCOMM
XCOMM ###############################################################
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "configure" ]
then
#define HASH #
#define STAR *
-PRODUCT=CDE
-FILESET=CDE-RUN
-DO_CONFIGURATION=""
retval=0
CreateAppConfigDirectory()
HASH all of its subdirectories
HASH
- cd $DT_CONFIG_TOP
- if [ ! -d $APPCONFIG ]
+ cd "$DT_CONFIG_TOP" || exit
+ if [ ! -d "$APPCONFIG" ]
then
- mkdir $APPCONFIG
+ mkdir "$APPCONFIG"
fi
- cd $APPCONFIG
+ cd "$APPCONFIG" || exit
for i in $APPCONFIG_DIRS
do
- if [ ! -d $i ]
+ (
+ if [ ! -d "$i" ]
then
- mkdir $i
+ mkdir "$i"
fi
- cd $i
+ cd "$i" || exit
HASH
HASH for each locale
HASH
for j in $DT_TOP/$APPCONFIG/$i/STAR
do
- if [ ! -d `basename $j` ]
+ if [ ! -d "$(basename "$j")" ]
then
- mkdir `basename $j`
+ mkdir "$(basename "$j")"
fi
done
- cd ..
+ )
done
}
doDttermTerminfo()
{
- if [ -f $DT_TOP/config/dtterm.ti ]
+ if [ -f "$DT_TOP/config/dtterm.ti" ]
then
- tic $DT_TOP/config/dtterm.ti
+ tic "$DT_TOP/config/dtterm.ti"
if [ -f /usr/share/lib/terminfo/d/dtterm ]
then
chown bin /usr/share/lib/terminfo/d/dtterm
chmod 644 /usr/share/terminfo/d/dtterm
fi
fi
- if [ ! -f /usr/share/lib/terminfo/d/dtterm -a ! -f /usr/share/terminfo/d/dtterm ]
+ if [ ! -f /usr/share/lib/terminfo/d/dtterm ] && [ ! -f /usr/share/terminfo/d/dtterm ]
then
echo "Unable to compile $DT_TOP/config/dtterm.ti"
fi
RemoveRunFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
PrintUsage()
{
- echo "Usage:" $0 "[OPERATION]"
+ echo "Usage:" "$0" "[OPERATION]"
echo ""
echo "Operations:"
echo " -e configure"
XCOMM
XCOMM ##########################################################################
-PRODUCT=CDE
-FILESET=CDE-RUN
-
DT_TOP=CDE_INSTALLATION_TOP
DT_CONFIG_TOP=CDE_CONFIGURATION_TOP
DT_TEMP_TOP=CDE_LOGFILES_TOP
-ROOT=/
retval=0
APPCONFIG=appconfig
APPCONFIG_DIRS="appmanager help icons types"
-PRINTERS=""
-DEFAULT_PRINTER="DtPrint"
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "usage" ]
then
mkdir -p $DT_TEMP_TOP/$APPCONFIG/appmanager
fi
- cd $DT_TEMP_TOP
+ cd "$DT_TEMP_TOP" || exit
mv $APPCONFIG/appmanager .hidden-appmanager
- chmod -R 755 *
+ chmod -R 755 -- *
chmod 755 .hidden-appmanager
- chown -R bin *
- chgrp -R bin *
+ chown -R bin -- *
+ chgrp -R bin -- *
mv .hidden-appmanager $APPCONFIG/appmanager
chmod 755 .
chown bin .
HASH Configure Xsession.d
HASH
- cd $DT_CONFIG_TOP/config
+ cd $DT_CONFIG_TOP/config || exit
if [ ! -d Xsession.d ]
then
mkdir Xsession.d
fi
- cd $DT_CONFIG_TOP
- chmod -R 755 *
+ cd $DT_CONFIG_TOP || exit
+ chmod -R 755 -- *
doDttermTerminfo
XCOMM ############################################
RemoveShlibFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "../verify.func"
done <<-EOF
XCOMM creates links in the install tree libtt.so -> libtt.so.1
XCOMM
- cd CDE_INSTALLATION_TOP/lib
+ cd CDE_INSTALLATION_TOP/lib || exit
- for lib in `/bin/ls *.so.*`
+ for lib in $(/bin/ls) ./*.so.*
do
- link=`echo $lib | cut -d. -f1,2`
+ link=$(echo "$lib" | cut -d. -f1,2)
- rm -f $link
- ln -s $lib $link
+ rm -f "$link"
+ ln -s "$lib" "$link"
done
XCOMM
XCOMM #########################################################################
-PRODUCT=CDE
-FILESET=CDE-SHLIBS
retval=0
CDE_TOP=CDE_INSTALLATION_TOP
-CDE_CONF_TOP=CDE_CONFIGURATION_TOP
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "deconfigure" ]
then
XCOMM #######
#define HASH #
-PRODUCT=CDE
-FILESET=CDE-TT
-DO_CONFIGURATION=""
retval=0
RemoveTTFiles()
{
- while read SRC
+ while read -r SRC
do
if [ "$SRC" != "" ]
then
- rm -f $SRC
+ rm -f "$SRC"
dirname=${SRC%/STAR}
- if [ -d $dirname ]
+ if [ -d "$dirname" ]
then
- cd $dirname
+ cd "$dirname" || exit
while [ "$dirname" != "$CDE_TOP" ]
do
cd ..
- rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
+ rmdir "${dirname##STAR/}" >/dev/null 2>/dev/null
dirname=${dirname%/STAR}
done
fi
XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
XCOMM exists the link is correct /usr/dt/link
- while read SRC
+ while read -r SRC
do
#include "../verify.func"
done <<-EOF
XCOMM
XCOMM ######################################################################
- HandleOption $*
+ HandleOption "$*"
if [ "$OPERATION" = "configure" ]
then
+++ /dev/null
- if [ "$SRC" != "" ]
- then
- set -A tokens $SRC
- if [ "${tokens[3]}" = "file" ]
- then
- if [ -f ${tokens[0]} ]
- then
- filesize=`ls -l ${tokens[0]} | awk '{print $5}'`
- echo "$filesize\t\t\c"
- echo "${tokens[0]}"
- let total=total+filesize
- fi
- fi
- fi
if [ "$SRC" != "" ]
then
- set -A tokens $SRC
+ set -A tokens "$SRC"
if [ "${tokens[3]}" = "file" ]
then
- if [ -f ${tokens[0]} ]
+ if [ -f "${tokens[0]}" ]
then
printf "exists "
else
fi
elif [ "${tokens[3]}" = "sym_link" ]
then
- if [ -L ${tokens[0]} ]
+ if [ -L "${tokens[0]}" ]
then
printf "exists "
else
if [ "${tokens[3]}" = "file" ]
then
touch /tmp/config-test
- chmod ${tokens[1]} /tmp/config-test
- tmpperms=`ls -l /tmp/config-test | awk '{print $1}'`
- realperms=`ls -l ${tokens[0]} | awk '{print $1}'`
+ chmod "${tokens[1]}" /tmp/config-test
+ tmpperms=$(ls -l /tmp/config-test | awk '{print $1}')
+ realperms=$(ls -l "${tokens[0]}" | awk '{print $1}')
if [ "$tmpperms" = "$realperms" ]
then
printf " WRONG "
fi
- owner=`ls -l ${tokens[0]} | awk '{print $3}'`
+ owner=$(ls -l "${tokens[0]}" | awk '{print $3}')
if [ "$owner" = "${tokens[4]}" ]
then
printf " WRONG "
fi
- group=`ls -l ${tokens[0]} | awk '{print $4}'`
+ group=$(ls -l "${tokens[0]}" | awk '{print $4}')
if [ "$group" = "${tokens[5]}" ]
then
fi
elif [ "${tokens[3]}" = "sym_link" ]
then
- linkto=`ls -l ${tokens[0]} | awk '{print $11}'`
+ linkto=$(ls -l "${tokens[0]}" | awk '{print $11}')
if [ "${tokens[2]}" = "$linkto" ]
then
printf " the link is correct "