Files
mcde/programs/types/dthelpprint.dt.src
lotherk c077094484 MCDE types: /usr/dt/bin in the actions replaced by the install prefixed binary
Found by dragging a file from dtfile onto the printer in the front panel: the
DtPrint action runs dtaction Print, whose action in datatypes.dt called
/usr/dt/bin/dtlp -- a path no Makronix has (the installation is /usr/pkg/dt).
The dialog said "/usr/dt/bin/dtlp ... Check that the program exists".

69 occurrences in 14 .src files under programs/types now use
CDE_INSTALLATION_TOP, so the types are correct in the development
installation and in /usr/pkg/dt alike: datatypes, develop, dt, dtfile,
dthelp, dthelpprint, dthelptag, dtinfo, dtpad, ibm, miscImages,
unsupported, uxstd, xclients.  dt.dt.src's "Edit Dtwmrc" action also copies
from /usr/dt/config and /etc/dt/config; it now uses CDE_INSTALLATION_TOP and
CDE_CONFIGURATION_TOP.

dtcm.dt is a plain .dt (no .src, no preprocessing): there the paths are bare
program names (dtcm, dtcm_insert, dterror.ds), which the session's PATH
finds under the installation's bin.

Measured: make mcde-linux MCDE_DIRS="programs/types" then
"install programs/localized/C/types" exit=0; the installed datatypes.dt has
".../build/mcde-root/dt/bin/dtlp" and dtcm.dt has "dtcm_insert" (no
/usr/dt/bin left in the generated types except the /usr/dt/config line in
dt.dt.src, which is now CDE_INSTALLATION_TOP too).
2026-11-16 09:38:44 +00:00

63 lines
2.3 KiB
Plaintext

XCOMM ##########################################################################
XCOMM
XCOMM dthelpprint.dt
XCOMM
XCOMM Actions and filetypes for dthelpprint files.
XCOMM
XCOMM (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
XCOMM (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
XCOMM (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
XCOMM (c) Copyright 1993, 1994, 1995 Novell, Inc.
XCOMM
XCOMM $XConsortium: dthelpprint.dt.src /main/4 1996/04/23 17:35:22 drk $
XCOMM
XCOMM ##########################################################################
#define HASH #
set DtDbVersion=1.0
XCOMM ##########################################################################
XCOMM
%|nls-10-#HASH WARNING:...#|
XCOMM
XCOMM ##########################################################################
XCOMM ##################################################################
XCOMM
%|nls-11-#HASH Data Attributes#|
XCOMM
XCOMM ##################################################################
DATA_ATTRIBUTES DTHELP_PRINT_FILE
{
ACTIONS Print
ICON Dthvol
NAME_TEMPLATE _phlp%s
DESCRIPTION %|nls-8001-#This file#|
TYPE_LABEL %|nls-31051-#DTHELP_PRINT_FILE#|
}
DATA_CRITERIA DTHELP_PRINT_FILE1
{
DATA_ATTRIBUTES_NAME DTHELP_PRINT_FILE
MODE f
NAME_PATTERN _phlp*
}
ACTION Print
{
ARG_TYPE DTHELP_PRINT_FILE
TYPE COMMAND
WINDOW_TYPE NO_STDIO
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtlp -f "%(File)Arg_1%" \
${LPDEST:+-d} ${LPDEST:+$LPDEST} \
-n "${DTPRINTCOPYCOUNT:-1}" \
-b "${DTPRINTBANNERTITLE:-CDE Help}" \
"${DTPRINTCOMMAND:+-m}" \
"${DTPRINTCOMMAND:+$DTPRINTCOMMAND}" \
"${DTPRINTFROMCODESET:+-c}" \
"${DTPRINTFROMCODESET:+$DTPRINTFROMCODESET}" \
"${DTPRINTCODESET:+-t}" "${DTPRINTCODESET:+$DTPRINTCODESET}" \
-u "${DTPRINTUSERFILENAME:-Help Information}" \
-w "${DTPRINTRAW:-$FALSE}" \
-s "${DTPRINTSILENT:-$TRUE}" \
-e "${DTPRINTFILEREMOVE:-$TRUE}";
}
XCOMM ######################## EOF ############################################