The Lounge 0001 [From the Beginning]

yep trying that now. luckily I still have the repo on my system and hasn’t been updated in a while so its the perfect test :smiley:

1 Like

yep. im trying it right now. hoping it all works well

1 Like

yep its compiling now and looks good so far.

should also be a output.log file generated so you can look back though the message incase shit breaks

1 Like

found a bug because im a twat and put cataclysm-dda instead of cataclysm-tiles in the cp command XD
also added support to use make flags with the MAKE_FLAGS option in the script

#!/bin/bash

UPDATES=$(git pull) #check for updates and download them. Store the results to check for updates
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) #gets the current directory and saves the output
RESPONSE="N" #default response used when already upto date
INSTALL_DIR="install/"
MAKE_FLAGS="-j2"

shopt -s extglob

if [[ $UPDATES = "Already up to date." ]] #Checks to see if the latest version is running and if true asks if you want to go ahead and compile
then
        echo "Already upto date."
        echo "Continue Building (y/N)?"
        read RESPONSE
        if [[ ${RESPONSE,,} != "y" ]]
        then
                exit
        fi

fi

if [ -e output.log ] #checks if the log already exsists and if true it removes it
then
        rm output.log
fi

make clean |& tee -a output.log #prepare the source folder for compilation

echo "#############################" |& tee -a output.log
echo "Compiling with tiles build" |& tee -a output.log
echo "#############################" |& tee -a output.log
make $MAKE_FLAGS RELEASE=1 LTO=1 TILES=1 SOUND=1 LUA=1 CLANG=1 CCACHE=1 |& tee -a output.log #compiles a version of cataclysm with tiles

echo "#############################" |& tee -a output.log
echo "Compiling default build" |& tee -a output.log
echo "#############################" |& tee -a output.log
make $MAKE_FLAGS RELEASE=1 LTO=1 LUA=1 CLANG=1 CCACHE=1 |& tee -a output.log #compiles a non tiles build of cataclysm

echo "#############################" |& tee -a output.log
echo "Installing cataclysm DDA" |& tee -a output.log
echo "############################" |& tee -a output.log

if [ ! -d $DIR/$INSTALL_DIR ] #check to see if the install folder exsists and if it does not it creates it
then
        mkdir $DIR/$INSTALL_DIR
fi

rm -rf $DIR/$INSTALL_DIR/!(save|config|templates) #remove the old version of the game
cp -r $DIR/data/ $DIR/lua/ $DIR/gfx/ $DIR/cataclysm $DIR/cataclysm-tiles $INSTALL_DIR #copys over the latest bulid to $INSTALL_DIR

1 Like

kek you can’t escape the programming typos, MAKE_FLAGS option is :ok_hand: though

1 Like

Prime shipping doesn’t seem to be applicable for R rated movies. Which kinda sucks cause I don’t wanna pay 3.60€ extra for Kill Bill Vol.1 (or any other R rated movie in that regard). But kinda shows that I’ve never bought a movie on Amazon before that’s R rated.

2 Likes

Whats up ye cunts?

going to be playing GRIP on te AMD twitch now, and then probably after thats done some more LIS on my channel.

2 Likes

Have been trying to compile Cataclysm but Fedora is being mean to me :frowning:

1 Like

how so?

It won’t compile with the LTO flag and for some reason your script is all kinds of messed up and doesn’t even bring up the continue build option and just runs. thought i’d tried it on an arch container and works completely fine there.

Just watching some anime and nursing a slight hangover

2 Likes

hmm. that is super fucking strange. are all of the deps met?

I’ve install all the required deps doesn’t seem like any are missing. this is what I get when I try and compile it:

/usr/bin/ld.gold: error: ../cataclysm.a: no archive symbol table (run ranlib)

does ranlib run?

yep but doesn’t seem to do anything.

perhaps try it on a fresh fedora install. think your ranlib might not be working correctly

1 Like

alright. will try that now