diff --git a/newmodule b/newmodule index 766ddca..f33e228 100755 --- a/newmodule +++ b/newmodule @@ -1,7 +1,5 @@ #!/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 +sed -e "s/{MODULE}/$1/" skeleton/MODULE.hpp > modules/$1/$1.hpp +sed -e "s/{MODULE}/$1/" skeleton/MODULE.cpp > modules/$1/$1.cpp