From: Michael Orlitzky Date: Wed, 8 Nov 2023 21:05:25 +0000 (-0500) Subject: sfd2woff.ff: take the output file as another argument X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=ce8a3cc46218347579ca35e370d1afb20a5a4f48;p=charm-bypass.git sfd2woff.ff: take the output file as another argument In out-of-source builds, we can't write the output to the same directory as the input. --- diff --git a/sfd2woff.ff b/sfd2woff.ff index a3585c6..8f60855 100755 --- a/sfd2woff.ff +++ b/sfd2woff.ff @@ -1,8 +1,7 @@ #!/usr/bin/env fontforge # -# FontForge script to convert its argument (some font file) to -# woff2. The base name of the file is kept the same and a .woff2 -# extension is added. See, +# FontForge script that converts its first argument (a font file) to +# woff2, saving the results to its second argument (a path). See, # # https://fontforge.org/docs/tutorial/scripting-tutorial.html # @@ -29,4 +28,4 @@ # 819212 # Open($1); -Generate($1:r + ".woff2","",819212); +Generate($2,"",819212);