making kdesrc-build more automatic

The previous days i was trying to install a KDE development enviroment using kdesrc-build script,it has been done an amazing work from the authors of the script,using kdesrc-build the contributor is able to have a good maintained and organized enviroment.Although i didn’t like that there was no easy ways to execute the script and navigate to the directories.So i created a small .bashrc file which allows me to use kdesrc-build faster and less painfull,so here is my script 🙂

function cs{cd ~/kdesrc/}
function cb{cd ~/kdesrc/build}
function clog{cd ~/kdesrc/log/}
function cloglatest{cd ~/kdesrc/log/latest}
function kdesrc-build{cd ~/./kdesrc-build-1.13/kdesrc-build}                                                                                  function kdesrc_build
{a=$PWD
option=0
echo “In order to build all modules give a,otherwise give any key”
echo “In order to build all modules give a,otherwise give any key”
read option
if [ $option == “a” ]  ; then
echo “all modules will be build”
cd
./kdesrc-build-1.13/kdesrc-build
else
echo “give the name of the module:”
read i
cd
./kdesrc-build-1.13/kdesrc-build $i
fi
cd $a
}

please don’t hesitate to give me any feedback 🙂

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s