xt/plain; charset=UTF-8
Content-Disposition: inline; filename="ae6aed15cfd95e6efbdcf4eb1f6de2697acd8c13..46bbacee95b8cc68b7e531232a319ed46c2e1560.patch"
Last-Modified: Mon, 24 Feb 2025 08:36:36 GMT
Expires: Thu, 22 Feb 2035 08:36:36 GMT

est for gpcfs purposes</title>
<meta name='generator' content='cgit v1.2.3'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/static/cgit.css'/>
<link rel='shortcut icon' href='//bananach.space/favicon.png'/>
<link rel='alternate' title='Atom feed' href='http://git.bananach.space/minetest.git/atom/util/travis/before_install.sh?h=gpcf' type='application/atom+xml'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='//bananach.space/bananach.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a href='/minetest.git/'>minetest.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='87b94518207381da10344d9fe08269687da36de5'/><select name='h' onchange='this.form.submit();'>
<option value='gpcf' selected='selected'>gpcf</option>
<option value='lifo-fixes'>lifo-fixes</option>
<option value='release'>release</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>modified minetest for gpcfs purposes</td><td class='sub right'>gpcf</td></tr></table>
<table class='tabs'><tr><td>
<a href='/minetest.git/about/?h=gpcf'>about</a><a href='/minetest.git/?h=gpcf'>summary</a><a href='/minetest.git/refs/?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>refs</a><a href='/minetest.git/log/util/travis/before_install.sh?h=gpcf'>log</a><a class='active' href='/minetest.git/tree/util/travis/before_install.sh?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>tree</a><a href='/minetest.git/commit/util/travis/before_install.sh?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>commit</a><a href='/minetest.git/diff/util/travis/before_install.sh?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>diff</a></td><td class='form'><form class='right' method='get' action='/minetest.git/log/util/travis/before_install.sh'>
<input type='hidden' name='h' value='gpcf'/><input type='hidden' name='id' value='87b94518207381da10344d9fe08269687da36de5'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/minetest.git/tree/?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>root</a>/<a href='/minetest.git/tree/util?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>util</a>/<a href='/minetest.git/tree/util/travis?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>travis</a>/<a href='/minetest.git/tree/util/travis/before_install.sh?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>before_install.sh</a></div><div class='content'>blob: a4328fa46aff74ba09096efe2b4c59f57bea31f5 (<a href='/minetest.git/plain/util/travis/before_install.sh?h=gpcf&amp;id=87b94518207381da10344d9fe08269687da36de5'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
<a id='n32' href='#n32'>32</a>
<a id='n33' href='#n33'>33</a>
<a id='n34' href='#n34'>34</a>
<a id='n35' href='#n35'>35</a>
<a id='n36' href='#n36'>36</a>
<a id='n37' href='#n37'>37</a>
<a id='n38' href='#n38'>38</a>
<a id='n39' href='#n39'>39</a>
<a id='n40' href='#n40'>40</a>
<a id='n41' href='#n41'>41</a>
<a id='n42' href='#n42'>42</a>
<a id='n43' href='#n43'>43</a>
<a id='n44' href='#n44'>44</a>
<a id='n45' href='#n45'>45</a>
<a id='n46' href='#n46'>46</a>
<a id='n47' href='#n47'>47</a>
<a id='n48' href='#n48'>48</a>
<a id='n49' href='#n49'>49</a>
<a id='n50' href='#n50'>50</a>
<a id='n51' href='#n51'>51</a>
</pre></td>
<td class='lines'><pre><code><span class="hl slc">#!/bin/bash -e</span>
<span class="hl kwb">echo</span> <span class="hl str">&quot;Preparing for</span> <span class="hl ipl">$TRAVIS_COMMIT_RANGE</span><span class="hl str">&quot;</span>

<span class="hl kwa">if</span> <span class="hl opt">[[</span> <span class="hl str">&quot;</span><span class="hl ipl">$LINT</span><span class="hl str">&quot;</span> <span class="hl opt">==</span> <span class="hl str">&quot;1&quot;</span> <span class="hl opt">]];</span> <span class="hl kwa">then</span>
	curl http<span class="hl opt">://</span>apt.llvm.org<span class="hl opt">/</span>llvm-snapshot.gpg.key | sudo apt-key add <span class="hl opt">-</span>
	sudo add-apt-repository <span class="hl str">&quot;deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main&quot;</span>
	sudo apt-get <span class="hl kwb">-yq</span> update
	sudo apt-get <span class="hl kwc">install</span> clang-format-3.9
	<span class="hl kwb">exit</span> <span class="hl num">0</span>
<span class="hl kwa">fi</span>

. util<span class="hl opt">/</span>travis<span class="hl opt">/</span>common.sh
needs_compile || <span class="hl kwb">exit</span> <span class="hl num">0</span>

<span class="hl kwa">if</span> <span class="hl opt">[[</span> <span class="hl kwd">$TRAVIS_OS_NAME</span> <span class="hl opt">==</span> <span class="hl str">&quot;linux&quot;</span> <span class="hl opt">]];</span> <span class="hl kwa">then</span>
	sudo apt-get update
	sudo apt-get <span class="hl kwc">install</span> p7zip-full <span class="hl kwd">$COMPILER</span>
