Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Add a thing to nuke toolchain directories and maybe fix curses
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Dec 16, 2015
1 parent 8a2b08f commit 15002b1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion toolchain/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pushd "$DIR" > /dev/null
grab "pixman" "http://www.cairographics.org/releases" "pixman-0.26.2.tar.gz" || bail
grab "cairo" "http://www.cairographics.org/releases" "cairo-1.12.2.tar.xz" || bail
grab "mesa" "http://b.dakko.us/~klange/mirrors" "MesaLib-7.5.2.tar.gz" || bail
grab "ncurses" "ftp://invisible-island.net/ncurses" "ncurses-5.9.tar.gz" || bail
grab "ncurses" "http://b.dakko.us/~klange/mirrors" "ncurses-5.9.tar.gz" || bail
grab "vim" "ftp://ftp.vim.org/pub/vim/unix" "vim-7.3.tar.bz2" || bail
$INFO "wget" "Pulled source packages."
rm -rf "binutils-2.22" "freetype-2.4.9" "gcc-4.6.4" "gmp-5.0.1" "libpng-1.5.13" "mpc-0.9" "mpfr-3.0.1" "newlib-1.19.0" "zlib-1.2.7" "pixman-0.28.2" "Mesa-7.5.2" "ncurses-5.9" "vim73"
Expand Down
20 changes: 18 additions & 2 deletions util/build-travis.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
#!/bin/bash

if [ ! -a "toolchain/local/bin/i686-pc-toaru-gcc" ]; then
COOKIE=".2015-12-15-testing.cookie"

if [ ! -a "toolchain/local/$COOKIE" ]; then
echo "=== Cleaning any preexisting stuff... ==="
rm -f toolchain/build
rm -f toolchain/local
rm -f toolchain/tarballs/!(*.tar*)
echo "=== Starting watchdog ==="
(
while [ 1 == 1 ]; do
echo "..."
sleep 1m
done
) &
watchdog_pid=$!
echo "=== Begin Toolchain Build ==="
pushd toolchain
unset PKG_CONFIG_LIBDIR
./prepare.sh
./install.sh
. activate.sh
date > ./local/$COOKIE
popd
echo "=== End Toolchain Build ==="
echo "=== Stopping watchdog ==="
kill $watchdog_pid
else
echo "=== Toolchain was cached. ==="
fi
Expand Down

0 comments on commit 15002b1

Please sign in to comment.