Apply entab fix from Marko Kreen for these problems:
authorAlvaro Herrera
Tue, 11 Jul 2006 21:21:59 +0000 (21:21 +0000)
committerAlvaro Herrera
Tue, 11 Jul 2006 21:21:59 +0000 (21:21 +0000)
- halt.c did not include stdlib.h, thus missed exit() prototype
- Makefile ignores BINDIR for install.
- Makefile calls install with user/group args, thus failing for regular user.

While trying it I noticed that the Makefile does not support VPATH builds ...

src/tools/entab/Makefile
src/tools/entab/halt.c

index d56accb704bc8b169a97898363414d0aba0db83a..64697a5d700df51af3d26ade2a19aa1884842758 100644 (file)
@@ -23,7 +23,7 @@ clean:
 install:
    make clean
    make CFLAGS=-O
-   install -s -o bin -g bin $(TARGET) $(BINDIR)
+   install -s $(TARGET) $(BINDIR)
    rm -f $(BINDIR)/detab
-   ln /usr/local/bin/$(TARGET) $(BINDIR)/detab
+   ln $(BINDIR)/$(TARGET) $(BINDIR)/detab
 
index 20a40231eaf7da9e61c50788cd4b46065b2b39dd..af55fa9c2d5392c899adf60b3d519ff7be11a693 100644 (file)
@@ -2,7 +2,7 @@
 **
 **     halt.c
 **
-** $PostgreSQL: pgsql/src/tools/entab/halt.c,v 1.9 2006/03/11 04:38:41 momjian Exp $
+** $PostgreSQL: pgsql/src/tools/entab/halt.c,v 1.10 2006/07/11 21:21:59 alvherre Exp $
 **
 **     This is used to print out error messages and exit
 */
@@ -10,6 +10,7 @@
 #include 
 #include 
 #include 
+#include 
 #include