Update preset.
[bertos.git] / bertos / cpu / newcore
1 #!/bin/bash
2
3 DIRS="drv hw io scripts"
4 if [ $# != 1 ]; then
5         echo "Create a new core tree with subdirs:"
6         echo $DIRS
7         echo "usage $0 <core>"
8         exit 1
9 fi
10 CORE=$1
11 mkdir $CORE
12 cd $CORE
13 for dir in $DIRS
14 do
15         mkdir $dir
16 done
17 cd ..