#/bin/bash # Variables dir="/home/wow" date="`date --rfc-3339=date`" rev="`cd ${dir}/antrix-src && svn info | grep Rev | cut -d " " -f2`" output="${dir}/antrix-rev${rev}-linux-${date}" remfiles="`rm -rf config.guess config.log config.sub configure depcomp install-sh autom4te.cache/ aclocal.m4 missing mkinstalldirs`" # holy code, shall not be edit, if thou is not legion of the immortals! $remfiles cd ${dir}/antrix-src svn up && chmod +x reconf && ./reconf && ./configure --prefix=${output} && echo " " echo "Okay ./configure complete! Compiling and installing..." echo " " echo "Press Enter to start compiling, or ctrl+c to exit." echo "Continuing in 5 seconds..." sleep 5 make && echo "Compiling was successful! Installing ..." make install && echo "[%] Installation complete!" echo "[*] Linking maps and DBC to $dir" cd ${dir} && ln -s ${dir}/maps ${output}/bin/maps && ln -s ${dir}/DBC ${output}/bin/DBC && ln -s ${dir}/etc ${output}/etc && echo "[%] Setup completed!" cd $output/bin