File glChAoSP of Package glChAosP
#!/bin/bash
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# Copyright (C) 2020-2024 Malcolm Lewis <malcolmlewis@opensuse.org>
# Description: Script to preload data and start glChAoSP_linux
# Version: 0.0.1
# Date: 11th October, 2020
if [ ! -d ~/.config/glChAoSP ]; then
echo "Create initial user directory..."
mkdir -p ~/.config/glChAoSP
for X in ChaoticAttractors colorMaps Fonts renderCfg Shaders startData; do
echo "Copying $X data"
cp -ar /usr/share/glChAosP/$X ~/.config/glChAoSP
done
fi
cd ~/.config/glChAoSP
/usr/bin/glChAoSP_Linux