From ff479b63f6a8699a9f1021b4c7945a14950c7b6b Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 1 Mar 2008 17:28:23 +0000 Subject: [PATCH] Improved bitstream-vera-fonts to create the fonts/TTF directory if missing --- fonts/bitstream-vera-fonts/bitstream-vera-fonts.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fonts/bitstream-vera-fonts/bitstream-vera-fonts.conf b/fonts/bitstream-vera-fonts/bitstream-vera-fonts.conf index 6997f0aff..b2d6c308a 100644 --- a/fonts/bitstream-vera-fonts/bitstream-vera-fonts.conf +++ b/fonts/bitstream-vera-fonts/bitstream-vera-fonts.conf @@ -3,6 +3,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../bitstream-vera-fonts/bitstream-vera-fonts.conf +# Copyright (C) 2008 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -16,7 +17,10 @@ bs_inst() { - cp -v *.ttf $root/usr/X11/lib/X11/fonts/TTF/ + local ttfdir="$root/usr/X11/lib/X11/fonts/TTF" + + [ -d "$ttfdir" ] || mkdir "$ttfdir" + cp -v *.ttf "$ttfdir/" } custmain=bs_inst