File: prepare_release.sh

package info (click to toggle)
fonts-monoid 0.61-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 38,236 kB
  • sloc: python: 142; sh: 41; makefile: 16
file content (20 lines) | stat: -rwxr-xr-x 489 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
shopt -s extglob

# Copy artifacts to keep after branch switch
cp Scripts/gh-pages.sh /tmp
cp Source/Readme+License.html /tmp

# Switch to release branch
git checkout release

cd _release
for f in Monoid-Regular*.ttf; do
    # Get the built options
    options=${f#Monoid-Regular}
    echo "Options: ${options}"
    # Add all the fonts with those options
    zip -j "../Monoid${options%.ttf}.zip" Monoid-+([^-])$options /tmp/Readme+License.html
done
cd ..
sudo rm -rf _release