debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
        
      
        
          | 
                Last change
                  on this file since ecf9e9f2 was
                  08be670,
                  checked in by Olly Betts <olly@…>, 11 years ago
           | 
        
        
          | 
               
lib/icons/png2winicon: Clean up - use set -e, create temporary files 
in current directory, and quote filenames. 
 
           | 
        
        
          
            
              - 
                  Property mode set to
                  
100755
               
             
           | 
        
        | 
            File size:
            240 bytes
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [f6e7713] | 1 | #!/bin/sh | 
|---|
| [08be670] | 2 | set -e | 
|---|
 | 3 | t=.tmp.$$ | 
|---|
 | 4 | pngtopnm "$1" > "$t.pnm" | 
|---|
 | 5 | pngtopnm -alpha "$1" | pgmtopbm -threshold > "$t.pbm" | 
|---|
 | 6 | pnmcomp -alpha="$t.pbm" "$t.pnm" "$t.pbm" "$t.2.pnm" | 
|---|
 | 7 | ppmtowinicon -andppms "$t.2.pnm" "$t.pbm" > "$2" | 
|---|
 | 8 | rm "$t.pnm" "$t.pbm" "$t.2.pnm" | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.