In out-of-source builds, we can't write the output to the same
directory as the input.
#!/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
#
# 819212
#
Open($1);
-Generate($1:r + ".woff2","",819212);
+Generate($2,"",819212);