1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Rename "dtapp" to "dtopen"

A great suggestion by Matthew Trower.
This commit is contained in:
Jon Trulson 2018-07-19 20:39:58 -06:00
parent 2f6f1d2afb
commit d557db4eb2
9 changed files with 42 additions and 42 deletions

2
cde/.gitignore vendored
View file

@ -145,7 +145,7 @@ config/util/xmkmf
examples/tt/broadcast examples/tt/broadcast
# Compiled binaries and misc generated program files # Compiled binaries and misc generated program files
programs/dtapp/dtapp programs/dtopen/dtopen
programs/dsdm/dsdm programs/dsdm/dsdm
programs/dtaction/dtaction programs/dtaction/dtaction
programs/dtappintegrate/dtappintegrate programs/dtappintegrate/dtappintegrate

View file

@ -2613,34 +2613,34 @@ programs/localized/ja_JP.dt-eucJP/dtsr/jpn.knj
# #
#>>----------------------------- #>>-----------------------------
# #
# dtapp entries # dtopen entries
# #
#<<----------------------------- #<<-----------------------------
# #
# #
programs/dtapp/dtapp programs/dtopen/dtopen
{ default { default
install_target = /usr/dt/bin/dtapp install_target = /usr/dt/bin/dtopen
mode = 0555 mode = 0555
} }
# Now the dtapp symlinks # Now the dtopen symlinks
./dtapp ./dtopen
{ default { default
install_target = /usr/dt/bin/dtapp_vimage install_target = /usr/dt/bin/dtopen_image
type = sym_link type = sym_link
} }
./dtapp ./dtopen
{ default { default
install_target = /usr/dt/bin/dtapp_vpdf install_target = /usr/dt/bin/dtopen_pdf
type = sym_link type = sym_link
} }
./dtapp ./dtopen
{ default { default
install_target = /usr/dt/bin/dtapp_vps install_target = /usr/dt/bin/dtopen_ps
type = sym_link type = sym_link
} }
./dtapp ./dtopen
{ default { default
install_target = /usr/dt/bin/dtapp_vvideo install_target = /usr/dt/bin/dtopen_video
type = sym_link type = sym_link
} }

View file

@ -5,7 +5,7 @@ XCOMM $XConsortium: Imakefile /main/17 1996/10/06 17:13:20 rws $
#if UseNSGMLS #if UseNSGMLS
NSGMLSDIR = nsgmls NSGMLSDIR = nsgmls
#endif #endif
EXTRADIRS = types localized tttypes $(NSGMLSDIR) util dtapp EXTRADIRS = types localized tttypes $(NSGMLSDIR) util dtopen
XCOMM some of these cannot be built on linux yet. XCOMM some of these cannot be built on linux yet.
XCOMM dtinfo XCOMM dtinfo

View file

@ -1,13 +1,13 @@
XCOMM make dtapp fro dtapp.src XCOMM make dtopen fro dtopen.src
#define PassCDebugFlags #define PassCDebugFlags
AllTarget(dtapp) AllTarget(dtopen)
LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \ LOCAL_CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
-DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \ -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP)
CppScriptTarget(dtapp,dtapp.src,$(LOCAL_CPP_DEFINES),) CppScriptTarget(dtopen,dtopen.src,$(LOCAL_CPP_DEFINES),)
depend:: depend::

View file

