pixelserver2/setup-apps.sh

67 lines
1.4 KiB
Bash
Raw Normal View History

#!/bin/bash -e
2018-12-30 14:40:04 +00:00
echo "Setting Attributes for script"
chmod +x apps/pong.py
chmod +x apps/strobo.py
chmod +x apps/example.py
chmod +x apps/youtubedl.sh
chmod +x apps/lines.py
2018-12-30 14:40:04 +00:00
echo "Building c/c++ apps"
mkdir -p build/c
pushd build/c
cmake ../../apps/c-src
make
popd
2018-12-30 14:40:04 +00:00
mv -f build/c/fbcp apps/
mv -f build/c/flicker apps/
mv -f build/c/pixelflut apps/
if hash cargo 2>/dev/null; then
echo "Building juergen/pixelfoo"
# get juergens apps
mkdir -p external
pushd external
if [ ! -d "pixelfoo" ]; then
git clone https://git.chaospott.de/juergen/pixelfoo.git
fi
pushd pixelfoo
git pull
cargo build --release
popd
popd
cp -f external/pixelfoo/target/release/cnoise apps/
cp -f external/pixelfoo/target/release/bimood apps/
cp -f external/pixelfoo/target/release/predprey apps/
cp -f external/pixelfoo/target/release/maze apps/
cp -f external/pixelfoo/target/release/dualmaze apps/
fi
2024-10-28 17:10:03 +00:00
#echo "Getting mathpixel"
#mkdir -p external
#pushd external
#if [ ! -d "mathpixel" ]; then
# git clone https://git.chaospott.de/andreas/mathpixel.git
#fi
#pushd mathpixel
#git pull
#bash setup.sh
#popd
#popd
2019-01-01 16:19:50 +00:00
echo "Getting pixelthud"
mkdir -p external
pushd external
if [ ! -d "pixelthud" ]; then
git clone https://git.chaospott.de/m11/pixelthud.git
fi
pushd pixelthud
git pull
bash setup.sh
popd
popd
2018-12-31 22:10:43 +00:00
echo "Setup done"