cdesktopenv/cde
Marcin Cieslak 17a33f0430 Use KORNSHELL variable instead of /bin/ksh
This patch removes instances of hardcoded
invocation of /bin/ksh and allows to
replace it with, for, example,
/usr/local/bin/ksh93

Also "ksh93" is accepted whenever "ksh" is.

Tested using the following /bin/ksh:

----8<----
WHAT=`ps -o command= -p $PPID`
msg="Something tried to call /bin/ksh: $PPID: $WHAT"
print -u2 "$msg"
logger user.warn "$msg"
exit 99
----8<----
(Warning: first two lines are FreeBSD specific)

Scripts from Makefiles should now be executed either
with

$(KORNSHELL) korn-shell-script

or

$(SHELL) bourne-shell-script

therefore #!/bin/ksh has not been changed everywhere.

/usr/dt/bin/ scripts have been converted (e.g. Xsession)

Whenever possible Imake and CPP facilities have been used.

For C and C++ programs KORNSHELL needs to be defined to
"/path/to/your/ksh" (with quotes) so that it can make
a valid C constant.

Therefore, when adding KORNSHELL to Imakefile for C files,
you have to add

CXXEXTRA_DEFINES = -DKORNSHELL=\"$(KORNSHELL)\"

or similar (for example, see programs/dtprintinfo)

But for simple shell script substitution we usually change

 LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
                     -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
                     -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP)

to:

 LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
                     -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
                     -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
                     -DKORNSHELL=$(KORNSHELL) \
                     -DXPROJECTROOT=X11ProjectRoot

since we don't want quotes for shell scripts.
2012-08-23 20:00:43 -06:00
..
admin Use KORNSHELL variable instead of /bin/ksh 2012-08-23 20:00:43 -06:00
config Use mkstemp() and handle /usr/lib64 in imake.c 2012-08-21 21:51:56 -04:00
contrib/rc/linux new dtlogin rc script for linux from David McBrayer <d9j0m.dev@gmail.com> 2012-08-16 17:05:38 -06:00
databases Provide basic font aliases for FreeBSD 2012-08-16 16:15:52 -06:00
doc Process sgml and man files in doc directory for FreeBSD. 2012-08-15 15:56:03 -06:00
examples examples/tt now runs on FreeBSD 2012-08-22 21:04:30 -06:00
historical historical: mv some old files that we want to preserve out of the top level 2012-08-10 07:17:27 -06:00
imports/motif Add missing Mrm, Xm, and Uil .msg files for the various locales from the motif src. 2012-07-16 19:49:28 -06:00
include OpenBSD fixes for DtPrint and csa. 2012-08-10 06:18:28 -06:00
lib 64bit: Fix crash in dtexec 2012-08-23 19:56:43 -06:00
logs Initial import of the CDE 2.1.30 sources from the Open Group. 2012-03-10 18:21:40 +00:00
osf Add GNU LGPL headers to all .c .C and .h files 2012-03-10 18:58:32 +00:00
programs Use KORNSHELL variable instead of /bin/ksh 2012-08-23 20:00:43 -06:00
util Add GNU LGPL headers to all .c .C and .h files 2012-03-10 18:58:32 +00:00
.gitignore examples/tt now runs on FreeBSD 2012-08-22 21:04:30 -06:00
CONTRIBUTORS Add Matthew Howkins (dtappbuilder, nsgmls, dtcm Linux compilation) 2012-08-04 23:16:08 +01:00
COPYING Addition of LGPL file at top level, deprecation of file copyright, and 2012-05-29 16:54:57 +01:00
Imakefile Imakefile diffs for OpenBSD. 2012-08-11 19:23:43 -06:00
Makefile Increment CDE version number to 2.2.0 2012-07-16 15:23:40 +01:00
README New top level README from Christopher Turkel <turkelchris@aol.com> 2012-08-10 06:09:53 -06:00
copyright Add in a CONTRIBUTORS file for all people that have made changes post 2012-07-24 15:23:16 +01:00

README

*************************************

The Common Desktop Environment is released under the terms of the LGPL V.2
license. You may reuse and redistribute this code under the terms of this
license. See the COPYING file for details.
*************************************

Purpose of this release:

This release under a new license is numbered 2.2.0. It is almost identical to
the 2.1.30 release The Open Group made available to customers in 1999 but with
additional improvements to allow it to build under Linux. It's not called 
2.1.30 to avoid confusion with versions of 2.1.30 not built from the open source 
code.

************************************
Downloading this release:

CDE may be downloaded downloaded in source form from the Common Desktop
Environment website:

http://sourceforge.net/projects/cdesktopenv/

Or via git:

git clone git://git.code.sf.net/p/cdesktopenv/code cdesktopenv-code

************************************

Installing this release:

Complete installation instructions can be found on the CDE wiki:

http://sourceforge.net/p/cdesktopenv/wiki/Home/

Bug reports and patches encouraged.