Skip to content
Snippets Groups Projects
Commit 41e9f585 authored by Alexandre Bourget's avatar Alexandre Bourget
Browse files

Ignore our new libs and build stuff. Remove make-generated stuff from sflphone-gtk.

Thanks
parent e44aab3b
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,31 @@ doc/*.html
/src/sflphone
/src/.libs
# Ignore built DBUS stuff
/libs/dbus/examples/*
/libs/dbus/include
/libs/dbus/*/*.libs*
/libs/dbus/libtool
/libs/dbus/autom4te*
/libs/dbus/config.log
/libs/dbus/config.status
/libs/dbus/configure
/libs/dbus/tools/dbusxx-*
/libs/dbus/dbus-c++-1.pc
/libs/dbus/doc
# Ignore sflphone-gtk stuff
/sflphone-gtk/config.*
/sflphone-gtk/configure
/sflphone-gtk/depcomp
/sflphone-gtk/install-sh
/sflphone-gtk/missing
/sflphone-gtk/mkinstalldirs
/sflphone-gtk/src/sflphone-gtk
/sflphone-gtk/autom4te*
# Ignore temp libs stuff
tools/portaudio
......@@ -73,3 +98,7 @@ tools/portaudio
# Ignore platform packaging temp files
/platform/debian/changelog
# Les foutus .svn
*.svn*
\ No newline at end of file
Installation Instructions
*************************
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
Software Foundation, Inc.
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
2006 Free Software Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
......@@ -10,7 +10,10 @@ unlimited permission to copy, distribute and modify it.
Basic Installation
==================
These are generic installation instructions.
Briefly, the shell commands `./configure; make; make install' should
configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
instructions specific to this package.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
......@@ -23,9 +26,9 @@ debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. (Caching is
the results of its tests to speed up reconfiguring. Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)
cache files.
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
......@@ -35,20 +38,17 @@ some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.
`configure' by a program called `autoconf'. You need `configure.ac' if
you want to change it or regenerate `configure' using a newer version
of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
`./configure' to configure the package for your system.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
Running `configure' might take a while. While running, it prints
some messages telling which features it is checking for.
2. Type `make' to compile the package.
......@@ -78,7 +78,7 @@ details on some of the pertinent environment variables.
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
./configure CC=c99 CFLAGS=-g LIBS=-lposix
*Note Defining Variables::, for more details.
......@@ -87,17 +87,15 @@ Compiling For Multiple Architectures
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
own directory. To do this, you can use GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory. After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.
With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
installed the package for one architecture, use `make distclean' before
reconfiguring for another architecture.
Installation Names
==================
......@@ -190,12 +188,12 @@ them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script). Here is a another example:
overridden in the site shell script).
/bin/bash ./configure CONFIG_SHELL=/bin/bash
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
an Autoconf bug. Until the bug is fixed you can use this workaround:
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
configuration-related scripts to be executed by `/bin/bash'.
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
`configure' Invocation
======================
......
This diff is collapsed.
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Name of package */
#define PACKAGE "SFLPhone"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "sflphoneteam@savoirfairelinux.com"
/* Define to the full name of this package. */
#define PACKAGE_NAME "SFLPhone"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "SFLPhone 0.8"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "sflphone"
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.8"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "0.8"
/* config.h.in. Generated from configure.ac by autoheader. */
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by SFLPhone configure 0.8, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --with-debug
## --------- ##
## Platform. ##
## --------- ##
hostname = pierre-luc-desktop
uname -m = i686
uname -r = 2.6.20-16-lowlatency
uname -s = Linux
uname -v = #2 SMP PREEMPT Thu Jun 7 20:23:03 UTC 2007
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1755: checking for a BSD-compatible install
configure:1811: result: /usr/bin/install -c
configure:1822: checking whether build environment is sane
configure:1865: result: yes
configure:1930: checking for gawk
configure:1946: found /usr/bin/gawk
configure:1957: result: gawk
configure:1968: checking whether make sets $(MAKE)
configure:1989: result: yes
configure:2235: checking for gcc
configure:2262: result: colorgcc
configure:2500: checking for C compiler version
configure:2507: colorgcc --version >&5
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2510: $? = 0
configure:2517: colorgcc -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
configure:2520: $? = 0
configure:2527: colorgcc -V >&5
gcc: '-V' option must have argument
configure:2530: $? = 1
configure:2553: checking for C compiler default output file name
configure:2580: colorgcc -g -DDEBUG conftest.c >&5
configure:2583: $? = 0
configure:2621: result: a.out
configure:2638: checking whether the C compiler works
configure:2648: ./a.out
configure:2651: $? = 0
configure:2668: result: yes
configure:2675: checking whether we are cross compiling
configure:2677: result: no
configure:2680: checking for suffix of executables
configure:2687: colorgcc -o conftest -g -DDEBUG conftest.c >&5
configure:2690: $? = 0
configure:2714: result:
configure:2720: checking for suffix of object files
configure:2746: colorgcc -c -g -DDEBUG conftest.c >&5
configure:2749: $? = 0
configure:2772: result: o
configure:2776: checking whether we are using the GNU C compiler
configure:2805: colorgcc -c -g -DDEBUG conftest.c >&5
configure:2811: $? = 0
configure:2828: result: yes
configure:2833: checking whether colorgcc accepts -g
configure:2863: colorgcc -c -g conftest.c >&5
configure:2869: $? = 0
configure:2968: result: yes
configure:2985: checking for colorgcc option to accept ISO C89
configure:3059: colorgcc -c -g -DDEBUG conftest.c >&5
configure:3065: $? = 0
configure:3088: result: none needed
configure:3117: checking for style of include used by make
configure:3145: result: GNU
configure:3173: checking dependency style of colorgcc
configure:3263: result: gcc3
configure:3293: checking for a BSD-compatible install
configure:3349: result: /usr/bin/install -c
configure:3366: checking how to run the C preprocessor
configure:3406: colorgcc -E conftest.c
configure:3412: $? = 0
configure:3443: colorgcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:3449: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "SFLPhone"
| #define PACKAGE_TARNAME "sflphone"
| #define PACKAGE_VERSION "0.8"
| #define PACKAGE_STRING "SFLPhone 0.8"
| #define PACKAGE_BUGREPORT "sflphoneteam@savoirfairelinux.com"
| #define PACKAGE "SFLPhone"
| #define VERSION "0.8"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3482: result: colorgcc -E
configure:3511: colorgcc -E conftest.c
configure:3517: $? = 0
configure:3548: colorgcc -E conftest.c
conftest.c:10:28: error: ac_nonexistent.h: No such file or directory
configure:3554: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "SFLPhone"
| #define PACKAGE_TARNAME "sflphone"
| #define PACKAGE_VERSION "0.8"
| #define PACKAGE_STRING "SFLPhone 0.8"
| #define PACKAGE_BUGREPORT "sflphoneteam@savoirfairelinux.com"
| #define PACKAGE "SFLPhone"
| #define VERSION "0.8"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3592: checking for grep that handles long lines and -e
configure:3666: result: /bin/grep
configure:3671: checking for egrep
configure:3749: result: /bin/grep -E
configure:3754: checking for ANSI C header files
configure:3784: colorgcc -c -g -DDEBUG conftest.c >&5
configure:3790: $? = 0
configure:3889: colorgcc -o conftest -g -DDEBUG conftest.c >&5
configure:3892: $? = 0
configure:3898: ./conftest
configure:3901: $? = 0
configure:3918: result: yes
configure:3978: checking for pkg-config
configure:3996: found /usr/bin/pkg-config
configure:4008: result: /usr/bin/pkg-config
configure:4037: checking pkg-config is at least version 0.9.0
configure:4040: result: yes
configure:4051: checking for DEPS
configure:4063: $PKG_CONFIG --exists --print-errors "\
dbus-glib-1 >= 0.35 \
gtk+-2.0 >= 2.2 \
glib-2.0 >= 2.2 \
"
configure:4070: $? = 0
configure:4093: $PKG_CONFIG --exists --print-errors "\
dbus-glib-1 >= 0.35 \
gtk+-2.0 >= 2.2 \
glib-2.0 >= 2.2 \
"
configure:4100: $? = 0
configure:4196: result: yes
configure:4321: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by SFLPhone config.status 0.8, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on pierre-luc-desktop
config.status:638: creating Makefile
config.status:638: creating src/Makefile
config.status:638: creating pixmaps/Makefile
config.status:638: creating config.h
config.status:849: config.h is unchanged
config.status:895: executing depfiles commands
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=colorgcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DEPS_CFLAGS_set=
ac_cv_env_DEPS_CFLAGS_value=
ac_cv_env_DEPS_LIBS_set=
ac_cv_env_DEPS_LIBS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_header_stdc=yes
ac_cv_objext=o
ac_cv_path_EGREP='/bin/grep -E'
ac_cv_path_GREP=/bin/grep
ac_cv_path_ac_pt_PKG_CONFIG=/usr/bin/pkg-config
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='colorgcc -E'
ac_cv_prog_ac_ct_CC=colorgcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
pkg_cv_DEPS_CFLAGS='-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 '
pkg_cv_DEPS_LIBS='-ldbus-glib-1 -ldbus-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 '
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/plbeaudoin/SFLPhone/sflphone-gtk/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/plbeaudoin/SFLPhone/sflphone-gtk/missing --run tar'
AUTOCONF='${SHELL} /home/plbeaudoin/SFLPhone/sflphone-gtk/missing --run autoconf'
AUTOHEADER='${SHELL} /home/plbeaudoin/SFLPhone/sflphone-gtk/missing --run autoheader'
AUTOMAKE='${SHELL} /home/plbeaudoin/SFLPhone/sflphone-gtk/missing --run automake-1.9'
AWK='gawk'
CC='colorgcc'
CCDEPMODE='depmode=gcc3'
CFLAGS=' -g -DDEBUG'
CPP='colorgcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DEPS_CFLAGS='-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 '
DEPS_LIBS='-ldbus-glib-1 -ldbus-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 '
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/bin/grep -E'
EXEEXT=''
GREP='/bin/grep'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/plbeaudoin/SFLPhone/sflphone-gtk/missing --run makeinfo'
OBJEXT='o'
PACKAGE='SFLPhone'
PACKAGE_BUGREPORT='sflphoneteam@savoirfairelinux.com'
PACKAGE_NAME='SFLPhone'
PACKAGE_STRING='SFLPhone 0.8'
PACKAGE_TARNAME='sflphone'
PACKAGE_VERSION='0.8'
PATH_SEPARATOR=':'
PKG_CONFIG='/usr/bin/pkg-config'
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.8'
ac_ct_CC='colorgcc'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='/home/plbeaudoin/SFLPhone/sflphone-gtk/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "SFLPhone"
#define PACKAGE_TARNAME "sflphone"
#define PACKAGE_VERSION "0.8"
#define PACKAGE_STRING "SFLPhone 0.8"
#define PACKAGE_BUGREPORT "sflphoneteam@savoirfairelinux.com"
#define PACKAGE "SFLPhone"
#define VERSION "0.8"
#define STDC_HEADERS 1
configure: exit 0
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by SFLPhone config.status 0.8, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status src/Makefile depfiles
on pierre-luc-desktop
config.status:638: creating src/Makefile
config.status:895: executing depfiles commands
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by SFLPhone config.status 0.8, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status src/Makefile depfiles
on pierre-luc-desktop
config.status:638: creating src/Makefile
config.status:895: executing depfiles commands
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by SFLPhone config.status 0.8, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status src/Makefile depfiles
on pierre-luc-desktop
config.status:638: creating src/Makefile
config.status:895: executing depfiles commands
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by SFLPhone config.status 0.8, which was
generated by GNU Autoconf 2.61. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status src/Makefile depfiles
on pierre-luc-desktop
config.status:638: creating src/Makefile
config.status:895: executing depfiles commands
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
scriptversion=2005-06-29.22
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain.
#
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
errstatus=0
dirmode=
usage="\
Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
Create each directory DIR (with mode MODE, if specified), including all
leading file name components.
Report bugs to <bug-automake@gnu.org>."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help | --h*) # -h for help
echo "$usage"
exit $?
;;
-m) # -m PERM arg
shift
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
dirmode=$1
shift
;;
--version)
echo "$0 $scriptversion"
exit $?
;;
--) # stop option processing
shift
break
;;
-*) # unknown option
echo "$usage" 1>&2
exit 1
;;
*) # first non-opt arg
break
;;
esac
done
for file
do
if test -d "$file"; then
shift
else
break
fi
done
case $# in
0) exit 0 ;;
esac
# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
# mkdir -p a/c at the same time, both will detect that a is missing,
# one will create a, then the other will try to create a and die with
# a "File exists" error. This is a problem when calling mkinstalldirs
# from a parallel make. We use --version in the probe to restrict
# ourselves to GNU mkdir, which is thread-safe.
case $dirmode in
'')
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
echo "mkdir -p -- $*"
exec mkdir -p -- "$@"
else
# On NextStep and OpenStep, the `mkdir' command does not
# recognize any option. It will interpret all options as
# directories to create, and then abort because `.' already
# exists.
test -d ./-p && rmdir ./-p
test -d ./--version && rmdir ./--version
fi
;;
*)
if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
test ! -d ./--version; then
echo "mkdir -m $dirmode -p -- $*"
exec mkdir -m "$dirmode" -p -- "$@"
else
# Clean up after NextStep and OpenStep mkdir.
for d in ./-m ./-p ./--version "./$dirmode";
do
test -d $d && rmdir $d
done
fi
;;
esac
for file
do
case $file in
/*) pathcomp=/ ;;
*) pathcomp= ;;
esac
oIFS=$IFS
IFS=/
set fnord $file
shift
IFS=$oIFS
for d
do
test "x$d" = x && continue
pathcomp=$pathcomp$d
case $pathcomp in
-*) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
else
if test ! -z "$dirmode"; then
echo "chmod $dirmode $pathcomp"
lasterr=
chmod "$dirmode" "$pathcomp" || lasterr=$?
if test ! -z "$lasterr"; then
errstatus=$lasterr
fi
fi
fi
fi
pathcomp=$pathcomp/
done
done
exit $errstatus
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-end: "$"
# End:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment