echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
if test ! -d ${cwd}/tmp/build ; then
- mkdir ${cwd}/tmp/build
+ mkdir -p ${cwd}/tmp/build
fi
cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
cd ${cwd}/tmp
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
if test ! -d ${cwd}/tmp/build ; then
- mkdir ${cwd}/tmp/build
+ mkdir -p ${cwd}/tmp/build
fi
cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
cd ${cwd}/tmp
# add extra files
-mkdir ${cwd}/build/accurate
-mkdir ${cwd}/build/accurate/dirtest
+mkdir -p ${cwd}/build/accurate
+mkdir -p ${cwd}/build/accurate/dirtest
echo "test test" > ${cwd}/build/accurate/dirtest/hello
echo "test test" > ${cwd}/build/accurate/xxx
echo "test test" > ${cwd}/build/accurate/yyy
uid=`id -u`
rm -rf $d
-mkdir $d
-mkdir $d/testdir
+mkdir -p $d
+mkdir -p $d/testdir
cp ${cwd}/bin/bconsole $d
case `uname -s` in
echo "${cwd}/many-files" >${cwd}/tmp/file-list
if [ ! -f ${cwd}/many-files/100000file100000 ]; then
- mkdir ${cwd}/many-files
+ mkdir -p ${cwd}/many-files
cd ${cwd}/many-files
print_debug "Creating files..."
time perl -e 'for($i=0; $i < 2000000; $i++) {open(FP, ">${i}file${i}") or die "$!"; print FP "$i\n"; close(FP); print "." if ($i%10000);}'
#!/bin/sh
rm -rf tmp/disk-changer
-mkdir tmp/disk-changer
+mkdir -p tmp/disk-changer
touch tmp/disk-changer/conf
echo "Unload drive 0"
$scripts/disk-changer tmp/disk-changer/conf unload 1 tmp/disk-changer/drive0 0
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
if test ! -d ${cwd}/tmp/build ; then
- mkdir ${cwd}/tmp/build
+ mkdir -p ${cwd}/tmp/build
fi
cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
cd ${cwd}/tmp
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
if test ! -d ${cwd}/tmp/build ; then
- mkdir ${cwd}/tmp/build
+ mkdir -p ${cwd}/tmp/build
fi
cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
cd ${cwd}/tmp
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
if test ! -d ${cwd}/tmp/build ; then
- mkdir ${cwd}/tmp/build
+ mkdir -p ${cwd}/tmp/build
fi
cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
cd ${cwd}/tmp
print;
' $conf/bacula-sd.conf > $conf/bacula-sd2.conf
-mkdir ${working}2
+mkdir -p ${working}2
perl -ne '
if (/^Storage {/) { $in=1; $nb++; }
scripts/cleanup
scripts/copy-test-confs
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
-mkdir ${cwd}/tmp/build
+mkdir -p ${cwd}/tmp/build
cp -p ${cwd}/build/src/dird/*.c ${cwd}/tmp/build
cd ${cwd}/tmp/build
ls >../1
scripts/copy-test-confs
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
rm -rf ${cwd}/tmp/build
-mkdir ${cwd}/tmp/build
+mkdir -p ${cwd}/tmp/build
# Copy only the .c files (to be restored)
# set files to "*.c" for all c files
files="ua_tree.c ua_update.c"
# Now arrange to backup *everything*
#
rm -rf ${cwd}/tmp/build
-mkdir ${cwd}/tmp/build
+mkdir -p ${cwd}/tmp/build
cp -fp ${cwd}/build/src/dird/* ${cwd}/tmp/build
#
# Enable MaximumFileSize to ensure lots of JobMedia records and thus
# Now setup a control directory of only what we *should* restore
rm -rf ${cwd}/tmp/build
-mkdir ${cwd}/tmp/build
+mkdir -p ${cwd}/tmp/build
for i in ${files}; do
cp -p ${cwd}/build/src/dird/${i} ${cwd}/tmp/build
done
echo "${cwd}/tmp/build" >${cwd}/tmp/file-list
rm -rf ${cwd}/tmp/build
-mkdir ${cwd}/tmp/build
+mkdir -p ${cwd}/tmp/build
# Copy only the .c files (to be restored)
# set files to "*.c" for all c files
files="ua_tree.c ua_update.c"
# Now arrange to backup *everything*
#
rm -rf ${cwd}/tmp/build
-mkdir ${cwd}/tmp/build
+mkdir -p ${cwd}/tmp/build
cp -fp ${cwd}/build/src/dird/* ${cwd}/tmp/build
#
# Enable MaximumFileSize to ensure lots of JobMedia records and thus
# Now setup a control directory of only what we *should* restore
rm -rf ${cwd}/tmp/build
-mkdir ${cwd}/tmp/build
+mkdir -p ${cwd}/tmp/build
for i in ${files}; do
cp -p ${cwd}/build/src/dird/${i} ${cwd}/tmp/build
done
# Make a copy of build/src/dird to be backed up
rm -rf ${tmp}/$$-strip
-mkdir ${tmp}/$$-strip
+mkdir -p ${tmp}/$$-strip
cp -rpf ${cwd}/build/src/dird/ ${tmp}/$$-strip/
echo "${tmp}/$$-strip" >${cwd}/tmp/file-list