mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-26 18:41:17 +00:00
make generated qemud/*.[ch] files read-only
* qemud/Makefile.am (.x.c): Rewrite not to write directly to $@, and to make generated files read-only. (.x.h): Likewise.
This commit is contained in:
parent
487d57b341
commit
d6efc2ffd3
@ -1,3 +1,10 @@
|
|||||||
|
Tue Oct 28 13:46:50 +0100 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
make generated qemud/*.[ch] files read-only
|
||||||
|
* qemud/Makefile.am (.x.c): Rewrite not to write directly to $@,
|
||||||
|
and to make generated files read-only.
|
||||||
|
(.x.h): Likewise.
|
||||||
|
|
||||||
Tue Oct 28 13:29:14 +0100 2008 Jim Meyering <meyering@redhat.com>
|
Tue Oct 28 13:29:14 +0100 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
avoid compiler warning when all storage backends are disabled
|
avoid compiler warning when all storage backends are disabled
|
||||||
|
@ -34,18 +34,21 @@ EXTRA_DIST = \
|
|||||||
if RPCGEN
|
if RPCGEN
|
||||||
SUFFIXES = .x
|
SUFFIXES = .x
|
||||||
.x.c:
|
.x.c:
|
||||||
rm -f $@
|
rm -f $@ $@-t $@-t2
|
||||||
rpcgen -c -o $@ $<
|
rpcgen -c -o $@-t $<
|
||||||
if GLIBC_RPCGEN
|
if GLIBC_RPCGEN
|
||||||
mv $@ $@.bak
|
perl -w rpcgen_fix.pl $@-t > $@-t2
|
||||||
perl -w rpcgen_fix.pl < $@.bak > $@
|
chmod 444 $@-t2
|
||||||
|
mv $@-t2 $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.x.h:
|
.x.h:
|
||||||
rm -f $@
|
rm -f $@ $@-t
|
||||||
rpcgen -h -o $@ $<
|
rpcgen -h -o $@-t $<
|
||||||
if GLIBC_RPCGEN
|
if GLIBC_RPCGEN
|
||||||
perl -i -p -e 's/\t/ /g' $@
|
perl -pi -e 's/\t/ /g' $@-t
|
||||||
|
chmod 444 $@-t
|
||||||
|
mv $@-t $@
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user