egrep -> grep -E ...though I do not understand the motivation behind this change...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-03-19 01:20:30 +03:00
parent 264d80e4cd
commit 55c5844327
2 changed files with 4 additions and 4 deletions

View File

@ -246,7 +246,7 @@ LN := cp -l
#
DEPENDS.txt: $(MODULE).cls
cat $< \
| egrep -zo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
| grep -Ezo '\s*\\RequirePackage(\[[^]]*\])?\{[^}]*\}' \
| sed 's/.*{\(.*\)}/hard \1\n/' \
| grep -a hard \
> $@

View File

@ -131,7 +131,7 @@ if [ -z $STRIP_DOC ] ; then
printmsg "Documentation" \
> "$OUTPUT"
cat "$INPUT" \
| egrep '(^%'$PREFIX'|^\\edef\\'$MODULE'@[A-Z][A-Z]+)' \
| grep -E '(^%'$PREFIX'|^\\edef\\'$MODULE'@[A-Z][A-Z]+)' \
| sed \
-e 's/^\(\\edef\\\)'$MODULE'@/%'$PREFIX'\1/' \
-e 's/%'$PREFIX'%%%% \(.*\)/%'$PREFIX'\\subsubsection{\1}\\label{subsubsec:\1}/' \
@ -146,8 +146,8 @@ else
printmsg "Stripped code" \
> "$OUTPUT"
cat "$INPUT" \
| egrep -v '%'$PREFIX'' \
| egrep -v '^(\s*%)?\s*$' \
| grep -Ev '%'$PREFIX'' \
| grep -Ev '^(\s*%)?\s*$' \
>> "$OUTPUT"
fi