diff options
author | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 12:48:14 -0800 |
---|---|---|
committer | Steve Langasek <steve.langasek@ubuntu.com> | 2019-01-03 12:48:14 -0800 |
commit | d5b06b67bbeeed7c05c0eb2e05d6a972ad050d1c (patch) | |
tree | ba5654cffacfd2002eefc5bc3764a7971afff1dc /Linux-PAM/conf/mkdirp | |
parent | 4c51da22e068907adb7857d50f5109a467c94d7c (diff) | |
parent | 7cbfa335c57d068d59508c844f3957165cccfb9b (diff) | |
download | pam-d5b06b67bbeeed7c05c0eb2e05d6a972ad050d1c.tar.gz pam-d5b06b67bbeeed7c05c0eb2e05d6a972ad050d1c.tar.bz2 pam-d5b06b67bbeeed7c05c0eb2e05d6a972ad050d1c.zip |
New upstream version 0.99.7.1
Diffstat (limited to 'Linux-PAM/conf/mkdirp')
-rwxr-xr-x | Linux-PAM/conf/mkdirp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/Linux-PAM/conf/mkdirp b/Linux-PAM/conf/mkdirp deleted file mode 100755 index b0e04b05..00000000 --- a/Linux-PAM/conf/mkdirp +++ /dev/null @@ -1,50 +0,0 @@ -#!/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 |