File: docvt

package info (click to toggle)
xpat2 1.07-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,212 kB
  • ctags: 2,097
  • sloc: ansic: 13,755; perl: 3,068; cpp: 2,935; makefile: 176; sh: 32
file content (9 lines) | stat: -rwxr-xr-x 365 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# convert pysol cardimage into xpat2 xpm file
# argument 1 = directory of source file
# argument 2 = card rank
# argument 3 = corresponding xpat name
giftopnm $1/$2c.gif | ppmtoxpm > $3.Clubs.pic.xpm
giftopnm $1/$2s.gif | ppmtoxpm > $3.Spades.pic.xpm
giftopnm $1/$2h.gif | ppmtoxpm > $3.Hearts.pic.xpm
giftopnm $1/$2d.gif | ppmtoxpm > $3.Diamonds.pic.xpm