mktmpl.sh: if PKGFS_SRCDISTDIR doesn't exist, create it.
--HG-- extra : convert_revision : 3fa28c8652b9536a50b26d1a9eafe7d562ded214
This commit is contained in:
parent
0d96fc4b8f
commit
ef661f001c
|
@ -41,6 +41,7 @@
|
|||
: ${db_cmd:=/usr/bin/db -q}
|
||||
: ${config_file:=/usr/local/etc/pkgfs.conf}
|
||||
: ${chmod_cmd:=/bin/chmod}
|
||||
: ${mkdir_cmd:=/bin/mkdir}
|
||||
|
||||
required_deps=
|
||||
|
||||
|
@ -53,7 +54,8 @@ write_new_template()
|
|||
local dfile=
|
||||
local tmplname=
|
||||
|
||||
[ ! -d $distdir -o ! -d $tmpldir -o ! -d $depsdir ] && exit 1
|
||||
[ ! -d $distdir ] && $mkdir_cmd -p $distdir
|
||||
[ ! -d $tmpldir -o ! -d $depsdir ] && exit 1
|
||||
|
||||
save_pwd=$(pwd -P 2>/dev/null)
|
||||
echo "=> Fetching distfile from $url"
|
||||
|
|
Loading…
Reference in New Issue