File: mkicons.sh

package info (click to toggle)
csound 1%3A5.08.0.dfsg2-8%2Blenny2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 17,880 kB
  • ctags: 29,243
  • sloc: ansic: 131,452; cpp: 97,410; python: 7,473; perl: 634; tcl: 622; lisp: 602; sh: 602; java: 455; objc: 417; yacc: 410; makefile: 249; lex: 227
file content (20 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
# Construct flCsound xbm icons.

make LDLIBS=-lm px2pt

for mag in 1 2 3 4 5 6 7 8 9 16
do
  size=`expr 16 '*' $mag`
  resolution=`./px2pt $mag`
  echo "\mag=$mag; input flcsound" | mf
  gftopk flcsound.${resolution}gf
  pk2bm -cO flcsound.${resolution}pk > flcsound${size}.xbm \
      || echo pk2bm return code is $?
  echo created flcsound${size}.xbm
done

# Convert each to xpm's and then
#
# sed 's/#FFFFFF/None/' flcsound?*.xpm > flcsound.xpm