<span class="hl kwa">fi</span>

<span class="hl kwa">if</span> <span class="hl opt">[[</span> <span class="hl kwd">$PLATFORM</span> <span class="hl opt">==</span> <span class="hl str">&quot;Unix&quot;</span> <span class="hl opt">]];</span> <span class="hl kwa">then</span>
	<span class="hl kwa">if</span> <span class="hl opt">[[</span> <span class="hl kwd">$TRAVIS_OS_NAME</span> <span class="hl opt">==</span> <span class="hl str">&quot;linux&quot;</span> <span class="hl opt">]];</span> <span class="hl kwa">then</span>
		sudo apt-get update
		sudo apt-get <span class="hl kwc">install</span> libirrlicht-dev cmake libbz2-dev libpng12-dev \
			libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev \
			libhiredis-dev libogg-dev libgmp-dev libvorbis-dev libopenal-dev \
			<span class="hl kwc">gettext</span> libpq-dev postgresql-server-dev-all
		<span class="hl slc"># Linking to LevelDB is broken, use a custom build</span>
		wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>libleveldb-1.18<span class="hl kwb">-ubuntu12</span>.04<span class="hl num">.7</span>z
		sudo <span class="hl num">7</span>z x <span class="hl kwb">-o</span><span class="hl opt">/</span>usr libleveldb-1.18<span class="hl kwb">-ubuntu12</span>.04<span class="hl num">.7</span>z
		<span class="hl kwa">if</span> <span class="hl opt">[[</span> <span class="hl str">&quot;</span><span class="hl ipl">$VALGRIND</span><span class="hl str">&quot;</span> <span class="hl opt">==</span> <span class="hl str">&quot;1&quot;</span> <span class="hl opt">]];</span> <span class="hl kwa">then</span>
			sudo apt-get <span class="hl kwc">install</span> valgrind
		<span class="hl kwa">fi</span>

	<span class="hl kwa">else</span>
		brew update
		brew <span class="hl kwc">install</span> freetype <span class="hl kwc">gettext</span> hiredis irrlicht jpeg leveldb libogg libvorbis luajit
		<span class="hl slc">#brew upgrade postgresql</span>
	<span class="hl kwa">fi</span>
<span class="hl kwa">elif</span> <span class="hl opt">[[</span> <span class="hl kwd">$PLATFORM</span> <span class="hl opt">==</span> <span class="hl str">&quot;Win32&quot;</span> <span class="hl opt">]];</span> <span class="hl kwa">then</span>
	wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>mingw_w64_i686_ubuntu12.04_4.9<span class="hl num">.1.7</span>z <span class="hl kwb">-O</span> mingw<span class="hl num">.7</span>z
	<span class="hl kwc">sed</span> <span class="hl kwb">-e</span> <span class="hl str">&quot;s|%PREFIX%|i686-w64-mingw32|&quot;</span> \
		<span class="hl kwb">-e</span> <span class="hl str">&quot;s|%ROOTPATH%|/usr/i686-w64-mingw32|&quot;</span> \
		<span class="hl opt">&lt;</span> util<span class="hl opt">/</span>travis<span class="hl opt">/</span>toolchain_mingw.cmake.<span class="hl kwa">in</span> <span class="hl opt">&gt;</span> util<span class="hl opt">/</span>buildbot<span class="hl opt">/</span>toolchain_mingw.cmake
	sudo <span class="hl num">7</span>z x <span class="hl kwb">-y -o</span><span class="hl opt">/</span>usr mingw<span class="hl num">.7</span>z
<span class="hl kwa">elif</span> <span class="hl opt">[[</span> <span class="hl kwd">$PLATFORM</span> <span class="hl opt">==</span> <span class="hl str">&quot;Win64&quot;</span> <span class="hl opt">]];</span> <span class="hl kwa">then</span>
	wget http<span class="hl opt">://</span>minetest.kitsunemimi.pw<span class="hl opt">/</span>mingw_w64_x86_64_ubuntu12.04_4.9<span class="hl num">.1.7</span>z <span class="hl kwb">-O</span> mingw<span class="hl num">.7</span>z
	<span class="hl kwc">sed</span> <span class="hl kwb">-e</span> <span class="hl str">&quot;s|%PREFIX%|x86_64-w64-mingw32|&quot;</span> \
		<span class="hl kwb">-e</span> <span class="hl str">&quot;s|%ROOTPATH%|/usr/x86_64-w64-mingw32|&quot;</span> \
		<span class="hl opt">&lt;</span> util<span class="hl opt">/</span>travis<span class="hl opt">/</span>toolchain_mingw.cmake.<span class="hl kwa">in</span> <span class="hl opt">&gt;</span> util<span class="hl opt">/</span>buildbot<span class="hl opt">/</span>toolchain_mingw64.cmake
	sudo <span class="hl num">7</span>z x <span class="hl kwb">-y -o</span><span class="hl opt">/</span>usr mingw<span class="hl num">.7</span>z
<span class="hl kwa">fi</span>
</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.2.3</a> (<a href='https://git-scm.com/'>git 2.39.1</a>) at 2025-02-24 08:36:36 +0000</div>
</div> <!-- id=cgit -->
</body>
</html>
