Talk:Installing third party softwares in terminal/Increased Productivity in KDE4 with Scripts/.bashrc: Difference between revisions
Gavinbeatty (talk | contribs) No edit summary |
(→A new cmakekdeall?: new section) |
||
Line 24: | Line 24: | ||
--[[User:Gavinbeatty|Gavinbeatty]] 18:07, 15 June 2007 (CEST) | --[[User:Gavinbeatty|Gavinbeatty]] 18:07, 15 June 2007 (CEST) | ||
== A new cmakekdeall? == | |||
I would like to replace the cmakekdeall shell function | |||
with the following version: | |||
<pre> | |||
function cmakekdeall { | |||
FOLDERS="kdesupport KDE/kdelibs KDE/kdebase \ | |||
KDE/kdepimlibs KDE/kdepim KDE/kdesdk \ | |||
KDE/kdegraphics KDE/kdevplatform KDE/kdevelop \ | |||
" | |||
# Add others or remove to taste, e.g. | |||
# KDE/kdemultimedia KDE/kdenetwork KDE/kdeutils \ | |||
cd && cs # go to src root | |||
svn up $FOLDERS | |||
for f in $FOLDERS; do | |||
cs $f && cmakekde || return | |||
done | |||
} | |||
</pre> | |||
This improves the existing function in two respects: | |||
# It fetches the sources in a single svn command. Although I'm not sure it guarantees a single version, it certainly improves the chances for it, and helps consistency. The current version builds each module after fetching it, so not only are there separate svn commands, there are significant time gaps between their invocations. (Note: In the scheme set up in the tutorials, the different folders are each checked out separately -- src/KDE is not a SVN working copy). | |||
# In case of build failure, the process stops. | |||
Michael Pyne on kde-devel suggested that stopping on every failure may not be desirable, but I think at least for newbies (as I consider myself to be one) this is better. | |||
Any other comments? | |||
Thanks, | |||
[[User:Shai|Shai]] 23:07, 5 January 2009 (UTC). |
Revision as of 23:07, 5 January 2009
I'm not sure whether this is right. This page is only used from Getting Started/Build/KDE4 but it is a subpage of Increased ... with Scripts.
--Dhaumann 16:38, 24 February 2007 (CET)
YACC
What is it for? I don't need. I't works fine without it.
KDevelop Generator
Would it not be a good idea to have cmakekde use the KDevelop generator by default?
--Gavinbeatty 18:07, 15 June 2007 (CEST)
Scripts and bashrc in SVN
Wouldn't it be better to put this and similar stuff in SVN? A location such as (a cleaned up) KDE/trunk/kdesdk/scripts ?
--Gavinbeatty 18:07, 15 June 2007 (CEST)
bash_profile
Seeing as this script adds many static environment variables and "increments" others, would it not be better to have it as a separate bash_profile (for the static/non-interactive stuff) and bashrc (interactive stuff e.g., functions) instead? The functions etc should still be sourced by the user's bashrc
--Gavinbeatty 18:07, 15 June 2007 (CEST)
A new cmakekdeall?
I would like to replace the cmakekdeall shell function with the following version:
function cmakekdeall { FOLDERS="kdesupport KDE/kdelibs KDE/kdebase \ KDE/kdepimlibs KDE/kdepim KDE/kdesdk \ KDE/kdegraphics KDE/kdevplatform KDE/kdevelop \ " # Add others or remove to taste, e.g. # KDE/kdemultimedia KDE/kdenetwork KDE/kdeutils \ cd && cs # go to src root svn up $FOLDERS for f in $FOLDERS; do cs $f && cmakekde || return done }
This improves the existing function in two respects:
- It fetches the sources in a single svn command. Although I'm not sure it guarantees a single version, it certainly improves the chances for it, and helps consistency. The current version builds each module after fetching it, so not only are there separate svn commands, there are significant time gaps between their invocations. (Note: In the scheme set up in the tutorials, the different folders are each checked out separately -- src/KDE is not a SVN working copy).
- In case of build failure, the process stops.
Michael Pyne on kde-devel suggested that stopping on every failure may not be desirable, but I think at least for newbies (as I consider myself to be one) this is better.
Any other comments?
Thanks, Shai 23:07, 5 January 2009 (UTC).