Skip to content

Commit

Permalink
slight cleanup of release prep script
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowtype committed Jun 30, 2022
1 parent cbfbc67 commit 6d157d1
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/build-scripts/make-release/00-prep-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ outputDir=ArrowType-Recursive-${version/" "/"_"}
gfDir=fonts/recursive_for_googlefonts

# clean up past runs
# rm -rf $outputDir
# rm -rf fonts/$outputDir
# rm -rf fonts/$outputDir.zip
rm -rf "./$outputDir" || true # move on if dir isn't there to delete
rm -rf fonts/$outputDir || true # move on if dir isn't there to delete
rm -rf fonts/$outputDir.zip || true # move on if dir isn't there to delete
rm -rf $gfDir || true # move on if dir isn't there to delete

# ---------------------------------------------
# if you need to make sure versions are set to something specific
Expand Down Expand Up @@ -97,15 +98,6 @@ otf2otc $fonts -o "$outputDir/$desktopDir/recursive-static-OTFs.otc"
fonts=$(ls $dir/Static_TTF/*.ttf)
otf2otc $fonts -o "$outputDir/$desktopDir/recursive-static-TTFs.ttc"

# ---------------------------------------------
# Make code-specific fonts

# TODO: change directories to auto-build this from that other project? Might be overly dependent on my own

# python src/build-scripts/make-release/instantiate-code-fonts.py $dir/Variable_TTF/*.ttf -o $outputDir/$desktopCodeDir

mkdir -p $outputDir/$desktopCodeDir

# ---------------------------------------------
# copy metadata

Expand All @@ -127,7 +119,7 @@ cp -r $dir/Static_TTF $outputDir/$desktopDir/separate_statics/TTF
rm $outputDir/$desktopDir/separate_statics/TTF/*_output.txt || true # remove file if it exists OR move on

# ---------------------------------------------
# move dir "fonts/"
# move dir into "fonts/"

mv $outputDir fonts/$outputDir

Expand All @@ -145,6 +137,9 @@ rm $gfDir/static/*_output.txt || true # remove file if it exists OR move on
# make code fonts
# assumes the "recursive-code-config" project lives in the same directory as "recursive"


mkdir -p fonts/$outputDir/$desktopCodeDir

# gets VF filename
VFname=$(basename $VF)
# copy VF into code-config directory
Expand Down

0 comments on commit 6d157d1

Please sign in to comment.