On 7/7/2012 8:12 PM, Coldpizza wrote:
: No such file or directory/!bin/bash
./depchecker.sh: líne 12: syntactic error near unexpected element `$'do\r''
'/depchecker.sh: líne 12: `do


1st: do not top post.

2nd: probably wrong line ends.

Try file attached

Regards
Marco
#/!bin/bash
if [ $# -ne 1 ]
then
        echo "Usage : " $0 "file_name"
        echo "Find package dependency from dll dependency"
        exit 1
fi 

a=1
for i in  $(cygcheck $1 |tr " " "^" | tr "\r" " " ) 
do
        echo  -n $i |tr "^" " " 
        echo -n " =>  "
        b=$(cygcheck -f $(cygpath -u $(echo $i |tr  "^" " "))| tr "\r" " " )
        if [ -z $b ]
        then
          echo "??"
        else
          echo $b
        fi 
done


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to