screensaver/newmodule

8 lines
306 B
Bash
Executable File

#!/bin/sh
mkdir modules/$1
cp skeleton/Makefile modules/$1/
srchead screensaver-modules/$1/$1.hpp > modules/$1/$1.hpp
sed -e "s/{MODULE}/$1/" skeleton/MODULE.hpp >> modules/$1/$1.hpp
srchead screensaver-modules/$1/$1.cpp > modules/$1/$1.cpp
sed -e "s/{MODULE}/$1/" skeleton/MODULE.cpp >> modules/$1/$1.cpp