Skip to content

Commit

Permalink
fix: typos in pack demo script
Browse files Browse the repository at this point in the history
  • Loading branch information
jaromil committed Dec 25, 2024
1 parent db19089 commit 06f5959
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions build/pack-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mkdir -p cjit-demo/SDL2

# SDL2
ver=2.30.10
url="https://github.com/libsdl-org/SDL2/releases/download/release-${ver}"
url="https://github.com/libsdl-org/SDL/releases/download/release-${ver}"
[ -r SDL2-${ver}-win32-x64.zip ] ||
wget ${url}/SDL2-${ver}-win32-x64.zip
[ -r cjit-demo/SDL2.dll ] ||
Expand Down Expand Up @@ -56,15 +56,16 @@ url="https://github.com/libsdl-org/SDL_ttf/releases/download/release-${ver}"
rm -rf /tmp/SDL2_ttf-${ver}
}


[ -r ${glew} ] || {
wget "https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0-win32.zip"
ver=2.2.0
url="https://github.com/nigels-com/glew/releases/download/glew-${ver}/glew-${ver}-win32.zip"
[ -r glew-${ver}-win32.zip ] || {
wget ${url}
}
[ -r cjit-demo/glew32.dll ] || {
unzip -q -d /tmp glew-2.2.0-win32.zip
mv /tmp/glew-2.2.0/bin/Release/x64/glew32.dll cjit-demo/
mv /tmp/glew-2.2.0/include/GL cjit-demo/
rm -rf /tmp/glew-2.2.0
unzip -q -d /tmp glew-${ver}-win32.zip
mv /tmp/glew-${ver}/bin/Release/x64/glew32.dll cjit-demo/
mv /tmp/glew-${ver}/include/GL cjit-demo/
rm -rf /tmp/glew-${ver}
}

tar --format ustar -czf cjit-demo.tar.gz cjit-demo
Expand Down

0 comments on commit 06f5959

Please sign in to comment.