nothing to bad at all.
want to have the script not recompile the game if there are no new updates and have it install the game to a build directory
nothing to bad at all.
want to have the script not recompile the game if there are no new updates and have it install the game to a build directory
Nothing too bad then, the checking for new updates might be the harder part. does git pull have a return condition if it pulled any updates. I might have to check that.
i was just gonna check if it said it didnt have any updates and return XD
lel yeah thats probably an easier way to do it.
yep. Hoping it all goes well
yep good luck. if it goes well maybe we should make a forum topic to share lazy automation scripts
perhaps
neat. if so I’d have to search through my mostly working alright but probably sketchy as fuck automation scripts and touch them up.
@Michael know why this is returning that it has too many arguments?
#!/bin/bash
UPDATES=$(git pull)
if [ $UPDATES = "Already up to date." ]
then
exit
fi
echo "updates were found"
I’m fairly sure it doesn’t need any brackets if it isn’t doing conditional statements so if $UPDATES = "Already up to date."
should work?
ah strach that its ==
instead of just =
./build-dev.sh: line 5: Already: command not found
updates were found
ah found it. forgot that you need double brackets. knew it was something to do with brackets.
this should work now
#!/bin/bash
UPDATES=$(git pull)
if [[ $UPDATES = "Already up to date." ]]
then
exit
fi
echo "updates were found"
neat. thanks
np
so this is what ive got so far
#!/bin/bash
UPDATES=$(git pull)
if [[ $UPDATES = "Already up to date." ]]
then
echo "No updates were found"
exit
fi
if [ -e output.log ]
then
rm output.log
fi
make clean
echo "#############################"
echo "Compiling with tiles build"
echo "#############################"
make RELEASE=1 LTO=1 TILES=1 SOUND=1 LUA=1 CLANG=1 CCACHE=1 |& tee -a output.log
echo "#############################"
echo "Compiling default build"
echo "#############################"
make RELEASE=1 LTO=1 LUA=1 CLANG=1 CCACHE=1 |& tee -a output.log
Nice looks pretty good
YES
MY GOD! Payday in VR would be amazing
lel he may not be very good at it looks like great fun
im also sure its alot harder in VR too