Plymouth-Progress-Bar/build.sh
2019-07-11 21:39:33 -03:00

48 lines
1.3 KiB
Bash

#!/bin/bash
build=./build
color_schemes=./color-schemes
if [ ! -d $build ]; then
mkdir $build
fi
for i in $color_schemes/*;
do
for f in $i/*;
do
if [ -d $f ]; then (
name=$(basename $f)-$(basename $(dirname $f))
if [ ! -d $build/$name ]; then
mkdir $build/$name
fi
if [ ! -d $build/$name/screenshots ]; then
mkdir $build/$name/screenshots
fi
cp $f/background.png $build/$name &&
cp $f/box.png $build/$name &&
cp $f/bullet.png $build/$name &&
cp $f/entry.png $build/$name &&
cp $f/lock.png $build/$name &&
cp $f/logo.png $build/$name &&
cp $f/progress-bar.png $build/$name &&
cp $f/progress-box.png $build/$name &&
sed "s/::NAME::/$name/g" plymouth > $build/$name/$name.plymouth &&
cat script > $build/$name/$name.script &&
python3 -B ./create-screenshots.py --path=$build/$name &&
# creates/updates readme screenshots
cp $build/$name/screenshots/1024x768.png ./screenshots/$name.png &&
cp $build/$name/screenshots/1024x768-encrypted.png ./screenshots/$name-encrypted.png
) || exit 1
fi
done;
done;
echo "Done!"