Generate some defines from configure
This commit is contained in:
parent
e69963bbb4
commit
667a08e809
28
SparkleShare/Defines.cs.in
Normal file
28
SparkleShare/Defines.cs.in
Normal file
|
@ -0,0 +1,28 @@
|
|||
// SparkleShare, an instant update workflow to Git.
|
||||
// Copyright (C) 2010 Hylke Bons <hylkebons@gmail.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 3 of the License, 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.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using System;
|
||||
|
||||
namespace SparkleShare
|
||||
{
|
||||
public class Defines
|
||||
{
|
||||
public const string VERSION = "@VERSION@";
|
||||
public const string LOCALE_DIR = "@prefix@/share/locale";
|
||||
public const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@";
|
||||
public const string PREFIX = "@prefix@";
|
||||
}
|
||||
}
|
|
@ -5,6 +5,7 @@ LINK = $(REF_SPARKLESHARE)
|
|||
|
||||
|
||||
SOURCES = \
|
||||
Defines.cs \
|
||||
SparkleBubble.cs \
|
||||
SparkleDialog.cs \
|
||||
SparkleHelpers.cs \
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace SparkleShare {
|
|||
public static void Main (string [] args) {
|
||||
|
||||
// Use translations
|
||||
Catalog.Init ("i18n", "locale");
|
||||
Catalog.Init (Defines.GETTEXT_PACKAGE, Defines.LOCALE_DIR);
|
||||
|
||||
// Check if git is installed
|
||||
Process Process = new Process ();
|
||||
|
|
|
@ -83,6 +83,7 @@ build/Makefile
|
|||
build/m4/Makefile
|
||||
notify-sharp/Makefile
|
||||
SparkleShare/sparkleshare
|
||||
SparkleShare/Defines.cs
|
||||
SparkleShare/AssemblyInfo.cs
|
||||
SparkleShare/Makefile
|
||||
po/Makefile.in
|
||||
|
|
Loading…
Reference in a new issue