mirror of
https://github.com/flynx/photobook.git
synced 2025-10-28 18:00:10 +00:00
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:
parent
264d80e4cd
commit
55c5844327
2
Makefile
2
Makefile
@ -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 \
|
||||
> $@
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user