Skip to content

Commit

Permalink
And this...
Browse files Browse the repository at this point in the history
  • Loading branch information
yanone committed Feb 14, 2024
1 parent f6b7801 commit ab0774f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 31 deletions.
63 changes: 33 additions & 30 deletions GF_glyphsets/update-gs.sh
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
#!/bin/sh
set -e
# Deactivated this because it's now superseded by build.sh

# Go the sources directory to run commands
SOURCE="${BASH_SOURCE[0]}"
DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
cd $DIR

echo "clean-up"
rm -rf ./*/nam/*.nam ./*/txt/*/*.txt ./*/glyphs/*.plist
# #!/bin/sh
# set -e

echo "Updating lists"
# # Go the sources directory to run commands
# SOURCE="${BASH_SOURCE[0]}"
# DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )
# cd $DIR

scripts=$(ls -d */ | cut -f1 -d'/')
# echo "clean-up"
# rm -rf ./*/nam/*.nam ./*/txt/*/*.txt ./*/glyphs/*.plist

for script in $scripts
do
echo $script
sets=$(ls ./$script/glyphs/*.glyphs | xargs -n 1 basename | sed -e 's/\.glyphs$//')
if [[ $sets == *GF_Latin_Core* ]]
then
glyphsets filter-list $sets -o $script/glyphs/CustomFilter_GF_$script.plist
elif [[ $sets == *GF_TransLatin* ]]
then
glyphsets filter-list GF_Latin_Kernel $sets -o $script/glyphs/CustomFilter_GF_$script.plist
else
glyphsets filter-list GF_Latin_Core $sets -o $script/glyphs/CustomFilter_GF_$script.plist
fi
for set in $sets
do
glyphsets nam-file $set -o $script/nam/$set.nam
glyphsets filter-list $set -o $script/txt/nice-names/$set.txt
glyphsets filter-list $set -o $script/txt/prod-names/$set.txt --prod-names
done
done
# echo "Updating lists"

# scripts=$(ls -d */ | cut -f1 -d'/')

# for script in $scripts
# do
# echo $script
# sets=$(ls ./$script/glyphs/*.glyphs | xargs -n 1 basename | sed -e 's/\.glyphs$//')
# if [[ $sets == *GF_Latin_Core* ]]
# then
# glyphsets filter-list $sets -o $script/glyphs/CustomFilter_GF_$script.plist
# elif [[ $sets == *GF_TransLatin* ]]
# then
# glyphsets filter-list GF_Latin_Kernel $sets -o $script/glyphs/CustomFilter_GF_$script.plist
# else
# glyphsets filter-list GF_Latin_Core $sets -o $script/glyphs/CustomFilter_GF_$script.plist
# fi
# for set in $sets
# do
# glyphsets nam-file $set -o $script/nam/$set.nam
# glyphsets filter-list $set -o $script/txt/nice-names/$set.txt
# glyphsets filter-list $set -o $script/txt/prod-names/$set.txt --prod-names
# done
# done
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
sh GF_glyphsets/update-gs.sh
python scripts/assemble_charactersets.py
python scripts/assemble_description.py

0 comments on commit ab0774f

Please sign in to comment.