https://bugzilla.redhat.com/show_bug.cgi?id=1926697
--- Comment #38 from jiri vanek <jvanek(a)redhat.com> ---
Hi!
you can simplify it a lot:
https://jvanek.fedorapeople.org/jaya/openjdk-asmtools.spec
https://jvanek.fedorapeople.org/jaya/openjdk-asmtools.in
Namely just added placeholder to the in file:
run @SCD@ "$@"
and simp;ifed loop to get rid of "if":
for launcher in "" "-jasm" "-jdis" "-jcoder"
"-jdec" "-jcdec"; do
switch=`echo $launcher |sed "s/-//"`
cat %{SOURCE1} | sed "s/@SCD@/$switch/" >
$RPM_BUILD_ROOT%{_bindir}/%{name}$launcher
done
A must is to NOT mix spaces and tabs please.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component