added mkinstalldirs
authorStefan Schubert <schubi@suse.de>
Mon, 6 Feb 2006 10:56:21 +0000 (10:56 +0000)
committerStefan Schubert <schubi@suse.de>
Mon, 6 Feb 2006 10:56:21 +0000 (10:56 +0000)
Makefile.am
mkinstalldirs [new file with mode: 0755]
zmd/testsuite/Makefile

index 2cf539e..595b954 100644 (file)
@@ -9,7 +9,7 @@ if BUILD_ZMD
 else
   SUB_ZMD=
 endif
-SUBDIRS = po doc zypp testsuite $(SUB_ZMD)
+SUBDIRS = doc zypp testsuite $(SUB_ZMD)
 
 ## ##################################################
 
@@ -21,4 +21,5 @@ package: dist
 #ACLOCAL_AMFLAGS = -I m4
 ACLOCAL_AMFLAGS =
 
-#EXTRA_DIST = config.rpath mkinstalldirs
+EXTRA_DIST = mkinstalldirs
+#config.rpath
diff --git a/mkinstalldirs b/mkinstalldirs
new file mode 100755 (executable)
index 0000000..259dbfc
--- /dev/null
@@ -0,0 +1,158 @@
+#! /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:
index 04d8b0c..e6ff3ba 100644 (file)
@@ -33,9 +33,9 @@ POST_INSTALL = :
 NORMAL_UNINSTALL = :
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
-build_triplet = x86_64-suse-linux
-host_triplet = x86_64-suse-linux
-target_triplet = x86_64-suse-linux
+build_triplet = i686-suse-linux
+host_triplet = i686-suse-linux
+target_triplet = i686-suse-linux
 subdir = zmd/testsuite
 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -61,15 +61,15 @@ EXPECT = expect
 RUNTEST = runtest
 DIST_SUBDIRS = $(SUBDIRS)
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /usr/local/src/svn/zypp/libzypp/missing --run aclocal-1.9
+ACLOCAL = ${SHELL} /usr/local/src/solver/trunk/zypp-0.0.0/missing --run aclocal-1.9
 ALLOCA = 
 AMDEP_FALSE = #
 AMDEP_TRUE = 
-AMTAR = ${SHELL} /usr/local/src/svn/zypp/libzypp/missing --run tar
+AMTAR = ${SHELL} /usr/local/src/solver/trunk/zypp-0.0.0/missing --run tar
 AR = ar
-AUTOCONF = ${SHELL} /usr/local/src/svn/zypp/libzypp/missing --run autoconf
-AUTOHEADER = ${SHELL} /usr/local/src/svn/zypp/libzypp/missing --run autoheader
-AUTOMAKE = ${SHELL} /usr/local/src/svn/zypp/libzypp/missing --run automake-1.9
+AUTOCONF = ${SHELL} /usr/local/src/solver/trunk/zypp-0.0.0/missing --run autoconf
+AUTOHEADER = ${SHELL} /usr/local/src/solver/trunk/zypp-0.0.0/missing --run autoheader
+AUTOMAKE = ${SHELL} /usr/local/src/solver/trunk/zypp-0.0.0/missing --run automake-1.9
 AWK = gawk
 BUILD_INCLUDED_LIBINTL = no
 BUILD_ZMD_FALSE = #
@@ -83,7 +83,7 @@ CPPFLAGS =
 CXX = g++
 CXXCPP = g++ -E
 CXXDEPMODE = depmode=gcc3
-CXXFLAGS = -g -O2 -Wall -Wformat
+CXXFLAGS = -g -O2 -Wall -Wformat -D_FILE_OFFSET_BITS=64
 CYGPATH_W = echo
 DATADIRNAME = share
 DEFS = -DHAVE_CONFIG_H
@@ -101,9 +101,9 @@ GENCAT = gencat
 GLIBC2 = yes
 GLIBC21 = yes
 GMSGFMT = /usr/bin/msgfmt
-HAL_CFLAGS = -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/hal -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib64/glib-2.0/include  
+HAL_CFLAGS = -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/hal -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include  
 HAL_LDADD = 
-HAL_LIBS = -L/opt/gnome/lib64 -lgobject-2.0 -ldbus-glib-1 -lglib-2.0 -lhal-storage -lhal -ldbus-1  
+HAL_LIBS = -L/opt/gnome/lib -lgobject-2.0 -ldbus-glib-1 -lglib-2.0 -lhal-storage -lhal -ldbus-1  
 HAVE_ASPRINTF = 1
 HAVE_DOT = YES
 HAVE_POSIX_PRINTF = 1
@@ -131,7 +131,7 @@ LN_S = ln -s
 LTLIBICONV = 
 LTLIBINTL = 
 LTLIBOBJS = 
-MAKEINFO = ${SHELL} /usr/local/src/svn/zypp/libzypp/missing --run makeinfo
+MAKEINFO = ${SHELL} /usr/local/src/solver/trunk/zypp-0.0.0/missing --run makeinfo
 MKINSTALLDIRS = $(top_builddir)/./mkinstalldirs
 MSGFMT = /usr/bin/msgfmt
 MSGMERGE = /usr/bin/msgmerge
@@ -173,23 +173,23 @@ am__quote =
 am__tar = tar --format=ustar -chf - "$$tardir"
 am__untar = tar -xf -
 bindir = ${exec_prefix}/bin
-build = x86_64-suse-linux
+build = i686-suse-linux
 build_alias = 
-build_cpu = x86_64
+build_cpu = i686
 build_os = linux
 build_vendor = suse
 datadir = ${prefix}/share
 docdir = ${datadir}/doc/packages
 exec_prefix = ${prefix}
-host = x86_64-suse-linux
+host = i686-suse-linux
 host_alias = 
-host_cpu = x86_64
+host_cpu = i686
 host_os = linux
 host_vendor = suse
 includedir = ${prefix}/include
 infodir = ${prefix}/info
-install_sh = /usr/local/src/svn/zypp/libzypp/install-sh
-libdir = /usr/lib64
+install_sh = /usr/local/src/solver/trunk/zypp-0.0.0/install-sh
+libdir = /usr/lib
 libexecdir = ${exec_prefix}/libexec
 localedir = /usr/share/zypp/locale
 localstatedir = ${prefix}/var
@@ -203,9 +203,9 @@ sbindir = ${exec_prefix}/sbin
 schemadir = /usr/share/zypp/schema
 sharedstatedir = ${prefix}/com
 sysconfdir = ${prefix}/etc
-target = x86_64-suse-linux
+target = i686-suse-linux
 target_alias = 
-target_cpu = x86_64
+target_cpu = i686
 target_os = linux
 target_vendor = suse
 zyppdir = /usr/share/zypp