Commit Graph

21 Commits

Author SHA1 Message Date
Fergus Henderson
1198573324 Fix a security problem with the use of `chmod +w'.
Estimated hours taken: 0.5

Fix a security problem with the use of `chmod +w'.

{scripts,runtime}/Mmake:
	Use `chmod u+w' rather than `chmod +w' on the installed files,
	since `chmod +w' has the wrong effect with some versions of chmod.
	When configure creates automatically-generated files, we do a
	`chmod -w' on them to make sure that you don't accidentally edit
	the automatically-generated file rather than the source `.in' file.
	However, if the installed copies are write-only, then it causes
	problems when installing a new copy on top of an old one.
	Hence we turn write permission back on again on the installed copies.
	The `chmod +w' command has the right effect on Solaris, OSF/1, and
	SunOS, where it takes into account the umask.  However, on IRIX and
	ULTRIX, `chmod +w' does not take the umask into account, and so
	makes the files world-writable, which is a security problem.
	Hence, we now use `chmod u+w' instead.
1996-04-10 09:26:11 +00:00
Fergus Henderson
38a2c6367f In the rule for `mmake install', make sure we remove the installed
Estimated hours taken: 0.1

scripts/Mmake:
	In the rule for `mmake install', make sure we remove the installed
	copy of `Mmake.vars' before copying over the new one, since it is
	create without write permissions.
1996-02-04 12:18:03 +00:00
Fergus Henderson
934553c5a5 Change the uninstall' rule so that rather than using rm -f',
Mmake:
	Change the `uninstall' rule so that rather than using `rm -f',
	it uses plain `rm' but then ignores the exit status.  If we
	encounter permission errors when doing a `mmake uninstall', the
	user should know about them.
1995-10-07 15:43:32 +00:00
Fergus Henderson
510b77d4c7 Fix a couple of errors in the new `mmake uninstall' rule.
scripts/Mmake:
	Fix a couple of errors in the new `mmake uninstall' rule.
1995-10-07 14:51:43 +00:00
Fergus Henderson
518039f177 Add `uninstall' target to Mmake file. 1995-10-07 11:24:49 +00:00
Fergus Henderson
7d495c7039 In `ml', use the value of $MKFIFO determined by configure;
if configure can't find `mkfifo', configure will look for `mknod',
and set MKFIFO to `mkfifo_using_mknod', which is a new script
that basically just invokes `mknod $1 p'.  Also, add a new
option --no-demangle; if this option is used, or if the system doesn't
have either `mknod' or `mkfifo', then demangling is disabled.

These changes are all because some systems (e.g. SunOS 4.1.3)
don't have `mkfifo'.
1995-10-02 16:02:05 +00:00
Fergus Henderson
5f8133f60c Remove references to mcn and mcs.
scripts/Mmake:
	Remove references to mcn and mcs.
1995-09-09 00:25:53 +00:00
Fergus Henderson
e946250414 Remove all hard-coded relative paths except for the definition
scripts/Mmake:
	Remove all hard-coded relative paths except for the definition
	of MERCURY_DIR.
1995-07-29 08:44:55 +00:00
Fergus Henderson
f1d37af1a6 Add script to invoke mercury_profile.
scripts/mprof.m, scripts/Mmake:
	Add script to invoke mercury_profile.
1995-07-20 13:59:12 +00:00
Fergus Henderson
aa9b9bd4cd Fix rule for `mmake realclean'.
scripts/Mmake:
	Fix rule for `mmake realclean'.
1995-07-17 13:47:55 +00:00
Fergus Henderson
bbef14c68d Add a rule to recreate foo' when foo.in' changes.
scripts/Mmake:
	Add a rule to recreate `foo' when `foo.in' changes.
1995-07-13 01:48:14 +00:00
Fergus Henderson
356f1abee6 Split up the rule for installing the scripts so that
scripts/Mmake:
	Split up the rule for installing the scripts so that
	the NU-Prolog and SICStus Prolog related scripts are
	only installed if configure detected NU-Prolog or
	SICStus Prolog respectively.
1995-05-22 03:58:30 +00:00
Fergus Henderson
97d8773ee4 Make sure the installed scripts are writeable, because
scripts/Mmake:
	Make sure the installed scripts are writeable, because
	re-installing will fail if they are not.
1995-05-20 15:47:15 +00:00
Fergus Henderson
fb57d565f6 Add c2init to the list of scripts.
scripts/Mmake:
	Add c2init to the list of scripts.
1995-05-13 06:02:07 +00:00
Fergus Henderson
76dbe913e2 Rename *.sh as *.in.
scripts:
	Rename *.sh as *.in.
	The scripts are now made by configure, not by make/mmake in the
	scripts directory.
1995-05-12 21:01:34 +00:00
Fergus Henderson
5df40b0d26 Add copyright notices.
scripts/*:
	Add copyright notices.
1995-03-28 15:35:15 +00:00
Fergus Henderson
d45a0231fe Add `mmake' to the list of scripts!
scripts/Mmake:
	Add `mmake' to the list of scripts!
1995-03-18 14:25:06 +00:00
Fergus Henderson
a3c5911e44 `mkdir -p' doesn't work on munta if the directory already exists.
mercury/scripts/Mmake:
	`mkdir -p' doesn't work on munta if the directory already exists.
	(Need to make the same change in all the other Mmake files too.)
1995-03-18 09:50:48 +00:00
Fergus Henderson
871c112dd9 Various changes to get things working with Sicstus Prolog.
scripts/*:
	Various changes to get things working with Sicstus Prolog.
1995-03-17 08:15:22 +00:00
Fergus Henderson
219e5c5cbe Add the scripts for SICStus Prolog.
mercury/scripts/Mmake:
	Add the scripts for SICStus Prolog.
1995-03-15 10:58:54 +00:00
Fergus Henderson
c593819e3c Add Mmake file for the scripts directory. 1995-03-11 15:34:52 +00:00