From abc68f44d0ffdab643daebfcc4ddb904eded1785 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 16 Dec 2015 02:18:52 -0500 Subject: sofort.sh: remove dummy interfaces and related code from generated project. --- sofort.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'sofort.sh') diff --git a/sofort.sh b/sofort.sh index eb3123c..72fdc19 100755 --- a/sofort.sh +++ b/sofort.sh @@ -105,7 +105,21 @@ done cp "$srcdir"/COPYING.SOFORT "$dstdir" || exit 2 cp "$srcdir"/src/internal/argv/argv.h "$dstdir"/src/internal/argv || exit 2 -# seven: finalize +# seven: remove dummy interfaces +rm "$dstdir"/src/output/* || exit 2 + +recipe="$dstdir"/project/common.mk +files=$(find . -type f) + +grep -v 'src/output' "$recipe" > "$recipe".tmp || exit 2 +mv "$recipe".tmp "$recipe" || exit 2 + +for f in $files; do + grep -v 'dummy' "$f" > "$f".tmp + mv "$f".tmp "$f" || exit 2 +done + +# eight: finalize uppername=`echo "$project" | tr '[:lower:]' '[:upper:]'` utilcsrc=src/$project.c -- cgit v1.2.3