Changeset 500 in MondoRescue
- Timestamp:
- Apr 29, 2006, 1:50:55 AM (19 years ago)
- Location:
- branches/stable/mondo
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/stable/mondo/Makefile.am ¶
r423 r500 1 1 AUTOMAKE_OPTIONS = 1.7 2 SUBDIRS = mondo 2 SUBDIRS = mondo po 3 3 man8_MANS = docs/man/mondoarchive.8 docs/man/mondorestore.8 4 5 ACLOCAL_AMFLAGS = -I m4 6 7 EXTRA_DIST = config.rpath config.rpath -
TabularUnified branches/stable/mondo/bootstrap ¶
r499 r500 28 28 make maintainer-clean >/dev/null 2>&1 29 29 libtoolize -f -c --automake 30 gettextize -c -f --no-changelog < /dev/null 30 31 aclocal -I m4 31 automake m4/Makefile32 gettextize -c --no-changelog33 32 autoheader 34 33 automake -
TabularUnified branches/stable/mondo/config.guess ¶
r498 r500 2 2 # Attempt to guess a canonical system name. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 5 # Inc. 6 7 timestamp='2006-04-26' 4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 5 6 timestamp='2005-05-15' 8 7 9 8 # This file is free software; you can redistribute it and/or modify it … … 108 107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 109 108 : ${TMPDIR=/tmp} ; 110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||109 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 111 110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 112 111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || … … 127 126 ,,*) CC_FOR_BUILD=$CC ;; 128 127 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 129 esac ; set_cc_for_build= ;'128 esac ;' 130 129 131 130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe. … … 201 200 echo "${machine}-${os}${release}" 202 201 exit ;; 202 amd64:OpenBSD:*:*) 203 echo x86_64-unknown-openbsd${UNAME_RELEASE} 204 exit ;; 205 amiga:OpenBSD:*:*) 206 echo m68k-unknown-openbsd${UNAME_RELEASE} 207 exit ;; 208 cats:OpenBSD:*:*) 209 echo arm-unknown-openbsd${UNAME_RELEASE} 210 exit ;; 211 hp300:OpenBSD:*:*) 212 echo m68k-unknown-openbsd${UNAME_RELEASE} 213 exit ;; 214 luna88k:OpenBSD:*:*) 215 echo m88k-unknown-openbsd${UNAME_RELEASE} 216 exit ;; 217 mac68k:OpenBSD:*:*) 218 echo m68k-unknown-openbsd${UNAME_RELEASE} 219 exit ;; 220 macppc:OpenBSD:*:*) 221 echo powerpc-unknown-openbsd${UNAME_RELEASE} 222 exit ;; 223 mvme68k:OpenBSD:*:*) 224 echo m68k-unknown-openbsd${UNAME_RELEASE} 225 exit ;; 226 mvme88k:OpenBSD:*:*) 227 echo m88k-unknown-openbsd${UNAME_RELEASE} 228 exit ;; 229 mvmeppc:OpenBSD:*:*) 230 echo powerpc-unknown-openbsd${UNAME_RELEASE} 231 exit ;; 232 sgi:OpenBSD:*:*) 233 echo mips64-unknown-openbsd${UNAME_RELEASE} 234 exit ;; 235 sun3:OpenBSD:*:*) 236 echo m68k-unknown-openbsd${UNAME_RELEASE} 237 exit ;; 203 238 *:OpenBSD:*:*) 204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 239 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 206 240 exit ;; 207 241 *:ekkoBSD:*:*) 208 242 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 209 exit ;;210 *:SolidBSD:*:*)211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}212 243 exit ;; 213 244 macppc:MirBSD:*:*) … … 628 659 if [ ${HP_ARCH} = "hppa2.0w" ] 629 660 then 630 eval $set_cc_for_build 661 # avoid double evaluation of $set_cc_for_build 662 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 631 663 632 664 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating … … 769 801 exit ;; 770 802 *:FreeBSD:*:*) 771 case ${UNAME_MACHINE} in 772 pc98) 773 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 774 amd64) 775 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 776 *) 777 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 778 esac 803 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 779 804 exit ;; 780 805 i*:CYGWIN*:*) 781 806 echo ${UNAME_MACHINE}-pc-cygwin 782 807 exit ;; 783 i*:MINGW*:* )808 i*:MINGW*:* | i*:windows32*:*) 784 809 echo ${UNAME_MACHINE}-pc-mingw32 785 exit ;;786 i*:windows32*:*)787 # uname -m includes "-pc" on this system.788 echo ${UNAME_MACHINE}-mingw32789 810 exit ;; 790 811 i*:PW*:*) 791 812 echo ${UNAME_MACHINE}-pc-pw32 792 813 exit ;; 793 x86:Interix*:[345]*) 794 echo i586-pc-interix${UNAME_RELEASE} 795 exit ;; 796 EM64T:Interix*:[345]*) 797 echo x86_64-unknown-interix${UNAME_RELEASE} 814 x86:Interix*:[34]*) 815 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 798 816 exit ;; 799 817 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) … … 809 827 echo ${UNAME_MACHINE}-pc-uwin 810 828 exit ;; 811 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)829 amd64:CYGWIN*:*:*) 812 830 echo x86_64-unknown-cygwin 813 831 exit ;; … … 866 884 #endif 867 885 EOF 868 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 869 /^CPU/{ 870 s: ::g 871 p 872 }'`" 886 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 873 887 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 874 888 ;; … … 889 903 #endif 890 904 EOF 891 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 892 /^CPU/{ 893 s: ::g 894 p 895 }'`" 905 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 896 906 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 897 907 ;; 898 or32:Linux:*:*)899 echo or32-unknown-linux-gnu900 exit ;;901 908 ppc:Linux:*:*) 902 909 echo powerpc-unknown-linux-gnu … … 941 948 sparc:Linux:*:* | sparc64:Linux:*:*) 942 949 echo ${UNAME_MACHINE}-unknown-linux-gnu 943 exit ;;944 vax:Linux:*:*)945 echo ${UNAME_MACHINE}-dec-linux-gnu946 950 exit ;; 947 951 x86_64:Linux:*:*) … … 990 994 # endif 991 995 #else 992 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)996 #ifdef __INTEL_COMPILER 993 997 LIBC=gnu 994 998 #else … … 1000 1004 #endif 1001 1005 EOF 1002 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 1003 /^LIBC/{ 1004 s: ::g 1005 p 1006 }'`" 1006 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 1007 1007 test x"${LIBC}" != x && { 1008 1008 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" … … 1215 1215 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1216 1216 case $UNAME_PROCESSOR in 1217 *86) UNAME_PROCESSOR=i686 ;; 1217 1218 unknown) UNAME_PROCESSOR=powerpc ;; 1218 1219 esac … … 1292 1293 i*86:skyos:*:*) 1293 1294 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1294 exit ;;1295 i*86:rdos:*:*)1296 echo ${UNAME_MACHINE}-pc-rdos1297 1295 exit ;; 1298 1296 esac -
TabularUnified branches/stable/mondo/config.sub ¶
r498 r500 2 2 # Configuration validation subroutine script. 3 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, 5 # Inc. 6 7 timestamp='2006-03-07' 4 # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 5 6 timestamp='2005-05-12' 8 7 9 8 # This file is (in principle) common to ALL GNU software. … … 121 120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 122 121 case $maybe_os in 123 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 124 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 125 storm-chaos* | os2-emx* | rtmk-nova*) 122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ 123 kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 126 124 os=-$maybe_os 127 125 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` … … 174 172 os=-hiuxwe2 175 173 ;; 176 -sco6)177 os=-sco5v6178 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`179 ;;180 174 -sco5) 181 175 os=-sco3.2v5 … … 191 185 ;; 192 186 -sco3.2v[4-9]*) 193 # Don't forget version if it is 3.2v4 or newer.194 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`195 ;;196 -sco5v6*)197 187 # Don't forget version if it is 3.2v4 or newer. 198 188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` … … 250 240 | i370 | i860 | i960 | ia64 \ 251 241 | ip2k | iq2000 \ 252 | m32r | m32rle | m68000 | m68k | m88k | maxq | m b | microblaze | mcore \242 | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ 253 243 | mips | mipsbe | mipseb | mipsel | mipsle \ 254 244 | mips16 \ … … 259 249 | mips64vr4300 | mips64vr4300el \ 260 250 | mips64vr5000 | mips64vr5000el \ 261 | mips64vr5900 | mips64vr5900el \262 251 | mipsisa32 | mipsisa32el \ 263 252 | mipsisa32r2 | mipsisa32r2el \ … … 268 257 | mipstx39 | mipstx39el \ 269 258 | mn10200 | mn10300 \ 270 | mt \271 259 | msp430 \ 272 | nios | nios2 \273 260 | ns16k | ns32k \ 274 | o r32 \261 | openrisc | or32 \ 275 262 | pdp10 | pdp11 | pj | pjl \ 276 263 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 277 264 | pyramid \ 278 | sh | sh[1234] | sh[2 4]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \265 | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 279 266 | sh64 | sh64le \ 280 | sparc | sparc64 | sparc64b | sparc 64v | sparc86x | sparclet | sparclite \281 | sparcv8 | sparcv9 | sparcv9b | sparcv9v\267 | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ 268 | sparcv8 | sparcv9 | sparcv9b \ 282 269 | strongarm \ 283 270 | tahoe | thumb | tic4x | tic80 | tron \ … … 288 275 basic_machine=$basic_machine-unknown 289 276 ;; 290 m32c)291 basic_machine=$basic_machine-unknown292 ;;293 277 m6811 | m68hc11 | m6812 | m68hc12) 294 278 # Motorola 68HC11/12. … … 297 281 ;; 298 282 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 299 ;;300 ms1)301 basic_machine=mt-unknown302 283 ;; 303 284 … … 342 323 | mips64vr4300-* | mips64vr4300el-* \ 343 324 | mips64vr5000-* | mips64vr5000el-* \ 344 | mips64vr5900-* | mips64vr5900el-* \345 325 | mipsisa32-* | mipsisa32el-* \ 346 326 | mipsisa32r2-* | mipsisa32r2el-* \ … … 351 331 | mipstx39-* | mipstx39el-* \ 352 332 | mmix-* \ 353 | mt-* \354 333 | msp430-* \ 355 | nios-* | nios2-* \356 334 | none-* | np1-* | ns16k-* | ns32k-* \ 357 335 | orion-* \ … … 360 338 | pyramid-* \ 361 339 | romp-* | rs6000-* \ 362 | sh-* | sh[1234]-* | sh[2 4]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \340 | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 363 341 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 364 | sparc-* | sparc64-* | sparc64b-* | sparc 64v-* | sparc86x-* | sparclet-* \342 | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ 365 343 | sparclite-* \ 366 | sparcv8-* | sparcv9-* | sparcv9b-* | s parcv9v-* | strongarm-* | sv1-* | sx?-* \344 | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 367 345 | tahoe-* | thumb-* \ 368 346 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ … … 375 353 | z8k-*) 376 354 ;; 377 m32c-*)378 ;;379 355 # Recognize the various machine names and aliases which stand 380 356 # for a CPU type and a company and sometimes even an OS. … … 711 687 basic_machine=i386-pc 712 688 os=-msdos 713 ;;714 ms1-*)715 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`716 689 ;; 717 690 mvs) … … 790 763 os=-proelf 791 764 ;; 792 o penrisc | openrisc-*)765 or32 | or32-*) 793 766 basic_machine=or32-unknown 767 os=-coff 794 768 ;; 795 769 os400) … … 822 796 basic_machine=ns32k-pc532 823 797 ;; 824 pc98)825 basic_machine=i386-pc826 ;;827 pc98-*)828 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`829 ;;830 798 pentium | p5 | k5 | k6 | nexgen | viac3) 831 799 basic_machine=i586-pc … … 883 851 basic_machine=i586-unknown 884 852 os=-pw32 885 ;;886 rdos)887 basic_machine=i386-pc888 os=-rdos889 853 ;; 890 854 rom68k) … … 1127 1091 basic_machine=we32k-att 1128 1092 ;; 1129 sh [1234] | sh[24]a| sh[34]eb | sh[1234]le | sh[23]ele)1093 sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 1130 1094 basic_machine=sh-unknown 1131 1095 ;; 1132 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 1096 sh64) 1097 basic_machine=sh64-unknown 1098 ;; 1099 sparc | sparcv8 | sparcv9 | sparcv9b) 1133 1100 basic_machine=sparc-sun 1134 1101 ;; … … 1203 1170 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 1204 1171 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 1205 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 1206 | -openbsd* | -solidbsd* \ 1172 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ 1207 1173 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 1208 1174 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ … … 1211 1177 | -chorusos* | -chorusrdb* \ 1212 1178 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 1213 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 1214 | -uxpv* | -beos* | -mpeix* | -udk* \ 1179 | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ 1215 1180 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 1216 1181 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ … … 1218 1183 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 1219 1184 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 1220 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 1221 | -skyos* | -haiku* | -rdos*) 1185 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* | -skyos*) 1222 1186 # Remember, each alternative MUST END IN *, to match a version number. 1223 1187 ;; … … 1237 1201 ;; 1238 1202 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 1239 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku*\1203 | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 1240 1204 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 1241 1205 ;; … … 1425 1389 *-be) 1426 1390 os=-beos 1427 ;;1428 *-haiku)1429 os=-haiku1430 1391 ;; 1431 1392 *-ibm) -
TabularUnified branches/stable/mondo/configure.in ¶
r497 r500 123 123 AC_CHECK_FUNCS([bzero getcwd memmove memset mkdir mkfifo setenv strcasecmp strchr strerror strrchr strstr]) 124 124 125 AC_OUTPUT([Makefile mondo/Makefile mondo/common/Makefile mondo/mondoarchive/Makefile mondo/mondorestore/Makefile mondo/restore-scripts/Makefile mondo/restore-scripts/mondo/Makefile mondo/restore-scripts/usr/Makefile mondo/restore-scripts/usr/bin/Makefile mondo/post-nuke.sample/Makefile mondo/post-nuke.sample/usr/Makefile mondo/post-nuke.sample/usr/bin/Makefile m4/Makefile .in po/Makefile])125 AC_OUTPUT([Makefile mondo/Makefile mondo/common/Makefile mondo/mondoarchive/Makefile mondo/mondorestore/Makefile mondo/restore-scripts/Makefile mondo/restore-scripts/mondo/Makefile mondo/restore-scripts/usr/Makefile mondo/restore-scripts/usr/bin/Makefile mondo/post-nuke.sample/Makefile mondo/post-nuke.sample/usr/Makefile mondo/post-nuke.sample/usr/bin/Makefile m4/Makefile po/Makefile.in]) -
TabularUnified branches/stable/mondo/mkinstalldirs ¶
r30 r500 1 1 #! /bin/sh 2 2 # mkinstalldirs --- make directory hierarchy 3 # Author: Noah Friedman <friedman@prep.ai.mit.edu> 3 4 scriptversion=2004-02-15.20 5 6 # Original author: Noah Friedman <friedman@prep.ai.mit.edu> 4 7 # Created: 1993-05-16 5 # Public domain 8 # Public domain. 9 # 10 # This file is maintained in Automake, please report 11 # bugs to <bug-automake@gnu.org> or send patches to 12 # <automake-patches@gnu.org>. 6 13 7 14 errstatus=0 … … 9 16 10 17 usage="\ 11 Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." 18 Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... 19 20 Create each directory DIR (with mode MODE, if specified), including all 21 leading file name components. 22 23 Report bugs to <bug-automake@gnu.org>." 12 24 13 25 # process command line arguments 14 26 while test $# -gt 0 ; do 15 case "${1}" in 16 -h | --help | --h* ) # -h for help 17 echo "${usage}" 1>&2; exit 0 ;; 18 -m ) # -m PERM arg 19 shift 20 test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } 21 dirmode="${1}" 22 shift ;; 23 -- ) shift; break ;; # stop option processing 24 -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option 25 * ) break ;; # first non-opt arg 26 esac 27 case $1 in 28 -h | --help | --h*) # -h for help 29 echo "$usage" 30 exit 0 31 ;; 32 -m) # -m PERM arg 33 shift 34 test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } 35 dirmode=$1 36 shift 37 ;; 38 --version) 39 echo "$0 $scriptversion" 40 exit 0 41 ;; 42 --) # stop option processing 43 shift 44 break 45 ;; 46 -*) # unknown option 47 echo "$usage" 1>&2 48 exit 1 49 ;; 50 *) # first non-opt arg 51 break 52 ;; 53 esac 27 54 done 28 55 … … 37 64 38 65 case $# in 39 0) exit 0 ;;66 0) exit 0 ;; 40 67 esac 41 68 69 # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and 70 # mkdir -p a/c at the same time, both will detect that a is missing, 71 # one will create a, then the other will try to create a and die with 72 # a "File exists" error. This is a problem when calling mkinstalldirs 73 # from a parallel make. We use --version in the probe to restrict 74 # ourselves to GNU mkdir, which is thread-safe. 42 75 case $dirmode in 43 '') 44 if mkdir -p -- . 2>/dev/null; then 45 echo "mkdir -p -- $*" 46 exec mkdir -p -- "$@" 47 fi ;; 48 *) 49 if mkdir -m "$dirmode" -p -- . 2>/dev/null; then 50 echo "mkdir -m $dirmode -p -- $*" 51 exec mkdir -m "$dirmode" -p -- "$@" 52 fi ;; 76 '') 77 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 78 echo "mkdir -p -- $*" 79 exec mkdir -p -- "$@" 80 else 81 # On NextStep and OpenStep, the `mkdir' command does not 82 # recognize any option. It will interpret all options as 83 # directories to create, and then abort because `.' already 84 # exists. 85 test -d ./-p && rmdir ./-p 86 test -d ./--version && rmdir ./--version 87 fi 88 ;; 89 *) 90 if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && 91 test ! -d ./--version; then 92 echo "mkdir -m $dirmode -p -- $*" 93 exec mkdir -m "$dirmode" -p -- "$@" 94 else 95 # Clean up after NextStep and OpenStep mkdir. 96 for d in ./-m ./-p ./--version "./$dirmode"; 97 do 98 test -d $d && rmdir $d 99 done 100 fi 101 ;; 53 102 esac 54 103 55 104 for file 56 105 do 57 58 106 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 107 shift 59 108 60 61 62 63 64 case "$pathcomp"in65 -*) pathcomp=./$pathcomp ;;66 109 pathcomp= 110 for d 111 do 112 pathcomp="$pathcomp$d" 113 case $pathcomp in 114 -*) pathcomp=./$pathcomp ;; 115 esac 67 116 68 69 117 if test ! -d "$pathcomp"; then 118 echo "mkdir $pathcomp" 70 119 71 120 mkdir "$pathcomp" || lasterr=$? 72 121 73 if test ! -d "$pathcomp"; then 74 errstatus=$lasterr 75 else 76 if test ! -z "$dirmode"; then 77 echo "chmod $dirmode $pathcomp" 122 if test ! -d "$pathcomp"; then 123 errstatus=$lasterr 124 else 125 if test ! -z "$dirmode"; then 126 echo "chmod $dirmode $pathcomp" 127 lasterr="" 128 chmod "$dirmode" "$pathcomp" || lasterr=$? 78 129 79 lasterr="" 80 chmod "$dirmode" "$pathcomp" || lasterr=$? 81 82 if test ! -z "$lasterr"; then 83 errstatus=$lasterr 84 fi 130 if test ! -z "$lasterr"; then 131 errstatus=$lasterr 85 132 fi 86 133 fi 87 fi 134 fi 135 fi 88 136 89 90 137 pathcomp="$pathcomp/" 138 done 91 139 done 92 140 … … 95 143 # Local Variables: 96 144 # mode: shell-script 97 # sh-indentation: 3 145 # sh-indentation: 2 146 # eval: (add-hook 'write-file-hooks 'time-stamp) 147 # time-stamp-start: "scriptversion=" 148 # time-stamp-format: "%:y-%02m-%02d.%02H" 149 # time-stamp-end: "$" 98 150 # End: 99 # mkinstalldirs ends here
Note:
See TracChangeset
for help on using the changeset viewer.