Create src if it doesn't already exist

This commit is contained in:
Laurence Withers 2006-08-01 15:23:28 +01:00
parent 2299d6abd6
commit 7d3ea5865b
1 changed files with 5 additions and 0 deletions

View File

@ -73,6 +73,11 @@ do_parameter_subst() {
if [ ! -e "src" ]
then
do_cmd mkdir src || exit 1
fi
if [ -e "src/${NAME}" ]
then
print_failure "Module 'src/${NAME}' already exists"