summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-13 15:25:50 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-13 15:25:50 -0500
commit91b86eb8d34f191a57bb3061e0ccb9c248e22e40 (patch)
tree4ca84e9c2022056356653ba500b51e881d9b3337
parentc97f92d10449dfd14a70f1f16886493664da51d6 (diff)
finishing touches for LinuxHEADtrunk
-rw-r--r--.gitignore3
-rw-r--r--README.md8
-rwxr-xr-xpackage.sh7
3 files changed, 14 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 23d9f82..f4ae1fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,6 @@ box2d
.vs*
setups
*.b2s
+box2d-src
+*.tar.gz
+*.zip
diff --git a/README.md b/README.md
index 9c206ba..a094486 100644
--- a/README.md
+++ b/README.md
@@ -44,8 +44,8 @@ sudo apt install libsdl2-dev
You need the latest version of Box2D. The versions in Debian stable/testing aren't new enough.
You can install it with:
```bash
-git clone https://github.com/erincatto/box2d/
-cd box2d
+git clone https://github.com/erincatto/box2d/ box2d-src
+cd box2d-src
mkdir -p build
cd build
cmake -DBOX2D_BUILD_TESTBED=False ..
@@ -63,8 +63,8 @@ and copy the folder `SDL2-something\include` there too, renaming it to `SDL2`.
Next, install `Box2D` (you will need `git` in your PATH):
```bash
vcvarsall x64
-git clone https://github.com/erincatto/box2d/
-cd box2d
+git clone https://github.com/erincatto/box2d/ box2d-src
+cd box2d-src
xcopy /s /i include\box2d ..\box2d
mkdir build
cd build
diff --git a/package.sh b/package.sh
new file mode 100755
index 0000000..190c380
--- /dev/null
+++ b/package.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+make clean
+make release -j8 || exit 1
+tar --transform 's,^,boxcatapult2d/,' -czvf boxcatapult2d-source.tar.gz $(git ls-files)
+tar --transform 's,^,boxcatapult2d/,' -czvf boxcatapult2d-linux.tar.gz \
+ $(git ls-files assets) boxcatapult2d LICENSE README.md
+