@ -1,47 +1,47 @@
XCOMM!/bin/ksh XCOMM!/bin/ksh
XCOMM XCOMM
XCOMM dtapp - provide an interface for some useful applications. XCOMM dtopen - provide an interface for some useful applications.
XCOMM XCOMM
XCOMM ############################################################# XCOMM #############################################################
XCOMM #set -x # uncomment for debugging XCOMM #set -x # uncomment for debugging
XCOMM ############################################################### XCOMM ###############################################################
XCOMM Init XCOMM Init
DTAPP="dtapp" # Identity crisis DTOPEN="dtopen" # Identity crisis
APPNAME="$(basename $0)" # the app to locate/run APPNAME="$(basename $0)" # the app to locate/run
XCOMM apps to look for, given an action (based on APPNAME - see MAIN) XCOMM apps to look for, given an action (based on APPNAME - see MAIN)
XCOMM image viewing XCOMM image viewing
if [ -z "$DTAPP_VIMAGE" ] if [ -z "$DTOPEN_VIMAGE" ]
then then
VIMAGE="xv display gimp" VIMAGE="xv display gimp"
else else
VIMAGE="$DTAPP_VIMAGE" VIMAGE="$DTOPEN_VIMAGE"
fi fi
XCOMM video viewing XCOMM video viewing
if [ -z "$DTAPP_VVIDEO" ] if [ -z "$DTOPEN_VVIDEO" ]
then then
VVIDEO="vlc ffplay" VVIDEO="vlc ffplay"
else else
VVIDEO="$DTAPP_VVIDEO" VVIDEO="$DTOPEN_VVIDEO"
fi fi
XCOMM postscript viewing XCOMM postscript viewing
if [ -z "$DTAPP_VPS" ] if [ -z "$DTOPEN_VPS" ]
then then
VPS="mgv gv" VPS="mgv gv"
else else
VPS="$DTAPP_VPS" VPS="$DTOPEN_VPS"
fi fi
XCOMM PDF viewing XCOMM PDF viewing
if [ -z "$DTAPP_VPDF" ] if [ -z "$DTOPEN_VPDF" ]
then then
VPDF="okular xpdf" VPDF="okular xpdf"
else else
VPDF="$DTAPP_VPDF" VPDF="$DTOPEN_VPDF"
fi fi
XCOMM ############################################################## XCOMM ##############################################################
@ -101,7 +101,7 @@ DoSimpleCmd()
if [ $didone -eq 0 ] if [ $didone -eq 0 ]
then # couldn't find a viewer then # couldn't find a viewer
ErrorMsg "Helper not found" \ ErrorMsg "Helper not found" \
"${DTAPP}: Could not find any of the following\ncommands for this file type:\n\n$cmds" "${DTOPEN}: Could not find any of the following\ncommands for this file type:\n\n$cmds"
fi fi
return 0 return 0
@ -115,24 +115,24 @@ XCOMM # We'll just look at our args and decide what to do...
XCOMM # Commands we'll recognize XCOMM # Commands we'll recognize
COMMANDS="dtapp_vimage dtapp_vweb dtapp_vpdf dtapp_vps dtapp_vvideo" COMMANDS="dtopen_image dtopen_pdf dtopen_ps dtopen_video"
case $APPNAME in case $APPNAME in
dtapp_vimage) dtopen_image)
DoSimpleCmd "$VIMAGE" $* DoSimpleCmd "$VIMAGE" $*
;; ;;
dtapp_vpdf) dtopen_pdf)
DoSimpleCmd "$VPDF" $* DoSimpleCmd "$VPDF" $*
;; ;;
dtapp_vps) dtopen_ps)
DoSimpleCmd "$VPS" $* DoSimpleCmd "$VPS" $*
;; ;;
dtapp_vvideo) dtopen_video)
DoSimpleCmd "$VVIDEO" $* DoSimpleCmd "$VVIDEO" $*
;; ;;
*) *)
# Unknown # Unknown
ErrorMsg "${DTAPP}: Unknown Helper Application" \ ErrorMsg "${DTOPEN}: Unknown Helper Application" \
"\"$APPNAME\" is not a recognized Helper Application. \nKnown Helper Applications are:\n\n$COMMANDS" "\"$APPNAME\" is not a recognized Helper Application. \nKnown Helper Applications are:\n\n$COMMANDS"
;; ;;
esac esac

View file

