mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-12-24 02:59:31 +00:00
update template system
This commit is contained in:
parent
a964e8ad0c
commit
c66bb89be2
7 changed files with 20 additions and 33 deletions
12
Makefile
12
Makefile
|
|
@ -2,8 +2,12 @@ GENERATE = collect-wireless-mac.capsman collect-wireless-mac.local dhcp-lease-co
|
|||
|
||||
all: $(GENERATE)
|
||||
|
||||
%.local: *.in Makefile
|
||||
sed -e 's/%PATH%/interface wireless/' -e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' < $(basename $@).in > $@
|
||||
%.local: *.template Makefile
|
||||
sed -e '/\/ caps-man/d' -e 's|%PATH%|interface wireless|' -e 's|%TEMPL%|$(suffix $@)|' \
|
||||
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
||||
< $(basename $@).template > $@
|
||||
|
||||
%.capsman: *.in Makefile
|
||||
sed -e 's/%PATH%/caps-man/' -e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' < $(basename $@).in > $@
|
||||
%.capsman: *.template Makefile
|
||||
sed -e '/\/ interface wireless/d' -e 's/%PATH%/caps-man/' -e 's/%TEMPL%/$(suffix $@)/' \
|
||||
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
||||
< $(basename $@).template > $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue