See patch.
>From 05a7f71bd30d43dd4c041ff8c3e15ee48a16ebd7 Mon Sep 17 00:00:00 2001
From: Pascal Stumpf <pascal.stu...@cubes.de>
Date: Thu, 22 Nov 2012 15:49:51 +0100
Subject: [PATCH] Introduce DTKORNSHELL, analogous to KORNSHELL.

DTKORNSHELL is used to specify the install location of dtksh on your system,
preventing hardcoding of /usr/dt/bin/dtksh in Shebang lines and such.
---
 cde/config/cf/Imake.tmpl             |    4 ++++
 cde/config/cf/OpenBSD.cf             |    4 ++++
 cde/programs/dtprintegrate/Imakefile |    2 +-
 cde/programs/dtprintegrate/dtlp.src  |    2 +-
 cde/programs/types/Imakefile         |    2 +-
 cde/programs/types/dt.dt.src         |    4 ++--
 cde/programs/types/error.ds.src      |    2 +-
 7 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/cde/config/cf/Imake.tmpl b/cde/config/cf/Imake.tmpl
index db4a1b9..75fa291 100644
--- a/cde/config/cf/Imake.tmpl
+++ b/cde/config/cf/Imake.tmpl
@@ -183,6 +183,9 @@ XCOMM the platform-specific parameters - edit site.def to 
change
 #ifndef KornShell
 #define KornShell              /bin/ksh
 #endif
+#ifndef DtKornShell
+#define DtKornShell            /usr/dt/bin/dtksh
+#endif
 #ifndef ConstructMFLAGS
 #if SystemV
 #define ConstructMFLAGS                YES     /* build MFLAGS from MAKEFLAGS 
*/
@@ -896,6 +899,7 @@ XCOMM the platform-specific parameters - edit site.def to 
change
           PATHSEP = PathSeparator
             SHELL = BourneShell
         KORNSHELL = KornShell
+      DTKORNSHELL = DtKornShell
 
               TOP = TOPDIR
       CURRENT_DIR = CURDIR
diff --git a/cde/config/cf/OpenBSD.cf b/cde/config/cf/OpenBSD.cf
index afbb584..1ebc7a0 100644
--- a/cde/config/cf/OpenBSD.cf
+++ b/cde/config/cf/OpenBSD.cf
@@ -1028,6 +1028,10 @@ install:: fonts.alias                                    
                @@\
 #define KornShell               /usr/local/bin/ksh93
 #endif
 
+#ifndef DtKornShell
+#define DtKornShell            /usr/local/dt/bin/dtksh
+#endif
+
 #define AvoidNullMakeCommand   YES
 
 /* This must come last */
diff --git a/cde/programs/dtprintegrate/Imakefile 
b/cde/programs/dtprintegrate/Imakefile
index 63baf8a..acb48f5 100644
--- a/cde/programs/dtprintegrate/Imakefile
+++ b/cde/programs/dtprintegrate/Imakefile
@@ -2,7 +2,7 @@ XCOMM $XConsortium: Imakefile /main/6 1996/04/21 19:50:24 drk $
 
 CPP_DEFINES =   -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
                -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-               -DKORNSHELL=$(KORNSHELL)
+               -DKORNSHELL=$(KORNSHELL) -DDTKORNSHELL=$(DTKORNSHELL)
 
 #if defined (SunArchitecture)
 LOCAL_CPP_DEFINES = $(CPP_DEFINES) -D__sun
diff --git a/cde/programs/dtprintegrate/dtlp.src 
b/cde/programs/dtprintegrate/dtlp.src
index 9b7be11..bffa2f6 100755
--- a/cde/programs/dtprintegrate/dtlp.src
+++ b/cde/programs/dtprintegrate/dtlp.src
@@ -1,4 +1,4 @@
-XCOMM!/usr/dt/bin/dtksh
+XCOMM! DTKORNSHELL
 XCOMM $TOG: dtlp.src /main/17 1998/07/31 17:03:31 mgreess $
 XCOMM 
 XCOMM (c) Copyright 1996 Digital Equipment Corporation.
diff --git a/cde/programs/types/Imakefile b/cde/programs/types/Imakefile
index c776c31..73ddb01 100644
--- a/cde/programs/types/Imakefile
+++ b/cde/programs/types/Imakefile
@@ -2,7 +2,7 @@ XCOMM $XConsortium: Imakefile /main/6 1996/04/21 19:52:31 drk $
 
 CPP_DEFINES = -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
        -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
-       -DKORNSHELL=$(KORNSHELL)
+       -DKORNSHELL=$(KORNSHELL) -DDTKORNSHELL=$(DTKORNSHELL)
 
 #if defined (SunArchitecture)
 LOCAL_CPP_DEFINES = $(CPP_DEFINES) -D__sun
diff --git a/cde/programs/types/dt.dt.src b/cde/programs/types/dt.dt.src
index a960851..0752ede 100644
--- a/cde/programs/types/dt.dt.src
+++ b/cde/programs/types/dt.dt.src
@@ -135,13 +135,13 @@ DATA_CRITERIA DTKSH_SCRIPT2
 {
         DATA_ATTRIBUTES_NAME DTKSH_SCRIPT
        MODE            f&x
-        CONTENT                0 string #!/usr/dt/bin/dtksh
+        CONTENT                0 string #!DTKORNSHELL
 }
 DATA_CRITERIA DTKSH_SCRIPT3
 {
         DATA_ATTRIBUTES_NAME DTKSH_SCRIPT
        MODE            f&x
-        CONTENT                0 string #! /usr/dt/bin/dtksh
+        CONTENT                0 string #! DTKORNSHELL
 }
 ACTION Run
 {
diff --git a/cde/programs/types/error.ds.src b/cde/programs/types/error.ds.src
index f0ca398..189167a 100644
--- a/cde/programs/types/error.ds.src
+++ b/cde/programs/types/error.ds.src
@@ -1,4 +1,4 @@
-XCOMM! /usr/dt/bin/dtksh
+XCOMM! DTKORNSHELL
 XCOMM  $XConsortium: error.ds.src /main/3 1996/04/23 17:35:47 drk $
 XCOMM #####################################################################
 XCOMM 
-- 
1.7.6

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to