I made a very simple script to get then compile and install the bespin Qt style from SVN and thought I should make it more portable so that other people could use it.
At first the script assumed that the ~/cloudcity/build directory exists, which it does not on a fresh SVN checkout.
The problem is that I can't seem to get it to create the build directory on first run then cd into it for the rest of the script.
This is what I have so far.
Code:
#!/bin/bash
# This script will get, then build and install the Bespin style, window decoration, and xbar plasmoid for KDE.
# You should have all of the build dependencies installed already. Consult your distribution's documentation for instructions on how to do this.
svn co https://cloudcity.svn.sourceforge.net/svnroot/cloudcity
if [ -d ~/cloudcity/build ]; then
cd ~/cloudcity/build
while [ ! -d ~/cloudcity/build ]; dwhile [ ! -d ~/cloudcity/build ]; do
# Sleep until build directory is created
sleep 1
done
else
mkdir ~/cloudcity/build
fi
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
sudo make install
Bookmarks