mirror of
https://codeberg.org/spire/spcomp.git
synced 2026-06-03 16:44:08 +02:00
initial version
This commit is contained in:
commit
74cbe3f450
3 changed files with 47 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from ioft/i386-ubuntu
|
||||
maintainer Robin Appelman <robin@icewind.nl>
|
||||
|
||||
ADD ./install.sh /install.sh
|
||||
RUN mkdir /data \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y wget unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN /install.sh
|
||||
|
||||
WORKDIR /data
|
||||
ENTRYPOINT ["/scripting/spcomp"]
|
||||
13
README.md
Normal file
13
README.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# SPCOMP
|
||||
|
||||
Docker image for compiling sourcepawn scripts
|
||||
|
||||
## Usage
|
||||
|
||||
`docker run --rm -v "$PWD":/data spiretf/spcomp inputfile.sp`
|
||||
|
||||
## Extensions
|
||||
|
||||
The docker image comes with include files for the following sourcemod extensions
|
||||
|
||||
- [curl](https://forums.alliedmods.net/showthread.php?t=152216)
|
||||
22
install.sh
Executable file
22
install.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
sm_url=$(wget -q -O - "http://www.sourcemod.net/downloads.php?branch=dev" | grep -oE -m1 "https://[a-z.]+/smdrop/[0-9.]+/sourcemod-(.*)-linux.tar.gz")
|
||||
|
||||
wget $sm_url -O sourcemod.tar.gz
|
||||
wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/sourcemod-curl-extension/curl_1.3.0.0_linux.zip -O curl.zip
|
||||
wget "https://forums.alliedmods.net/attachment.php?attachmentid=157128&d=1472513017" -O curl-inc.zip
|
||||
|
||||
tar -xzf sourcemod.tar.gz
|
||||
rm sourcemod.tar.gz
|
||||
|
||||
mv addons/sourcemod/scripting ./
|
||||
|
||||
unzip curl.zip
|
||||
rm curl.zip
|
||||
unzip curl-inc.zip
|
||||
mv include/* scripting/include
|
||||
|
||||
rm -r addons
|
||||
rm -r include
|
||||
rm -r cfg
|
||||
rm -r extensions
|
||||
Loading…
Add table
Add a link
Reference in a new issue