head	1.2;
access;
symbols
	morgan_0_75:1.1.1.1
	pam_unpruned:1.1.1.1
	morgan_0_65:1.1.1.1
	MORGAN:1.1.1;
locks; strict;
comment	@# @;


1.2
date	98.11.25.19.45.44;	author jdp;	state dead;
branches;
next	1.1;

1.1
date	98.11.18.01.16.19;	author jdp;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.11.18.01.16.19;	author jdp;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Remove files that we don't use and are unlikely to use.  You can
still get them with "cvs upd -r pam_unpruned" if you want to look at
them.
@
text
@#!/bin/sh
#
# this is a wrapper for difficult mkdir programs...
#

for d in $*
do
	if [ ! -d $d ]; then
		mkdir -p $d
		if [ $? -ne 0 ]; then exit $? ; fi
	fi
done

exit 0

##########################################################################
# if your mkdir does not support the -p option delete the above lines and
# use what follows:
--------------------
#!/bin/sh

#VERBOSE=yes
Cwd=`pwd`

for d in $*
do
	if [ "`echo $d|cut -c1`" != "/" ]; then 
		x=`pwd`/$d
	else
		x=$d
	fi
	x="`echo $x|sed -e 'yX/X X'`"
	cd /
	for s in $x
	do
		if [ -d $s ]; then
			if [ -n "$VERBOSE" ]; then echo -n "[$s/]"; fi
			cd $s
		else
			mkdir $s
			if [ $? -ne 0 ]; then exit $? ; fi
			if [ -n "$VERBOSE" ]; then echo -n "$s/"; fi
			cd $s
		fi
	done
	if [ -n "$VERBOSE" ]; then echo ; fi
	cd $Cwd
done

exit 0
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Initial import of virgin Linux-PAM 0.65, slightly stripped down.
@
text
@@
