The Lounge 0001 [From the Beginning]

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

1 Like

Nothing too bad then, the checking for new updates might be the harder part. :thinking: 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.

1 Like

yep. Hoping it all goes well

1 Like

yep good luck. if it goes well maybe we should make a forum topic to share lazy automation scripts :smiley:

1 Like

perhaps :smiley:

1 Like

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"
1 Like

neat. thanks :smiley:

1 Like

np :smiley:

1 Like

so this is what ive got so far :smiley:

#!/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
1 Like

Nice looks pretty good :smiley:

1 Like

YES

1 Like

MY GOD! Payday in VR would be amazing :smiley:

1 Like

lel he may not be very good at it looks like great fun :joy:

im also sure its alot harder in VR too