mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 21:25:30 +08:00
Second aproach at solving the 'install -d' issue. I added a public domain script that supposedly solves the issue on every box. I also looke at 'install-sh', but found a bazillion of versions, doing so much more than we actually need. But I am open to sugestions, and happy to reverse my changes if something better comes along.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5799 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -278,14 +278,6 @@ if test "$INSTALL" = "$ac_install_sh"; then
|
|||||||
# Use full path to install-sh script...
|
# Use full path to install-sh script...
|
||||||
INSTALL="`pwd`/install-sh -c"
|
INSTALL="`pwd`/install-sh -c"
|
||||||
fi
|
fi
|
||||||
AC_PATH_PROG(MKDIRR,mkdir)
|
|
||||||
dnl recursive mkdir
|
|
||||||
if test "x$MKDIRR" = "x:"; then
|
|
||||||
# Use install instead
|
|
||||||
MKDIRR="$INSTALL -d"
|
|
||||||
else
|
|
||||||
MKDIRR="$MKDIRR -p"
|
|
||||||
fi
|
|
||||||
AC_PATH_PROG(NROFF,nroff)
|
AC_PATH_PROG(NROFF,nroff)
|
||||||
if test "x$NROFF" = "x:"; then
|
if test "x$NROFF" = "x:"; then
|
||||||
# Try groff instead of nroff...
|
# Try groff instead of nroff...
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ VPATH = @srcdir@
|
|||||||
# programs we use...
|
# programs we use...
|
||||||
HTMLDOC = @HTMLDOC@
|
HTMLDOC = @HTMLDOC@
|
||||||
INSTALL = @INSTALL@
|
INSTALL = @INSTALL@
|
||||||
MKDIRR = @MKDIRR@
|
MKDIRR = ../mkinstalldirs
|
||||||
LN = ln -s
|
LN = ln -s
|
||||||
NROFF = @NROFF@
|
NROFF = @NROFF@
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
|
|||||||
Executable
+48
@@ -0,0 +1,48 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# mkinstalldirs --- make directory hierarchy
|
||||||
|
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
|
||||||
|
# Created: 1993-05-16
|
||||||
|
# Public domain
|
||||||
|
|
||||||
|
# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $
|
||||||
|
|
||||||
|
errstatus=0
|
||||||
|
|
||||||
|
for file
|
||||||
|
do
|
||||||
|
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
|
||||||
|
shift
|
||||||
|
|
||||||
|
pathcomp=
|
||||||
|
for d
|
||||||
|
do
|
||||||
|
pathcomp="$pathcomp$d"
|
||||||
|
case "$pathcomp" in
|
||||||
|
-* ) pathcomp=./$pathcomp ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
|
||||||
|
mkdir "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
|
if test ! -d "$pathcomp"; then
|
||||||
|
errstatus=$lasterr
|
||||||
|
else
|
||||||
|
lasterr=""
|
||||||
|
|
||||||
|
chmod 755 "$pathcomp" || lasterr=$?
|
||||||
|
|
||||||
|
if test ! -z "$lasterr"; then
|
||||||
|
errstatus=$lasterr
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
pathcomp="$pathcomp/"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $errstatus
|
||||||
|
|
||||||
|
# mkinstalldirs ends here
|
||||||
|
|
||||||
Reference in New Issue
Block a user