Skip to content

Commit

Permalink
Add new script setup-macos.sh
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Sep 7, 2024
1 parent a43d713 commit 7530c81
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
- run: ./script/setup.sh
- run: ./script/setup-ubuntu.sh
- run: cmake -B build -DCMAKE_BUILD_TYPE=Release
- run: cmake --build build --target package
- run: gh release create v${{ env.VERSION }} build/meevax_${{ env.VERSION }}_amd64.deb --title "Version ${{ env.VERSION }}"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Procedures for each standard are provided by the following R7RS-style libraries:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build
make package
sudo apt install build/meevax_0.5.233_amd64.deb
sudo apt install build/meevax_0.5.234_amd64.deb
```

or
Expand Down Expand Up @@ -122,9 +122,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|-------------|-------------
| `all` | Build shared-library `libmeevax.0.5.233.so` and executable `meevax`
| `all` | Build shared-library `libmeevax.0.5.234.so` and executable `meevax`
| `test` | Test executable `meevax`
| `package` | Generate debian package `meevax_0.5.233_amd64.deb`
| `package` | Generate debian package `meevax_0.5.234_amd64.deb`
| `install` | Copy files into `/usr/local` directly

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.233
0.5.234
1 change: 1 addition & 0 deletions script/setup-macos-14.sh
35 changes: 35 additions & 0 deletions script/setup-macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh -e

required()
{
echo gmp
}

optional()
{
echo gcc
}

documentation()
{
echo bibtex2html # script/references.sh
echo doxygen
echo pandoc # script/references.sh
}

brew update

if test "$#" -eq 0
then
required | xargs brew install
else
for each in "$@"
do
case "$each" in
-a | --all ) ( required && optional && documentation ) | xargs brew install ;;
-d | --documentation ) ( documentation ) | xargs brew install ;;
-o | --optional ) ( optional ) | xargs brew install ;;
-r | --required ) ( required ) | xargs brew install ;;
esac
done
fi

0 comments on commit 7530c81

Please sign in to comment.