@ -11,7 +11,7 @@ ACTION DisplayImage
ICON camera ICON camera
EXEC_HOST %DatabaseHost%, %LocalHost% EXEC_HOST %DatabaseHost%, %LocalHost%
ARG_COUNT 0 ARG_COUNT 0
EXEC_STRING dtapp_vimage %(File)"Name of image file to display:"% EXEC_STRING dtopen_image %(File)"Name of image file to display:"%
WINDOW_TYPE NO_STDIO WINDOW_TYPE NO_STDIO
DESCRIPTION Display image DESCRIPTION Display image
} }
@ -24,7 +24,7 @@ ACTION DisplayImage
ICON camera ICON camera
EXEC_HOST %DatabaseHost%, %LocalHost% EXEC_HOST %DatabaseHost%, %LocalHost%
ARG_COUNT >0 ARG_COUNT >0
EXEC_STRING dtapp_vimage %(File)Args% EXEC_STRING dtopen_image %(File)Args%
WINDOW_TYPE NO_STDIO WINDOW_TYPE NO_STDIO
DESCRIPTION Edit image file. DESCRIPTION Edit image file.
} }

View file

@ -11,7 +11,7 @@ ACTION DisplayPDF
ICON camera ICON camera
EXEC_HOST %DatabaseHost%, %LocalHost% EXEC_HOST %DatabaseHost%, %LocalHost%
ARG_COUNT 0 ARG_COUNT 0
EXEC_STRING dtapp_vpdf %(File)"Name of PDF file to display:"% EXEC_STRING dtopen_pdf %(File)"Name of PDF file to display:"%
WINDOW_TYPE NO_STDIO WINDOW_TYPE NO_STDIO
DESCRIPTION Display image DESCRIPTION Display image
} }
@ -24,7 +24,7 @@ ACTION DisplayPDF
ICON camera ICON camera
EXEC_HOST %DatabaseHost%, %LocalHost% EXEC_HOST %DatabaseHost%, %LocalHost%
ARG_COUNT >0 ARG_COUNT >0
EXEC_STRING dtapp_vpdf %(File)Args% EXEC_STRING dtopen_pdf %(File)Args%
WINDOW_TYPE NO_STDIO WINDOW_TYPE NO_STDIO
DESCRIPTION Edit image file. DESCRIPTION Edit image file.
} }

View file

@ -11,7 +11,7 @@ ACTION DisplayPS
ICON camera ICON camera
EXEC_HOST %DatabaseHost%, %LocalHost% EXEC_HOST %DatabaseHost%, %LocalHost%
ARG_COUNT 0 ARG_COUNT 0
EXEC_STRING dtapp_vps %(File)"Name of PS file to display:"% EXEC_STRING dtopen_ps %(File)"Name of PS file to display:"%
WINDOW_TYPE NO_STDIO WINDOW_TYPE NO_STDIO
DESCRIPTION Display image DESCRIPTION Display image
} }
@ -24,7 +24,7 @@ ACTION DisplayPS
ICON camera ICON camera
EXEC_HOST %DatabaseHost%, %LocalHost% EXEC_HOST %DatabaseHost%, %LocalHost%
ARG_COUNT >0 ARG_COUNT >0
EXEC_STRING dtapp_vps %(File)Args% EXEC_STRING dtopen_ps %(File)Args%
WINDOW_TYPE NO_STDIO WINDOW_TYPE NO_STDIO
DESCRIPTION Edit image file. DESCRIPTION Edit image file.
} }

View file

@ -11,7 +11,7 @@ ACTION DisplayVideo
ICON video ICON video
EXEC_HOST %DatabaseHost%, %LocalHost% EXEC_HOST %DatabaseHost%, %LocalHost%
ARG_COUNT 0 ARG_COUNT 0
EXEC_STRING dtapp_vvideo %(File)"Name of video file to display:"% EXEC_STRING dtopen_video %(File)"Name of video file to display:"%
WINDOW_TYPE NO_STDIO WINDOW_TYPE NO_STDIO
DESCRIPTION Play video file DESCRIPTION Play video file
} }
@ -24,7 +24,7 @@ ACTION DisplayVideo
ICON video ICON video
EXEC_HOST %DatabaseHost%, %LocalHost% EXEC_HOST %DatabaseHost%, %LocalHost%
ARG_COUNT >0 ARG_COUNT >0
EXEC_STRING dtapp_vvideo %(File)Args% EXEC_STRING dtopen_video %(File)Args%
WINDOW_TYPE NO_STDIO WINDOW_TYPE NO_STDIO
DESCRIPTION Play video file. DESCRIPTION Play video file.
} }