aboutsummaryrefslogtreecommitdiffstats
path: root/figlist
blob: 6dea3b2cf8b6615917cb0e6a7889851b2a2821ef (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/sh -
# figlist by Glenn Chappell <ggc@uiuc.edu>
# figlet release 2.1.1 -- 25 Aug 1994
#
# Lists all fonts and control files in figlet's default font directory.
# Replaces "figlet -F", which was removed from figlet version 2.1.
#
# Usage: figlist [ -d directory ]

DIR=`dirname $0`
FIGLET=$DIR/figlet

# Get figlet version
FIGLETVERSION=`$FIGLET -I1 2>/dev/null`
if [ -z "$FIGLETVERSION" ]; then
  FIGLETVERSION=20000
fi

USAGE="Usage: `basename $0` [ -d directory ]"

if [ "$1" = "-d" ]; then
  FONTDIROPT="-d $2"
  if [ $# -ne 2 ]; then
    echo "$USAGE"
    exit 1
  fi
else
  FONTDIROPT=""
  if [ $# -ne 0 ]; then
    echo "$USAGE"
    exit 1
  fi
fi

if [ "$FIGLETVERSION" -lt 20100 ]; then
  # figlet 2.0
  $FIGLET $FONTDIROPT -F
  exit
fi

# From here on we may assume figlet 2.1 or later

FONTDIR=`$FIGLET $FONTDIROPT -I2`
FONT=`$FIGLET -I3`
echo "Default font: $FONT"
echo "Font directory: $FONTDIR"

if [ -d "$FONTDIR" ] && [ -r "$FONTDIR" ]; then
  cd "$FONTDIR"
  if ls *.flf >/dev/null 2>&1 ; then
    echo "Figlet fonts in this directory:"
    ls *.flf 2>/dev/null | sed s/\.flf$//
  else
    echo 'No figlet fonts in this directory'
  fi
  if ls *.flc >/dev/null 2>&1 ; then
    echo "Figlet control files in this directory:"
    ls *.flc 2>/dev/null | sed s/\.flc$//
  else
    echo 'No figlet control files in this directory'
  fi
else
  echo 'Unable to open directory'
fi
linux.git/commit/Makefile.in?id=6132a83fb8a4b6158222fbf6080656fac105c470&follow=1'>[lcd4linux @ 2001-03-13 07:53:00 by reinelt]reinelt2-13/+15 added several files for the distribution git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@114 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-13[lcd4linux @ 2001-03-13 07:41:22 by reinelt]reinelt3-2/+52 added NEWS file git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@113 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-12[lcd4linux @ 2001-03-12 13:44:58 by reinelt]reinelt8-58/+232 new udelay() using Time Stamp Counters git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@112 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-12[lcd4linux @ 2001-03-12 12:49:24 by reinelt]reinelt2-63/+71 even better configure handling... git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@111 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-12[lcd4linux @ 2001-03-12 12:39:36 by reinelt]reinelt14-448/+830 reworked autoconf a lot: drivers may be excluded, #define's went to config.h git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@110 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-09[lcd4linux @ 2001-03-09 16:24:30 by ltoetsch]ltoetsch2-155/+345 disable driver in configure git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@109 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-09[lcd4linux @ 2001-03-09 15:04:53 by reinelt]reinelt3-103/+109 rename 'raster' to 'Text in Text.c added TOTO item git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@108 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-09[lcd4linux @ 2001-03-09 14:30:01 by reinelt]reinelt1-0/+7 new ideas for TODO git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@107 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-09[lcd4linux @ 2001-03-09 14:24:49 by ltoetsch]ltoetsch3-7/+18 exec: Scale_x ->Min/Max_x git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@106 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-09[lcd4linux @ 2001-03-09 13:08:11 by ltoetsch]ltoetsch12-86/+384 Added Text driver git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@105 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-09[lcd4linux @ 2001-03-09 12:14:24 by reinelt]reinelt4-21/+34 minor cleanups git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@104 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-08[lcd4linux @ 2001-03-08 15:25:38 by ltoetsch]ltoetsch9-93/+214 improved exec git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@103 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-08[lcd4linux @ 2001-03-08 09:02:04 by reinelt]reinelt4-133/+21 seti client cleanup git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@102 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-08[lcd4linux @ 2001-03-08 08:39:54 by reinelt]reinelt2-4/+12 fixed two typos git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@101 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-07[lcd4linux @ 2001-03-07 18:10:21 by ltoetsch]ltoetsch10-110/+319 added e(x)ec commands git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-05[lcd4linux @ 2001-03-05 18:20:21 by reinelt]reinelt2-13/+25 TOTO list update git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@99 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-04[lcd4linux @ 2001-03-04 15:01:12 by ltoetsch]ltoetsch1-3/+3 Added PNG git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@98 3ae390bd-cb1e-0410-b409-cd5a39f66f1f 2001-03-02[lcd4linux @ 2001-03-02 20:18:12 by reinelt]reinelt3-36/+89 allow compile on systems without net/if_ppp.h git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@97 3ae390bd-cb1e-0410-b409-cd5a39f66f1f