Commit b40650d5 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

make_module: abort if module exists

parent b3330abf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -63,6 +63,9 @@ done

# Create directory
mkdir "$MODDIR/$MODNAME"
if [ $? != 0 ]; then
  exit 1
fi

# Copy over CMake file and sources from Dummy:
sed -e "s/Dummy/$MODNAME/g" $MODDIR/Dummy/CMakeLists.txt > $MODDIR/$MODNAME/CMakeLists.txt