Переглянути джерело

* Allow setting the font directory using --datadir / --datarootdir.

pull/1/head
Sam Hocevar sam 19 роки тому
джерело
коміт
67988bb31f
5 змінених файлів з 6 додано та 4 видалено
  1. +1
    -0
      configure.ac
  2. +1
    -1
      doc/Makefile.am
  3. +2
    -2
      doc/toilet.1.in
  4. +1
    -0
      src/Makefile.am
  5. +1
    -1
      src/main.c

+ 1
- 0
configure.ac Переглянути файл

@@ -77,5 +77,6 @@ AC_OUTPUT([
tools/Makefile tools/Makefile
fonts/Makefile fonts/Makefile
doc/Makefile doc/Makefile
doc/toilet.1
]) ])



+ 1
- 1
doc/Makefile.am Переглянути файл

@@ -1,6 +1,6 @@
# $Id: Makefile.am 871 2006-09-25 15:58:33Z sam $ # $Id: Makefile.am 871 2006-09-25 15:58:33Z sam $


EXTRA_DIST = $(man_MANS)
EXTRA_DIST = toilet.1.in


man_MANS = toilet.1 man_MANS = toilet.1



doc/toilet.1 → doc/toilet.1.in Переглянути файл

@@ -55,7 +55,7 @@ Use the given font instead of the default value. Fonts are
or or
.B .tlf .B .tlf
files stored in the files stored in the
.B /usr/share/figlet
.B @datarootdir@/figlet
directory. There is also a special built-in font called directory. There is also a special built-in font called
.I term .I term
that serves as a fallback if no font is available. that serves as a fallback if no font is available.
@@ -63,7 +63,7 @@ that serves as a fallback if no font is available.
.B \-d, \-\-directory <dir> .B \-d, \-\-directory <dir>
Specify the directory in which to look for fonts. The default value is set Specify the directory in which to look for fonts. The default value is set
at build time and usually defaults to at build time and usually defaults to
.B /usr/share/figlet.
.B @datarootdir@/figlet.
.TP .TP
.B \-w, \-\-width <width> .B \-w, \-\-width <width>
Set the output width. By default, Set the output width. By default,

+ 1
- 0
src/Makefile.am Переглянути файл

@@ -7,6 +7,7 @@ toilet_SOURCES = main.c toilet.h \
filter.c filter.h \ filter.c filter.h \
export.c export.h \ export.c export.h \
term.c figlet.c term.c figlet.c
toilet_CPPFLAGS = -DFONTDIR=\"$(datadir)/figlet\"
toilet_CFLAGS = `pkg-config --cflags cucul` toilet_CFLAGS = `pkg-config --cflags cucul`
toilet_LDFLAGS = `pkg-config --libs cucul` @GETOPT_LIBS@ @ZLIB_LIBS@ toilet_LDFLAGS = `pkg-config --libs cucul` @GETOPT_LIBS@ @ZLIB_LIBS@



+ 1
- 1
src/main.c Переглянути файл

@@ -50,7 +50,7 @@ int main(int argc, char *argv[])


cx->export = "utf8"; cx->export = "utf8";
cx->font = "smblock"; cx->font = "smblock";
cx->dir = "/usr/share/figlet/";
cx->dir = FONTDIR;


cx->term_width = 80; cx->term_width = 80;




Завантаження…
Відмінити
Зберегти