]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
install-sh -d barfs if the directory has a trailing slash
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 18 Nov 2012 16:58:11 +0000 (16:58 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 18 Nov 2012 18:22:19 +0000 (18:22 +0000)
src/include/all.mk

index c3e89634dc860a9cd043bb979e5bd0a9f3b372fa..ae52bb012af743557e2158e80fbe1b623504291b 100644 (file)
@@ -1,5 +1,4 @@
 #
-# Makefile
 #
 # Version:     $Id$
 #
@@ -60,7 +59,7 @@ install.src.include: $(addprefix ${SRC_INCLUDE_DIR}/,${HEADERS})
 # install the headers by re-writing the local files
 ${SRC_INCLUDE_DIR}/%.h: ${top_srcdir}/src/include/%.h
        @echo INSTALL $(notdir $<)
-       @$(INSTALL) -d -m 755 $(dir $@)
+       @$(INSTALL) -d -m 755 `echo $(dir $@) | sed 's/\/$$/'`
        @sed 's/^#include <freeradius-devel/#include <freeradius/' < $< > $@
        @chmod 644 $@