diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-03-13 01:21:02 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-03-13 01:21:02 +0000 |
commit | 7451e73ae28b91a77520347c73eedf40d5cad2e9 (patch) | |
tree | c984534e41c9ced3fdd58b79a219620ec83e0936 /source3/script/installdirs.sh | |
parent | b0ace3183f07692892ad793122e61dc244872ca3 (diff) | |
download | samba-7451e73ae28b91a77520347c73eedf40d5cad2e9.tar.gz samba-7451e73ae28b91a77520347c73eedf40d5cad2e9.tar.xz samba-7451e73ae28b91a77520347c73eedf40d5cad2e9.zip |
Move the directory creation process outside the 'installbin.sh' script, and
into its own. The 'installdirs' makefile entry didn't do anything on my laptop,
so it has been replaced with the section from installbin.sh.
This also fixes the bug that we ignored the setting of $(PRIVATEDIR) when
making the directories.
Finally, link pam_winbind with .po objects only, not a mix of .o and .po
(as per Don Mccall's request).
Andrew Bartlett
(This used to be commit c7a883df28da9dd6fb88198df22c4d78bf8acd8b)
Diffstat (limited to 'source3/script/installdirs.sh')
-rwxr-xr-x | source3/script/installdirs.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/script/installdirs.sh b/source3/script/installdirs.sh new file mode 100755 index 00000000000..dd8f7cd19c6 --- /dev/null +++ b/source3/script/installdirs.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +BASEDIR=$1 +SBINDIR=$2 +BINDIR=$3 +LIBDIR=$4 +VARDIR=$5 +PRIVATEDIR=$6 + +for d in $BASEDIR $SBINDIR $BINDIR $LIBDIR $VARDIR $PRIVATEDIR; do +if [ ! -d $d ]; then +mkdir $d +if [ ! -d $d ]; then + echo Failed to make directory $d + exit 1 +fi +fi +done + + |