Skip to content

Commit 2c5a44f

Browse files
author
arch
committed
add OFS setup script for linux
1 parent 7294c6d commit 2c5a44f

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

contrib/OpenFunscripter/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
OFS/
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
if [ -d ./OFS ]; then
4+
echo "OpenFunscripter Source already downloaded"
5+
pushd OFS
6+
git pull
7+
else
8+
git clone https://github.com/OpenFunscripter/OFS.git
9+
pushd OFS
10+
git submodule update --init
11+
pushd lib/EASTL
12+
git submodule update --init
13+
popd
14+
echo "OpenFunscripter Source downloaded to ./OFS"
15+
fi
16+
17+
echo "build OFS"
18+
rm -rf build
19+
mkdir -p build
20+
pushd build
21+
cmake ..
22+
make -j$(expr $(nproc) \+ 1)
23+
popd
24+
popd

0 commit comments

Comments
 (0)