Mercurial doesn't track directories, so these need to be created

automatically at setup time.
This commit is contained in:
Nate Coraor
2008-07-14 12:15:26 -04:00
parent 0a19252676
commit 0e0204e1dc
+11 -1
View File
@@ -19,6 +19,16 @@ tool-data/regions.loc.sample
tool-data/twobit.loc.sample
"
DIRS="
database
database/files
database/tmp
database/compiled_templates
database/job_working_directory
database/import
database/pbs
"
for sample in $SAMPLES; do
file=`echo $sample | sed -e 's/\.sample$//'`
if [ -f $file ]; then
@@ -29,7 +39,7 @@ for sample in $SAMPLES; do
fi
done
for dir in database/files database/tmp; do
for dir in $DIRS; do
if [ ! -d $dir ]; then
echo "Creating $dir"
mkdir $dir