Still no-go. Same exact message. I tried stracing it but it's didn't really tell me
anything. I also tried -noprofile, thinking that it might be the bashrc that was
different. It didn't care.
Here's the current version:
#!/bin/bash -noprofile
#srpm_arch_tester.sh
trap 'kill 0' 0 1 2 3
if [ -z "$1" ]
then
echo
echo
echo "This script attempts to compile a given src.rpm for all standard
architectures,"
echo "logs the results, and states success or failure for each attempt."
echo
echo "Usage: srpm_arch_tester.sh <the.src.rpm_name>"
echo
echo
exit
fi
if [ "$1" != *.src.rpm ] && [ "$1" != *.srpm ]
then
clear
echo
echo
echo "Hey, that's not a source rpm!"
echo
exit
fi
rpm --rebuild --target=i386 "$1" >i386.log 2>&1 && echo "i386 works" || echo "i386
failed"
rpm --rebuild --target=i486 "$1" >i486.log 2>&1 && echo "i486 works" || echo "i486
failed"
rpm --rebuild --target=i586 "$1" >i586.log 2>&1 && echo "i586 works" || echo "i586
failed"
rpm --rebuild --target=i686 "$1" >i686.log 2>&1 && echo "i686 works" || echo "i686
failed"
rpm --rebuild --target=athlon "$1" >athlon.log 2>&1 && echo "athlon works" || echo
"athlon failed"
echo
echo "test done"
#end script
Any more ideas?
At 12:43 PM 2/15/2001 -0800, you wrote:
>On Thu, 15 Feb 2001, Jonathan Wilson wrote:
>
>> /root/Scripts/srpm_arch_tester.sh: [: too many arguments
>> Terminated
>>
>>
>> #!/bin/bash
>> #srpm_arch_tester.sh
>>
>> trap 'kill 0' 0 1 2 3
>>
>> if [ -z $1 ]
>> then
>
>Quote your variables with double quotes like the
>following:
>
> if [ -z "$1" ]
> then
> .
> .
> .
> fi
>
>This will prevent "word splitting" after substitution.
>
>
>--
>John Darrah (u05192) | Dept: N/C Programming
>Giddens Industries | Ph: (425) 353-0405 #229
>PO box 3190 | Ph: (206) 767-4212 #229
>Everett WA 98203 | Fx: (206) 764-9639
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
----------------------------------------------------
Jonathan Wilson
System Administrator
Cedar Creek Software
http://www.cedarcreeksoftware.com
Central Texas IT
http://www.centraltexasit.com
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list