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:
parent
cf96845bf6
commit
16ffec1864
3 changed files with 8 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -14,11 +14,13 @@
|
||||||
*.pdb
|
*.pdb
|
||||||
*.rej
|
*.rej
|
||||||
*.s
|
*.s
|
||||||
|
*.si
|
||||||
*.swp
|
*.swp
|
||||||
*.xml
|
*.xml
|
||||||
.*swo
|
.*swo
|
||||||
*~
|
*~
|
||||||
\#*
|
\#*
|
||||||
|
.\#*
|
||||||
*.bak
|
*.bak
|
||||||
*.tmp
|
*.tmp
|
||||||
.git-ignore
|
.git-ignore
|
||||||
|
@ -54,6 +56,7 @@ TAGS
|
||||||
/macros/macros.c
|
/macros/macros.c
|
||||||
/nasm
|
/nasm
|
||||||
/ndisasm
|
/ndisasm
|
||||||
|
/nasm.spec
|
||||||
/nsis/arch.nsh
|
/nsis/arch.nsh
|
||||||
/nsis/version.nsh
|
/nsis/version.nsh
|
||||||
/rdoff/Makefile
|
/rdoff/Makefile
|
||||||
|
|
|
@ -425,8 +425,8 @@ perlbreq.si: $(ALLPERLSRC)
|
||||||
sed -r -e '/perl\((strict|warnings)\)/d' | \
|
sed -r -e '/perl\((strict|warnings)\)/d' | \
|
||||||
sort | uniq > perlbreq.si || ( rm -f perlbreq.si ; false )
|
sort | uniq > perlbreq.si || ( rm -f perlbreq.si ; false )
|
||||||
|
|
||||||
nasm.spec: nasm.spec.in version.sed perlbreq.si
|
nasm.spec: nasm.spec.in nasm.spec.sed version.sed perlbreq.si
|
||||||
sed -f version.sed -e '/@@PERLBUILDREQS@@/r perlbreq.si' \
|
sed -f version.sed -f nasm.spec.sed \
|
||||||
< nasm.spec.in > nasm.spec || ( rm -f nasm.spec ; false )
|
< nasm.spec.in > nasm.spec || ( rm -f nasm.spec ; false )
|
||||||
|
|
||||||
splint:
|
splint:
|
||||||
|
|
3
nasm.spec.sed
Normal file
3
nasm.spec.sed
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
# Replace @@PERLBUILDREQS@@ with the file perlbreq.si
|
||||||
|
/@@PERLBUILDREQS@@/{r perlbreq.si
|
||||||
|
d}
|
Loading…
Reference in a new issue