Skip to content

Commit 71353a5

Browse files
committed
Reorganize/tidy scripts/ directory a little
1 parent 74fd7bc commit 71353a5

18 files changed

+14
-10
lines changed

build_resources/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ resource:
1212
OpenSim Creator source code (e.g. `OSC_ICON_LIGHTNING`) to a combination of
1313
a unicode codepoint (used to compile the runtime icon font) and svg file (in
1414
`resources/OpenSimCreator/icons/`). This file was initially generated via a
15-
script (`compile_svgs_to_ttf.py`) and subsequently manually updated whenever a
15+
script (`oneoff_svg-icons-to-ttf.py`) and subsequently manually updated whenever a
1616
new icon comes along.
1717

1818
- `icons/`: SVG icons, which are combined with `font-mappings.json` to create
1919
the OpenSim Creator icon font using a [FontForge](https://fontforge.org) script
20-
(`compile_svgs_to_ttf.py`). The license for each icon can be determined by reading
20+
(`oneoff_svg-icons-to-ttf`). The license for each icon can be determined by reading
2121
the `author` field in `font-mappings.json`. If it says "Font Awesome" then the
2222
license is the [FontAwesome Free License](https://fontawesome.com/v4/license/). If
2323
it says "Adam Kewley" then you can assume it's a [Creative Commons Attribution 4.0 International License][cc-by].

docs/source/the-release-process.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Creator, it's usually copied into a GitHub issue:
5353
- [ ] Otherwise, it requires @adamkewley's GitHub login to publish
5454
the generated draft from Zenodo
5555
- [ ] Update + commit the repository with the Zenodo release details:
56-
- [ ] Use `./scripts/bump_zenodo_details.py` to automatically do this
56+
- [ ] Use `./scripts/oneoff_bump-zenodo-details.py` to automatically do this
5757
- [ ] Ensure `codemeta.json`, `CITATION.cff`, and `README.md` refer to the
5858
correct Zenodo release.
5959
- [ ] Ensure the entire repository, incl. all tags, is pushed to the official

scripts/ci_build_mac.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ export OSC_CMAKE_CONFIG_EXTRA="-DCMAKE_OSX_ARCHITECTURES=${OSC_OSX_ARCHITECTURES
2828
./scripts/build_mac.sh
2929

3030
# run after-build OS-specific test scripts
31-
./scripts/macos_check-dependencies.py build/osc/osc.app/Contents/MacOS/osc
32-
./scripts/macos_check-sdk.py "${OSC_TARGET_OSX_VERSION}" build/osc/osc.app/Contents/MacOS/osc
31+
./scripts/test_macos-dependencies.py build/osc/osc.app/Contents/MacOS/osc
32+
./scripts/test_macos-uses-sdk.py "${OSC_TARGET_OSX_VERSION}" build/osc/osc.app/Contents/MacOS/osc
33+

scripts/bump_zenodo_details.py renamed to scripts/oneoff_bump-zenodo-details.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
#
66
# USAGE
77
#
8-
# python scripts/bump_zenodo_details.py # follow the prompts this gives
9-
# git diff # ensure the script made sane changes
8+
# python scripts/oneoff_bump-zenodo-details.py # follow the prompts this gives
9+
# git diff # ensure the script made sane changes
10+
# git add -A # index the changes
11+
# git commit -m "Updated Zenodo details" # commit changes
1012

1113
import datetime
1214
import re
File renamed without changes.
File renamed without changes.

scripts/compile_svgs_to_ttf.py renamed to scripts/oneoff_svg-icons-to-ttf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
# emit `IconCodepoints.h`
6666
with open(R'C:\Users\adamk\Desktop\opensim-creator\libopensimcreator\Platform\IconCodepoints.h', 'w') as f:
67-
f.write("// This was generated by OpenSim Creator's `compile_svgs_to_ttf.py` script\n")
67+
f.write("// This was generated by OpenSim Creator's `oneoff_svg-icons-to-ttf.py` script\n")
6868
f.write('\n')
6969
f.write(f'#define OSC_ICON_MIN {hex(min(unicode_ints))}\n')
7070
f.write(f'#define OSC_ICON_MAX {hex(max(unicode_ints))}\n')

scripts/generate_icon_files.py renamed to scripts/oneoff_svg-to-ico-or-icns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# - save the raw icon SVG as a high (e.g. 1024x1024) resolution PNG file (e.g. logoBIG.png)
1010
# - input the PNG file into this script, and tell the script what format to write the output to:
1111
#
12-
# - e.g. (icns) `python3 generate_icon_files.py logoBIG.png -o icon.icns`
13-
# - e.g. (ico) `python3 generate_icon_files.py logoBIG.png -o icon.ico`
12+
# - e.g. (icns) `python3 oneoff_svg-to-ico-or-icns.py logoBIG.png -o icon.icns`
13+
# - e.g. (ico) `python3 oneoff_svg-to-ico-or-icns.py logoBIG.png -o icon.ico`
1414
#
1515
# ICO files generated by this script embed the following sizes:
1616
#
File renamed without changes.

0 commit comments

Comments
 (0)