mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
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
.gitignore
vendored
3
.gitignore
vendored
@ -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
|
||||
|
@ -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
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 New Issue
Block a user