File: install.sh

package info (click to toggle)
hp-ppd 0.8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 392 kB
  • ctags: 18
  • sloc: python: 55; sh: 43; makefile: 36
file content (32 lines) | stat: -rw-r--r-- 456 bytes parent folder | download
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
26
27
28
29
30
31
32
#!/bin/sh -e

D="$1"

if ! [  -d "$D" -a -w "$D" ] ; then
 echo $0 : cannot access directory $D
 exit 1
fi
shift

echo INSTALLING TO $D

H=`pwd`

for i in "$@" ; do 
  pushd $i
  echo INSTALLING FROM $i
  for f in *ppd ; do
   if grep -q  MacStandard $f ; then
    echo CONVERTING $f 
    python $H/recode-0.1.py  $f > $D/$f	
   else
    echo COPYING $f 
    cp  $f  $D/$f 
   fi
  done
  popd
done


# find "$i" -type f -name '*ppd' | \
#    xargs -n1 -i