diff options
Diffstat (limited to 'net-misc/wondershaper/files/Makefile')
-rw-r--r-- | net-misc/wondershaper/files/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net-misc/wondershaper/files/Makefile b/net-misc/wondershaper/files/Makefile new file mode 100644 index 0000000..52a3bf2 --- /dev/null +++ b/net-misc/wondershaper/files/Makefile @@ -0,0 +1,16 @@ +.PHONY: all +all: wondershaper.config wondershaper + +wondershaper.config: + tail -n+2 wshaper \ + | awk '/^# Now remove/{firstPartOver=1}{if (! firstPartOver) print $0}' \ + >> $@ +wondershaper: wshaper + cp rc.skel $@ + awk '/^if \[/{firstPartOver=1}{if (firstPartOver) print $0}' $^ \ + | awk -f append-return-1.awk \ + | sed 's/exit/return 0/' >> $@ + echo "}" >> $@ + +clean: + rm wondershaper wondershaper.config
\ No newline at end of file |