remove OSF1 support

This commit is contained in:
chase
2018-05-24 14:50:03 -05:00
committed by Jon Trulson
parent 3c1736f077
commit 164e695cd0
325 changed files with 290 additions and 9980 deletions

View File

@@ -32,7 +32,7 @@
HASH
HASH Determine Xsession parent
HASH
#if defined (__osf__) || defined(__OpenBSD__) || defined(__NetBSD__)
#if defined(__OpenBSD__) || defined(__NetBSD__)
pexec=$(LC_TIME=C ps -p $PPID | awk 'NR==2 {print $5}')
#elif defined(linux)
pexec=$(LC_TIME=C /bin/ps -p $PPID 2>/dev/null | awk 'NR==2 {print $4}')
@@ -172,172 +172,6 @@ ADDFONTPATH() {
fi
#endif
#if defined (__osf__)
#ifdef cpp_Xsetup
if [ "$DTXSERVERLOCATION" != "remote" ]; then
HASH
HASH We can only modify the font path or the keymap if the X server is
HASH local.
HASH
HASH Since X server is local, optimize by checking local desktop
HASH font directories and making one call to xset.
HASH
HASH
HASH
HASH check if the system has a Low or High Resolution Monitor
HASH - High Resolution (1280 x 1024) uses 100 dpi fonts.
HASH - Medium Resolution (1024 x 864 ) uses 75 dpi fonts.
HASH - Low Resolution (1024 x 768 or lower) uses 75 dpi fonts.
HASH This will only switch to 75dpi fonts if there is a low or medium
HASH resolution monitor found.
HASH
HASH
fd=""
prefplist=""
appfplist=""
setfont="No"
FONTLIB="/usr/lib/X11/fonts"
I18N="/usr/i18n/lib/X11/fonts/decwin"
pixwidth=`/usr/sbin/sizer -gr | awk -Fx ' { print $1 } ' `
if [ ${pixwidth} -lt 1280 ]
then
nat_res="75dpi"
alt_res="100dpi"
else
nat_res="100dpi"
alt_res="75dpi"
fi
HASH
HASH Add scalable fonts to the font path, based on
HASH screen resolution
HASH
if [ ${pixwidth} -lt 1024 ]
then
HASH
HASH Prepend fontpaths
HASH
prefplist="${FONTLIB}/Speedo ${FONTLIB}/Type1 ${FONTLIB}/Type1Adobe"
else
HASH
HASH Append fontpaths
HASH
appfplist="${FONTLIB}/Type1Adobe"
fi
HASH
HASH Append fontpaths
HASH add optional extra fonts
HASH
cde_configuration_top=CDE_CONFIGURATION_TOP
cde_installation_top=CDE_INSTALLATION_TOP
appfplist="${appfplist} ${FONTLIB}/user/${nat_res} ${FONTLIB}/user/misc"
if [ "${LANG-C}" != "C" ]; then
appfplist="${appfplist} $cde_configuration_top/config/xfonts/$LANG/$nat_res"
appfplist="${appfplist} $cde_configuration_top/config/xfonts/$LANG/$alt_res"
fi
appfplist="${appfplist} $cde_configuration_top/config/xfonts/C"
appfplist="${appfplist} $cde_configuration_top/config/xfonts/C/$nat_res"
appfplist="${appfplist} $cde_configuration_top/config/xfonts/C/$alt_res"
if [ "${LANG-C}" != "C" ]; then
appfplist="${appfplist} $cde_installation_top/config/xfonts/$LANG/$nat_res"
appfplist="${appfplist} $cde_installation_top/config/xfonts/$LANG/$alt_res"
fi
appfplist="${appfplist} $cde_installation_top/config/xfonts/C"
appfplist="${appfplist} $cde_installation_top/config/xfonts/C/$nat_res"
appfplist="${appfplist} $cde_installation_top/config/xfonts/C/$alt_res"
HASH
HASH Prepend fontpaths
HASH add i18n fonts if they exist
HASH
prefplist="${I18N}/${nat_res} ${I18N}/${alt_res} ${prefplist}"
HASH
HASH Prepend to fontpath
HASH
for i in ${prefplist}
do
if [ -f ${i}/fonts.dir ]
then
if [ $fd ]
then
fd="${fd},${i}/"
else
fd="${i}/"
setfont="Yes"
fi
fi
done
if [ ${setfont} = Yes ]
then
$XDIR/xset +fp ${fd}
if [ $? -ne 0 ]
then
HASH
HASH set the old slow way.....
HASH
for i in ${prefplist}
do
if [ -f ${i}/fonts.dir ]
then
$XDIR/xset +fp ${i}
fi
done
fi
HASH
HASH End of the setting the old slow way.........
HASH
fd=""
setfont='No'
fi
HASH
HASH Append to fontpath
HASH
for i in ${appfplist}
do
if [ -f ${i}/fonts.dir ]
then
if [ $fd ]
then
fd="${fd},${i}/"
else
fd="${i}/"
setfont="Yes"
fi
fi
done
if [ ${setfont} = Yes ]
then
$XDIR/xset fp+ ${fd}
if [ $? -ne 0 ]
then
HASH
HASH set the old slow way.....
HASH
for i in ${appfplist}
do
if [ -f ${i}/fonts.dir ]
then
$XDIR/xset fp+ ${i}
fi
done
fi
HASH
HASH End of the setting the old slow way.........
HASH
fi
fi
#endif
#endif
#if defined (_AIX)
XCOMM ##########################################################################
XCOMM