defaultcpp/init.sh

15 lines
218 B
Bash
Raw Normal View History

2020-09-20 13:20:34 +02:00
#!/bin/bash
# init all files in this repo and then delete this one
if [ "$#" -ne "1" ]; then
echo "usage: $0 <projekt name>"
exit 1
fi
find . -type f -exec sed -i "s#%NAME%#${1}#g" {} +
2021-11-12 15:33:18 +01:00
mkdir -p inc/
2020-09-20 13:20:34 +02:00
rm -i "$0"