nasm.spec: use a sed file to insert perl dependencies

There are just too many ways that an inline sed script can screw up.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2017-04-23 18:52:58 -07:00
parent cf96845bf6
commit 16ffec1864
3 changed files with 8 additions and 2 deletions

3
.gitignore vendored
View file

@ -14,11 +14,13 @@
*.pdb
*.rej
*.s
*.si
*.swp
*.xml
.*swo
*~
\#*
.\#*
*.bak
*.tmp
.git-ignore
@ -54,6 +56,7 @@ TAGS
/macros/macros.c
/nasm
/ndisasm
/nasm.spec
/nsis/arch.nsh
/nsis/version.nsh
/rdoff/Makefile

View file

@ -425,8 +425,8 @@ perlbreq.si: $(ALLPERLSRC)
sed -r -e '/perl\((strict|warnings)\)/d' | \
sort | uniq > perlbreq.si || ( rm -f perlbreq.si ; false )
nasm.spec: nasm.spec.in version.sed perlbreq.si
sed -f version.sed -e '/@@PERLBUILDREQS@@/r perlbreq.si' \
nasm.spec: nasm.spec.in nasm.spec.sed version.sed perlbreq.si
sed -f version.sed -f nasm.spec.sed \
< nasm.spec.in > nasm.spec || ( rm -f nasm.spec ; false )
splint:

3
nasm.spec.sed Normal file
View file

@ -0,0 +1,3 @@
# Replace @@PERLBUILDREQS@@ with the file perlbreq.si
/@@PERLBUILDREQS@@/{r perlbreq.si
d}