freebsd-ports/devel/imake-4/files/patch-h
Satoshi Asami 56c6e47356 Work around bug (?) in BSD make that causes HTML manpages to be generated
with wrong suffix when MANSUFFIX is defined.

Submitted by:	maintainer
2000-09-06 09:41:47 +00:00

32 lines
1.3 KiB
Plaintext

--- cf/Imake.rules.orig Sun Jun 18 03:39:14 2000
+++ cf/Imake.rules Fri Sep 1 13:33:50 2000
@@ -1297,8 +1297,8 @@
@@\
dest.suffix.html: file.man RmanCmdDependency @@\
RemoveFiles(dest.suffix.html dest.suffix-html) @@\
- RunProgram(RMAN,$(RMANOPTIONS) < file.man > dest.suffix-html) &&\ @@\
- $(MV) dest.suffix-html $@ @@\
+ RunProgram(RMAN,$(RMANOPTIONS) < file.man > dest.suffix-html) && \ @@\
+ $(MV) dest.suffix-html dest.suffix.html @@\
@@\
install.man:: dest.suffix.html @@\
MakeDir($(DESTDIR)$(DOCHTMLDIR)) @@\
@@ -1533,7 +1533,7 @@
MakeDir(Concat($(DESTDIR),npath/mdir)) @@\
@MakeFlagsToShellFlags(i,set +e); \ @@\
if [ -d Concat($(DESTDIR),opath/cdir) ]; then \ @@\
- RELPATH=`echo opath/cdir | \ @@\
+ RELPATH=`cd opath/cdir; pwd | \ @@\
sed -e 's:^.::' -e 's:[^/.][^/]*:..:'g`; \ @@\
cd Concat($(DESTDIR),opath/cdir); \ @@\
if [ -d rdir -a ! -h rdir ]; then \ @@\
@@ -1580,7 +1580,7 @@
MakeDir(Concat($(DESTDIR),npath)) @@\
@MakeFlagsToShellFlags(i,set +e); \ @@\
if [ -d Concat($(DESTDIR),opath) ]; then \ @@\
- RELPATH=`echo opath | \ @@\
+ RELPATH=`cd opath; pwd | \ @@\
sed -e 's:^.::' -e 's:[^/.][^/]*:..:'g`; \ @@\
cd Concat($(DESTDIR),opath); \ @@\
if [ -f lfile -a ! -h lfile ]; then \ @@\