mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
man: use variable in Makefile / regexp
This commit is contained in:
parent
2f1fd1584e
commit
e9921ffd33
@ -198,23 +198,28 @@ endef
|
|||||||
# - in symbolic use (e.g. '->')
|
# - in symbolic use (e.g. '->')
|
||||||
# - in single one in '\\f.-'
|
# - in single one in '\\f.-'
|
||||||
define ESCAPEHYPHENS
|
define ESCAPEHYPHENS
|
||||||
$(SED) -i -e "s+\([^\\]\)-\{7\}+\1\\\-\\\-\\\-\\\-\\\-\\\-\\\-+g" \
|
$(SED) -i -e "s+\([ [:alpha:]]\)-\{7\}+\1\\\-\\\-\\\-\\\-\\\-\\\-\\\-+g" \
|
||||||
-e "s+\([^\\]\)-\{6\}+\1\\\-\\\-\\\-\\\-\\\-\\\-+g" \
|
-e "s+\([ [:alpha:]]\)-\{6\}+\1\\\-\\\-\\\-\\\-\\\-\\\-+g" \
|
||||||
-e "s+\([^\\]\)-\{5\}+\1\\\-\\\-\\\-\\\-\\\-+g" \
|
-e "s+\([ [:alpha:]]\)-\{5\}+\1\\\-\\\-\\\-\\\-\\\-+g" \
|
||||||
-e "s+\([^\\]\)-\{4\}+\1\\\-\\\-\\\-\\\-+g" \
|
-e "s+\([ [:alpha:]]\)-\{4\}+\1\\\-\\\-\\\-\\\-+g" \
|
||||||
-e "s+\([^\\]\)-\{3\}+\1\\\-\\\-\\\-+g" \
|
-e "s+\([ [:alpha:]]\)-\{3\}+\1\\\-\\\-\\\-+g" \
|
||||||
-e "s+\([^\\]\)-\{2\}+\1\\\-\\\-+g" \
|
-e "s+\([ [:alpha:]]\)-\{2\}+\1\\\-\\\-+g" \
|
||||||
-e "s+^-\{2\}+\\\-\\\-+g" \
|
-e "s+\([^\]\)-\([[:alnum:]\?]\)+\1\\\-\2+g" \
|
||||||
-e "s+ -\([[:alnum:]]\)+ \\\-\1+g" \
|
-e "s+ --+\\\-\\\-+g" \
|
||||||
-e "s+\(cache\)-\([[:alpha:]]\{1,\}\)+\1\\\-\2+g" \
|
-e "s+|-|+|\\\-|+g" \
|
||||||
-e "s+\(thin\)-\([[:alpha:]]\{1,\}\)+\1\\\-\2+g" \
|
-e "s+ -\"+ \\\-\"+g" \
|
||||||
-e "s+\([ :\[][[:alnum:]]\{1,\}\)-\([[:alnum:]]\{1,\}[[ ]\)+\1\\\-\2+g" \
|
-e "s+'--'+'\\\-\\\-'+g" \
|
||||||
-e "s+\([[:alnum:]]\{2,\}\)-\([[:alnum:]]\{2,\}\)-\([[:alnum:]]\{2,\}\)+\1\\\-\2\\\-\3+g" \
|
-e "s+^--+\\\-\\\-+g" \
|
||||||
-e "s+\([[:alnum:]]\{2,\}\)-\([[:alnum:]]\{2,\}\)+\1\\\-\2+g" \
|
-e "s+\([[:alnum:]]\) - \([[:alnum:]]\)+\1 \\\- \2+g" \
|
||||||
-e "s+\(<\)-+\1\\\-+g" \
|
-e "s+\(<\)-+\1\\\-+g" \
|
||||||
-e "s+[^\\]-\(>\)+\\\-\1+g" \
|
-e "s+[^\\]-\(>\)+\\\-\1+g" \
|
||||||
-e "s+\(\\\f.\)-\([^-]\)+\1\\\-\2+g" \
|
-e "s+\([[:alnum:]]\{2,\}\)\\\-\([[:alnum:]]\{2,\}\)+\1-\2+g" \
|
||||||
-e "s+\([[:digit:]]\{4\}\).*-\([[:digit:]]\{2\}\).*-\([[:digit:]]\{2\}\)+\1-\2-\3+g" $@
|
-e "s+\(\\\-\\\-[[:alnum:]]\{2,\}\)-+\1\\\-+g" \
|
||||||
|
-e "s+\(lvm2\-activation\)+lvm2\\\-activation+" \
|
||||||
|
-e "s+\([[:digit:]]\)-\([[:digit:]]\)+\1\\\-\2+g" \
|
||||||
|
-e "s+\\\-git+\-git+g" \
|
||||||
|
-e "s+\(vg.*\)\-lv+\1\\\-lv+g" \
|
||||||
|
-e "s+\([[:digit:]]\{4\}\)\\\-\([[:digit:]]\{2\}\)\\\-\([[:digit:]]\{2\}\)+\1-\2-\3+g" $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
%.5: $(srcdir)/%.5_main
|
%.5: $(srcdir)/%.5_main
|
||||||
@ -233,7 +238,7 @@ endef
|
|||||||
$(SUBSTVARS)
|
$(SUBSTVARS)
|
||||||
$(ESCAPEHYPHENS)
|
$(ESCAPEHYPHENS)
|
||||||
|
|
||||||
lvm-config.8 lvm-dumpconfig.8: lvmconfig.8
|
$(MAN8SO): lvmconfig.8
|
||||||
echo ".so $<" > $@
|
echo ".so $<" > $@
|
||||||
|
|
||||||
install_man5: $(MAN5)
|
install_man5: $(MAN5)
|
||||||
|
Loading…
Reference in New Issue
Block a user