The makefile of pgaccess (CVS)

Поиск
Список
Период
Сортировка
Искать

The makefile of pgaccess (CVS)

От:
Kovacs Baldvin <kb136@hszk.bme.hu>
Дата:
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; doneinstalldirs:


Bye,
Baldvin

FAQ