File: docvt

package info (click to toggle)
xpat2 1.06-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,396 kB
  • ctags: 1,723
  • sloc: ansic: 10,716; cpp: 2,243; makefile: 169; sh: 28
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