OpenModem/bertos/cpu/newcore
2014-04-03 22:21:37 +02:00

18 lines
223 B
Bash
Executable File

#!/bin/bash
DIRS="drv hw io scripts"
if [ $# != 1 ]; then
echo "Create a new core tree with subdirs:"
echo $DIRS
echo "usage $0 <core>"
exit 1
fi
CORE=$1
mkdir $CORE
cd $CORE
for dir in $DIRS
do
mkdir $dir
done
cd ..