Обсуждение: another attempt at patching contrib/rserv/Makefile (fwd)

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

another attempt at patching contrib/rserv/Makefile (fwd)

От
Bruce Momjian
Дата:
I just received this patch.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
--- Makefile.broken    Tue Oct  1 11:27:25 2002
+++ Makefile    Tue Oct  1 11:28:21 2002
@@ -25,7 +25,7 @@
     sed 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' $< >$@

 $(PERLS) $(TCLS) $(SCRIPTS): %: %.in
-    sed -e 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' \
+    sed -e 's,@MODULE_FILENAME@,\\$$libdir/$(NAME),g' \
         -e 's:@SQLDIR@:$(datadir)/contrib:g' \
         -e 's:@BINDIR@:$(bindir):g' \
         -e 's:@LIBDIR@:$(datadir)/contrib:g' $< >$@
Greetings, Bruce!

  This one does not use hardcoded paths, but just adds a backslash
  before '$libdir' to prevent variable interpolation in Perl. Hope
  this will work out OK. :]

--
С уважением, Алексей Борзов
отдел интернет-проектов ООО "РДВ-Медиа"
http://www.rdw.ru
http://www.vashdosug.ru

Вложения