blob: ab9b8a0ddbc0d7b865405656a2bfb28949af2f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
shout() { echo "$0: $@" >&2; }
barf() { shout "fatal: $@"; exit 111; }
safe() { "$@" || barf "cannot $@"; }
here=`env - PATH=$PATH pwd`
mypwd=${here%package}
mypwd=${mypwd%/}
home=`head -1 $mypwd/conf-home`
if [ -d $home ]
then
shout "Keeping directory $home."
shout "The queue directory will use now bigtodo ..."
else
safe mkdir -p $home
fi
exit 0
|