mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 03:12:48 +02:00
(unlocked-io.h): Do not append "_unlocked" twice.
Port to Solaris 8, where 'sed' requires a space after the 'r' command, and where sh dislikes "$/". Clean up the spacing a bit. Redirect output to $tmp just once.
This commit is contained in:
@@ -176,17 +176,15 @@ A_Z=ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
||||
|
||||
unlocked-io.h: $(srcdir)/unlocked-io.hin Makefile.am
|
||||
tmp=t$$$$; \
|
||||
echo > $$tmp; \
|
||||
for b in $(io_functions); do \
|
||||
f=$${b}_unlocked; \
|
||||
for f in $(io_functions); do \
|
||||
u=`echo $$f|tr $(a_z) $(A_Z)`; \
|
||||
echo "# if HAVE_$${u}_UNLOCKED" >> $$tmp; \
|
||||
echo "# undef $$f" >> $$tmp; \
|
||||
echo "# define $$f(S) $${f}_unlocked (S)" >> $$tmp; \
|
||||
echo '#endif' >> $$tmp; \
|
||||
done; \
|
||||
sed "/^@replace_this@$$/r$$tmp" $(srcdir)/unlocked-io.hin \
|
||||
| sed "/^@replace_this@$$/d" \
|
||||
echo "# if HAVE_$${u}_UNLOCKED" ; \
|
||||
echo "# undef $$f" ; \
|
||||
echo "# define $$f(S) $${f}_unlocked (S)" ; \
|
||||
echo '# endif' ; \
|
||||
done > $$tmp; \
|
||||
sed '/^@replace_this@\$$/r '$$tmp $(srcdir)/unlocked-io.hin \
|
||||
| sed '/^@replace_this@$$/d' \
|
||||
> $@t; \
|
||||
rm -f $$tmp; \
|
||||
mv $@t $@
|
||||
|
||||
Reference in New Issue
Block a user