2 # Script to silence win32 and perl build by displaying a neat one-line notice
3 # instead of full command contents when executing compilers.
5 # Written by Tomek Wasilczyk <tomkiewicz@cpw.pidgin.im>, licensed under GNU GPL
15 if [ "$found" == 1 ]; then
19 if [ "$arg" == "-o" ]; then
22 if [ "$tag" == "auto" ] && [ "$arg" == "-shared" ]; then
25 if [ "$tag" == "PERL" ] && [ "${arg%(*}" == "Mkbootstrap" ]; then
30 if [ "$tag" == "PERL" ] && [ "${arg%(*}" == "ExtUtils::ParseXS::process_file" ]; then
31 object
="${arg#*output => \"}"
32 object
="${object%\", *}"
36 ext_1
=${arg#${arg%??}}
37 if [ "${ext_1}" == ".c" ]; then
40 ext_2
=${arg#${arg%???}}
41 if [ "${ext_2}" == ".xs" ]; then
44 ext_3
=${arg#${arg%????}}
45 if [ "${ext_3}" == ".3pm" ]; then
50 if [ "$tag" == "auto" ]; then
54 if [ "$tag" == "PERL" ] && [ "$is_final" == 0 ]; then
55 object
=`echo "$object" | sed -n 's|.*output *=> *"\([^"]*\)".*|\1|p'`
58 if [ "$object" == "" ] && [ "${file_1}" != "" ]; then
61 if [ "$object" == "" ] && [ "${file_2}" != "" ]; then
66 if [ "$object" == "" ]; then
69 echo -e " $tag\t$object" >&2