[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Please help me with this script!



     Hello , my name is Mihai Felseghi and I am interesed in becoming an Debian maintainer and for the start I want to build some packages on my own machine and learning how to do it .
    One of these days I was reading the "Debian New Maintainers' Guide" and found a script wich finds out what packages are nedded for building another package  :
   
   strace -f -o /tmp/log ./configure
# or make instead of ./configure, if the package doesn t use autoconf
for x in  dpkg -S $(grep open /tmp/log|\
                    perl -pe 's!.* open\(\"([^\"]*).*!$1!' |\
                    grep "^/"| sort | uniq|\
                    grep -v "^\(/tmp\|/dev\|/proc\)" ) 2>/dev/null|\
                    cut -f1 -d":"| sort | uniq'; \
                    do \
echo -n "$x (>=" 'dpkg -s $x|grep ^Version|cut -f2 -d":" ' "), "; \
done

but this does not work or maybe I don't know how to use it .

 So please help me with this issue , maybe you could give an advice where to find such a script or what I have to modify to make this work.
 
 Sincerely yours Mihai Felseghi !


Reply to: