How to determine runtime and build requirements for an application?

marco atzeri marco.atzeri@gmail.com
Sat Jul 7 18:33:00 GMT 2012


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
-------------- next part --------------
#/!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


-------------- next part --------------
--
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


More information about the Cygwin mailing list