File: upgrade.sh

package info (click to toggle)
hp-ppd 0.9-0.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 392 kB
  • ctags: 18
  • sloc: python: 55; sh: 43; makefile: 36
file content (25 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25


 ( for i in  $( ls ../hp-ppd-old/  ) ; 
     do l=$(echo $i | tr 'A-Z' 'a-z' ) ; 
       echo; echo ========= $i ; 
       if find -iname $l | grep -i $i ; then
        if find -name $i | grep  $i ; then 
           true #superseded 
        else
            ln -sv $l links/$i
        fi 
       else
          {  if grep -q CUPS-O ../hp-ppd-old/$i ; then 
                echo CUPS-O-MATIC $i ;  ln -vi ../hp-ppd-old/$i cups-o-matic ;
             else  
                 echo MISSING $i ;  ln -vi ../hp-ppd-old/$i  old ;
             fi ; 
          }
       fi
      done 
 ) 

exit

 rm links/* cups-o-matic/HP_DeskJet_* old/*