[Digikam-devel] 0.10.0-beta1 release tarball...

Mikolaj Machowski mikmach at wp.pl
Fri Jul 4 22:21:41 BST 2008


Dnia Friday 04 of July 2008, Gilles Caulier napisaƂ:
> no. i don't want the template version.h file, but the post processed
> file version.h generated by cmake and located at the same place.
>
> normally, after to have decompressed tarball, you just need to run
> "cmake ." on root folder. At end, the digikam/version.h must be
> generated. What's the content ?

/* ============================================================
 *
 * This file is a part of digiKam project
 * http://www.digikam.org
 *
 * Date        : 2004-09-09
 * Description : digiKam release ID header.
 *
 * Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail 
dot com>
 *
 * This program is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General
 * Public License as published by the Free Software Foundation;
 * either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * ============================================================ */

#ifndef DIGIKAM_VERSION_H
#define DIGIKAM_VERSION_H

// Qt includes.

#include <QString>

// KDE includes.

#include <klocale.h>

// Local includes.

#include "svnversion.h"

static const char digikam_version[] = "0.10.0-beta1";

static inline const QString digiKamVersion()
{
    // We only take the mixed revision
    QString svnVer      = QString(SVNVERSION).section(":", 0, 0);

    QString digiKamVer  = QString(digikam_version);
    if (!svnVer.isEmpty() && !svnVer.startsWith("unknow") 
&& !svnVer.startsWith("export"))
        digiKamVer = i18nc("%1 is digiKam version, %2 is the svn 
revision", "%1 (rev.: %2)", digikam_version, svnVer);

    return digiKamVer;
}

#endif // DIGIKAM_VERSION_H




More information about the Digikam-devel mailing list