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).
104 lines
2.9 KiB
Plaintext
104 lines
2.9 KiB
Plaintext
XCOMM ##########################################################################
|
|
XCOMM
|
|
XCOMM dtpad.dt
|
|
XCOMM
|
|
XCOMM Actions used with the DT Text Editor (dtpad)
|
|
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: dtpad.dt.src /main/4 1996/04/23 17:35:35 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 TEXTFILE
|
|
{
|
|
ACTIONS Open,Print
|
|
ICON Dtdata
|
|
IS_TEXT true
|
|
NAME_TEMPLATE %s.txt
|
|
MIME_TYPE text/plain
|
|
SUNV3_TYPE text
|
|
MEDIA C_STRING
|
|
DESCRIPTION %|nls-5001-#A#|
|
|
TYPE_LABEL %|nls-31055-#TEXTFILE#|
|
|
}
|
|
DATA_CRITERIA TEXTFILE1
|
|
{
|
|
DATA_ATTRIBUTES_NAME TEXTFILE
|
|
MODE f&!x
|
|
NAME_PATTERN *.txt
|
|
}
|
|
XCOMM ##################################################################
|
|
XCOMM
|
|
%|nls-5006-#HASH WARNING WARNING#|
|
|
XCOMM
|
|
XCOMM ##################################################################
|
|
DATA_CRITERIA TEXTFILE2
|
|
{
|
|
DATA_ATTRIBUTES_NAME TEXTFILE
|
|
MODE f&!x
|
|
NAME_PATTERN text
|
|
}
|
|
ACTION Print
|
|
{
|
|
LABEL %|nls-2-Print|
|
|
ARG_TYPE TEXTFILE
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtlp "%Arg_1%"
|
|
}
|
|
|
|
XCOMM ##########################################################################
|
|
XCOMM ##########################################################################
|
|
XCOMM
|
|
%|nls-12-#HASH Actions#|
|
|
XCOMM
|
|
XCOMM ##########################################################################
|
|
XCOMM ####################
|
|
XCOMM
|
|
%|nls-5002-# PRINT actions|
|
|
XCOMM
|
|
XCOMM ####################
|
|
XCOMM
|
|
%|nls-5005-# The|
|
|
XCOMM
|
|
XCOMM ####################
|
|
ACTION PRINT_DTPAD_TEMPFILE
|
|
{
|
|
TYPE COMMAND
|
|
WINDOW_TYPE NO_STDIO
|
|
EXEC_STRING CDE_INSTALLATION_TOP/bin/dtlp -u "%(String)Arg_2%" -e "%(File)Arg_1%"
|
|
}
|
|
|
|
XCOMM #####################
|
|
XCOMM
|
|
%|nls-5003-# Editing|
|
|
XCOMM
|
|
XCOMM #####################
|
|
ACTION Dtpad
|
|
{
|
|
LABEL %|nls-5007-#Text Editor#|
|
|
ICON Dtpenpd
|
|
TYPE MAP
|
|
MAP_ACTION DtTTMediaOpen
|
|
DESCRIPTION %|nls-5008-#The#|
|
|
}
|
|
|
|
XCOMM ######################## EOF ############################################
|