On Wed, Mar 10, 2010 at 08:38:56AM +0100, Olle Olsson wrote: > Hi, > > I found the following > http://www.cygwin.com/ml/cygwin/2006-05/msg00753.html > which might provide one practical solution. Will try this. > /olle
I was having trouble coming up with a sed command to convert all the version numbers to 0.0-0, so instead, I 'cut' all the package names from /etc/setup/installed.db and built a batch file to call setup.exe with the -P switch.
#!/usr/bin/sh echo -n setup.exe -P $( for p in $(cut -d \ -f 1 /etc/setup/installed.db) do if [ "$p" == "INSTALLED.DB" ] then continue elif [ "$p" == "_update-info-dir" ] then continue else echo -n $p, fi done) > portcyg.bat
-- 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