[DRE-commits] [ruby-rbpdf] 16/25: fix font build
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Feb 14 15:56:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-rbpdf.
commit d2318e48118dd30195b68fdafb235915783d3a1c
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Tue Feb 9 14:53:59 2016 -0200
fix font build
it needs to be done from the output directory
---
debian/fonts.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/fonts.sh b/debian/fonts.sh
index 1c1c645..52406c5 100755
--- a/debian/fonts.sh
+++ b/debian/fonts.sh
@@ -15,8 +15,13 @@ __run() {
build() {
__run cp "$input" "${output}.ttf"
- __run ttf2ufm -a -F "${output}.ttf"
- __run ruby rbpdf-font/lib/fonts/ttf2ufm/makefont.rb "${output}.ttf" "${output}.afm"
+ local basename=$(basename "$output")
+
+ (
+ cd $(dirname "$output")
+ __run ttf2ufm -a -F "${basename}.ttf"
+ __run ruby ttf2ufm/makefont.rb "${basename}.ttf" "${basename}.ufm"
+ )
rm -f "$output".afm
rm -f "$output".t1a
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rbpdf.git
More information about the Pkg-ruby-extras-commits
mailing list