Skip to content

Commit 7b4a8d9

Browse files
committed
Removed SDKs from the repository. Use the new SDK.bat/SDK.sh to pull in the SDKs you wish to build against. New Build.bat/Build.sh files have also been added. When using either SDK/Build files, input the name of the SDK (for example, for the hl2sdk-ob-valve SDK, type in ob-valve)
1 parent caad960 commit 7b4a8d9

File tree

6,961 files changed

+46
-2709895
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,961 files changed

+46
-2709895
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ src/CMakeCache.txt
3333
src/cmake_install.cmake
3434
src/Makefile
3535
src/lib*
36-
src/Build/*
36+
src/Build/*
37+
src/sdks/*
38+
!src/sdks/readme.txt

src/Build.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set /p name="Enter SDK name: " %=%
2+
mkdir Build
3+
cd Build
4+
cmake .. -G"Visual Studio 10" -DGAME=%name%
5+
pause

src/Build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
echo "Enter SDK name: "
2+
read name
3+
mkdir Build
4+
cd Build
5+
echo "Build in Debug mode?"
6+
select yn in "Yes" "No"; do
7+
case $yn in
8+
Yes ) cmake .. -DGame=$name -DCMAKE_BUILD_TYPE=Debug; break;;
9+
No ) cmake .. -DGame=$name; break;;
10+
esac
11+
done

src/SDK.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set /p name="Enter SDK name: " %=%
2+
set STARTDIR=%CD%
3+
cd sdks
4+
if not exist %STARTDIR%\sdks\hl2sdk-%name% mkdir %STARTDIR%\sdks\hl2sdk-%name%
5+
cd hl2sdk-%name%
6+
hg init
7+
hg revert --all
8+
hg pull -u https://hg.alliedmods.net/hl2sdks/hl2sdk-%name%
9+
if exist %STARTDIR%\patches\hl2sdk-%name% xcopy %STARTDIR%\patches\hl2sdk-%name% %STARTDIR%\sdks\hl2sdk-%name% /y/s
10+
pause

src/SDK.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
echo "Enter SDK name: "
2+
read name
3+
STARTDIR=$PWD
4+
cd sdks
5+
if [ ! -d $PWD/sdks/hl2sdk-$name ]; then
6+
mkdir $PWD/sdks/hl2sdk-$name
7+
fi
8+
cd hl2sdk-$name
9+
hg init
10+
hg revert --all
11+
hg pull https://hg.alliedmods.net/hl2sdks/hl2sdk-$name
12+
if [ -d $STARTDIR/patches/hl2sdk-$name ]; then
13+
cp -R $STARTDIR/patches/hl2sdk-$name $STARTDIR/sdks/hl2sdk-$name
14+
fi

src/configure-csgo-debug.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/configure-csgo-release.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/configure-csgo.bat

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/configure-ob-debug.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/configure-ob-release.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)