diff --git a/widgets/make_widget.sh b/widgets/make_widget.sh index e93bb29f6..0060d761d 100755 --- a/widgets/make_widget.sh +++ b/widgets/make_widget.sh @@ -11,8 +11,8 @@ SOURCE="${LOWERNAME}.cpp" BOTH="$HEADER $SOURCE" QHEADER="Q${HEADER}" -cp template.h $HEADER -cp template.cpp $SOURCE +cp widget.h.template $HEADER +cp widget.cpp.template $SOURCE perl -pi -e "s,,${NAME},g" $BOTH perl -pi -e "s,,${CAPNAME},g" $BOTH diff --git a/widgets/template.cpp b/widgets/widget.cpp.template similarity index 100% rename from widgets/template.cpp rename to widgets/widget.cpp.template diff --git a/widgets/template.h b/widgets/widget.h.template similarity index 100% rename from widgets/template.h rename to widgets/widget.h.template