Permalink
Browse files

Remove \n

  • Loading branch information...
Bara committed Oct 21, 2018
1 parent a82cbc5 commit c47607ee3fae1090d48483b36629b060e729a0b2
Showing with 20 additions and 20 deletions.
  1. +16 −16 ci/build.sh
  2. +3 −3 ci/test.sh
  3. +1 −1 ci/upload.sh
@@ -7,14 +7,14 @@ VERSION=3.$COUNT
HASH="$(git log --pretty=format:%h -n 1)"
FILE=ttt-$2-$1-$VERSION-$HASH-$6.zip
echo -e "Download und extract sourcemod\n"
echo -e "Download und extract sourcemod"
wget "http://www.sourcemod.net/latest.php?version=$1&os=linux" -O sourcemod.tar.gz
tar -xzf sourcemod.tar.gz --exclude='addons/sourcemod/translations'
echo -e "Give compiler rights for compile\n"
echo -e "Give compiler rights for compile"
chmod +x addons/sourcemod/scripting/spcomp
echo -e "Set plugins version\n"
echo -e "Set plugins version"
for file in addons/sourcemod/scripting/include/ttt.inc
do
sed -i "s/<VERSION>/$VERSION/g" $file > output.txt
@@ -40,47 +40,47 @@ addons/sourcemod/scripting/spcomp -E -w234 -O2 -v2 addons/sourcemod/scripting/tr
echo -e "\nCompiling addons/sourcemod/scripting/turret_core.sp..."
addons/sourcemod/scripting/spcomp -E -w234 -O2 -v2 addons/sourcemod/scripting/turret_core.sp
echo -e "Remove plugins folder if exists\n"
echo -e "Remove plugins folder if exists"
if [ -d "addons/sourcemod/plugins" ]; then
rm -r addons/sourcemod/plugins
fi
echo -e "Create clean plugins folder\n"
echo -e "Create clean plugins folder"
mkdir addons/sourcemod/plugins
mkdir addons/sourcemod/plugins/disabled
mkdir addons/sourcemod/plugins/ttt
echo -e "Move all ttt binary files to plugins folder\n"
echo -e "Move all ttt binary files to plugins folder"
for file in ttt*.smx
do
mv $file addons/sourcemod/plugins/ttt
done
echo -e "Move all other binary files to plugins folder\n"
echo -e "Move all other binary files to plugins folder"
for file in *.smx
do
mv $file addons/sourcemod/plugins
done
echo -e "Move optional plugins into disabled folder\n"
echo -e "Move optional plugins into disabled folder"
mv addons/sourcemod/scripting/README.md addons/sourcemod/plugins/disabled
mv addons/sourcemod/plugins/ttt/ttt_dronescameras.smx addons/sourcemod/plugins/disabled
mv addons/sourcemod/plugins/ttt/ttt_futuristicgrenades.smx addons/sourcemod/plugins/disabled
mv addons/sourcemod/plugins/ttt/ttt_parachute.smx addons/sourcemod/plugins/disabled
mv addons/sourcemod/plugins/ttt/ttt_tactical_shield.smx addons/sourcemod/plugins/disabled
echo -e "Remove build folder if exists\n"
echo -e "Remove build folder if exists"
if [ -d "build" ]; then
rm -r build
fi
echo -e "Create clean build folder\n"
echo -e "Create clean build folder"
mkdir build
echo -e "Move addons, materials, models and sound folder\n"
echo -e "Move addons, materials, models and sound folder"
mv addons materials models sound build/
echo -e "Remove sourcemod folders\n"
echo -e "Remove sourcemod folders"
rm -r build/addons/metamod
rm -r build/addons/sourcemod/bin
rm -r build/addons/sourcemod/configs/geoip
@@ -94,14 +94,14 @@ rm -r build/addons/sourcemod/gamedata
rm -r build/addons/sourcemod/scripting
rm build/addons/sourcemod/*.txt
echo -e "Add LICENSE, CREDITS.md, CVARS.txt and adminmenu_custom.txt to build package\n"
echo -e "Add LICENSE, CREDITS.md, CVARS.txt and adminmenu_custom.txt to build package"
cp LICENSE CREDITS.md CVARS.txt adminmenu_custom.txt build/
echo -e "Clean root folder\n"
echo -e "Clean root folder"
rm sourcemod.tar.gz
echo -e "Go to build folder\n"
echo -e "Go to build folder"
cd build
echo -e "Compress directories and files\n"
echo -e "Compress directories and files"
zip -9rq $FILE addons materials models sound CREDITS.md LICENSE CVARS.txt adminmenu_custom.txt
@@ -1,14 +1,14 @@
#!/bin/bash
set -ev
echo -e "Download und extract sourcemod\n"
echo -e "Download und extract sourcemod"
wget "http://www.sourcemod.net/latest.php?version=$1&os=linux" -O sourcemod.tar.gz
tar -xzf sourcemod.tar.gz
echo -e "Give compiler rights for compile\n"
echo -e "Give compiler rights for compile"
chmod +x addons/sourcemod/scripting/spcomp
echo -e "Compile ttt plugins\n"
echo -e "Compile ttt plugins"
for file in addons/sourcemod/scripting/ttt/*.sp
do
echo -e "\nCompiling $file..."
@@ -26,5 +26,5 @@ echo -e "Upload latest build"
lftp -c "open -u $USER,$PASS $HOST; put -O downloads/ $LATEST"
echo -e "Update TTT Version"
wget $UPDATE -O version.log
wget -q $UPDATE -O version.log
rm version.log

0 comments on commit c47607e

Please sign in to comment.