The makefile of pgaccess (CVS)

Started by Kovacs Baldvinalmost 25 years ago1 messages
#1Kovacs Baldvin
kb136@hszk.bme.hu
1 attachment(s)

Hi!

I had very funny problems with "make install" of the
CVS version. The clue was a bit strange behavior of bash
(/bin/sh is only a link in my debian).

The whole thing is about wildcard expansion: there's an
option called nocaseglob. I never heard of it before,
but this was the cause for the Error 1 while make install.
I don't know, what is the default of this option in
bash, but in my computer shows different behaviour with
interactive shells and non interactives.

I had to make a patch, qiute trivial, in src/bin/pgaccess/Makefile.
I changed the language-installer line so it checks whether it
doesn't really try to copy the CVS subdirectory as a language...

If anyone is interested in it, here's the patch:

--- ./src/bin/pgaccess/Makefile.orig	Sun Feb 18 19:34:01 2001
+++ ./src/bin/pgaccess/Makefile	Sat Apr  7 16:05:01 2001
@@ -30,7 +30,7 @@
 	$(INSTALL_SCRIPT) $(srcdir)/main.tcl $(DESTDIR)$(pgaccessdir)
 	for i in $(srcdir)/lib/*.tcl; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib || exit 1; done
 	for i in $(srcdir)/lib/help/*.hlp; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib/help || exit 1; done
-	for i in $(srcdir)/lib/languages/[a-z]*; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib/languages || exit 1; done
+	for i in $(srcdir)/lib/languages/[a-z]*; do [ -f "$$i" ] && { $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib/languages || exit 1; }; done
 	for i in $(srcdir)/images/*.gif; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/images || exit 1; done

installdirs:

Bye,
Baldvin

Attachments:

Makefile.patchtext/plain; charset=US-ASCII; name=Makefile.patchDownload
--- ./src/bin/pgaccess/Makefile.orig	Sun Feb 18 19:34:01 2001
+++ ./src/bin/pgaccess/Makefile	Sat Apr  7 16:05:01 2001
@@ -30,7 +30,7 @@
 	$(INSTALL_SCRIPT) $(srcdir)/main.tcl $(DESTDIR)$(pgaccessdir)
 	for i in $(srcdir)/lib/*.tcl; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib || exit 1; done
 	for i in $(srcdir)/lib/help/*.hlp; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib/help || exit 1; done
-	for i in $(srcdir)/lib/languages/[a-z]*; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib/languages || exit 1; done
+	for i in $(srcdir)/lib/languages/[a-z]*; do [ -f "$$i" ] && { $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/lib/languages || exit 1; }; done
 	for i in $(srcdir)/images/*.gif; do $(INSTALL_DATA) $$i $(DESTDIR)$(pgaccessdir)/images || exit 1; done
 
 installdirs: