/mkinstalldirs (d2d5f21b611235316317197d3a32c2dff5897a6f) (1988 bytes) (mode 100755) (type blob)
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
errstatus=0
dirmode=""
usage="\
Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
# process command line arguments
while test $# -gt 0 ; do
case $1 in
-h | --help | --h*) # -h for help
echo "$usage" 1>&2
exit 0
;;
-m) # -m PERM arg
shift
test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
dirmode=$1
shift
;;
--) # 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
case $dirmode in
'')
if mkdir -p -- . 2>/dev/null; then
echo "mkdir -p -- $*"
exec mkdir -p -- "$@"
fi
;;
*)
if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
echo "mkdir -m $dirmode -p -- $*"
exec mkdir -m "$dirmode" -p -- "$@"
fi
;;
esac
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
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
# End:
# mkinstalldirs ends here
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
133 |
6b86cef90c51edb74c2b5fda9c51b8cb7de29b67 |
.cvsignore |
100644 |
blob |
36 |
70b3e869bbd9f4e3bd75caa45993f0a414c36662 |
AUTHORS |
100644 |
blob |
17992 |
d60c31a97a544b53039088d14fe9114583c0efc3 |
COPYING |
100644 |
blob |
0 |
e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
ChangeLog |
100644 |
blob |
9316 |
9d3feaee76e91b92bbd9c6f5ae339fab6b2cab0a |
INSTALL |
100644 |
blob |
14 |
af437a64d6d80a47ea903fd842a648fc59cbcd9a |
Makefile.am |
100644 |
blob |
58 |
4f7e94612b7258d646cbfb09fe7b8b02af4e7b07 |
NEWS |
100644 |
blob |
73 |
fde9fe4ad903eaea2a191781442492cc3d919de3 |
README |
100755 |
blob |
42080 |
d56c46d843362172e11b76a2888d964a460f0af7 |
config.guess |
100755 |
blob |
30400 |
689009918111faa938343ef6f53ab3d8a6fb86e8 |
config.sub |
100644 |
blob |
468 |
7af2683b5c9bf8d44003554b2463cabc4d0d8493 |
configure.ac |
100755 |
blob |
13866 |
edb5d38efdb2f5cb274a8c493fa5ed776f06ae22 |
depcomp |
040000 |
tree |
- |
d74b51a56cfd03133e13f3a229058f603a602221 |
doc |
100755 |
blob |
7122 |
6ce63b9f76bc6ab5ff08f967f52f8cf4c53a1353 |
install-sh |
100755 |
blob |
10266 |
fc54c64ec969d9c1630335d8a88c5d72d3ca0856 |
missing |
100755 |
blob |
1988 |
d2d5f21b611235316317197d3a32c2dff5897a6f |
mkinstalldirs |
040000 |
tree |
- |
aa240d102b92fdf7705243ded9ea632396fb8dbf |
src |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/pjass
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/pjass
Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/pjass
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main