1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/projects/new_project.sh

17 lines
284 B
Bash

#!/bin/sh -u
if [ -e ${1} ]; then
echo "Directory \"${1}\" exists. Will not overwrite."
exit 1
fi
echo "Creating project ${1}..."
cp -r skel ${1}
rm -rf ${1}/.svn/ ${1}/tests/.svn/
sed -i -e "s/skel/${1}/g" ${1}/main.c
sed -i -e "s/skel/${1}/g" ${1}/Jamfile
echo "Done."