# Simple Script to copy ring binary file and libraries to the system
# 2016, Mahmoud Fayed <msfclipper@yahoo.com>

# To be able to call ring from any folder 

cd ..
	
cp bin/ring /usr/bin
if [ -f lib/libring.dylib ];
then
cp lib/libring.dylib /usr/lib
fi

if [ -f lib/libring.so ];
then
cp lib/libring.so /usr/lib
fi
	

# Make the RingAllegro library ready for use directly
	
if [ -f lib/libringallegro.dylib ];
then
cp lib/libringallegro.dylib /usr/lib
fi

if [ -f lib/libringallegro.so ];
then
cp lib/libringallegro.so /usr/lib
fi

cp extensions/ringallegro/gamelib.ring /usr/bin
cp extensions/ringallegro/allegro.rh /usr/bin
	
# Make the RingQt library ready for use directly
	
if [ -f lib/libringqt.dylib ];
then
cp lib/libringqt.dylib /usr/lib
fi

if [ -f lib/libringqt.so ];
then
cp lib/libringqt.so /usr/lib
fi

cp extensions/ringqt/guilib.ring /usr/bin
cp extensions/ringqt/ring_qt.ring /usr/bin
cp extensions/ringqt/qt.rh /usr/bin
	
