mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-04 10:15:05 +02:00
Makefile: drop path rewriting, use pattern to filter
This commit is contained in:
parent
c37739c2f6
commit
1b947f445b
5 changed files with 46 additions and 31 deletions
4
Makefile
4
Makefile
|
@ -15,12 +15,12 @@ all: $(CAPSMAN) $(LOCAL) $(HTML)
|
|||
markdown $< | sed 's/href="\([-_\./[:alnum:]]*\)\.md"/href="\1.html"/g' > $@
|
||||
|
||||
%.local.rsc: %.template.rsc Makefile
|
||||
sed -e '/\/caps-man/d' -e 's|%PATH%|interface\/wireless|' -e 's|%TEMPL%|.local|' \
|
||||
sed -e '/\/caps-man/d' -e 's|%TEMPL%|.local|' \
|
||||
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
||||
< $< > $@
|
||||
|
||||
%.capsman.rsc: %.template.rsc Makefile
|
||||
sed -e '/\/interface\/wireless/d' -e 's|%PATH%|caps-man|' -e 's|%TEMPL%|.capsman|' \
|
||||
sed -e '/\/interface\/wireless/d' -e 's|%TEMPL%|.capsman|' \
|
||||
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
||||
< $< > $@
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue