KDE TechBase
  • Page
  • Discussion
  • Edit
  • +
  • History
KDE TechBase is a Wiki - You can help! Please contribute! Questions?
Please ask development related questions in the KDE Community Forum.

Talk:Getting Started/Increased Productivity in KDE4 with Scripts/.bashrc

< Talk:Getting Started | Increased Productivity in KDE4 with Scripts
Revision as of 23:07, 5 January 2009 by Shai (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

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)

Contents

  • 1 YACC
  • 2 KDevelop Generator
  • 3 Scripts and bashrc in SVN
  • 4 bash_profile
  • 5 A new cmakekdeall?

[edit] YACC

What is it for? I don't need. I't works fine without it.

[edit] 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)

[edit] 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)

[edit] 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)

[edit] 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:

  1. 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).
  2. 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).

Retrieved from "http://techbase.kde.org/Talk:Getting_Started/Increased_Productivity_in_KDE4_with_Scripts/.bashrc"

Navigation

  • Home
  • Help
  • Recent changes

Sections

  • Getting started
  • Development
  • Schedules
  • Policies
  • Contribute
  • Projects

Toolbox

  • What links here
  • Related changes
  • Special pages
  • Printable version
  • Permanent link

Personal tools

  • 38.107.191.98
  • Talk for this IP
  • Log in / create account
  • Login with OpenID
Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal