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 = \
|
SOURCES = \
|
||||||
|
Defines.cs \
|
||||||
SparkleBubble.cs \
|
SparkleBubble.cs \
|
||||||
SparkleDialog.cs \
|
SparkleDialog.cs \
|
||||||
SparkleHelpers.cs \
|
SparkleHelpers.cs \
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace SparkleShare {
|
||||||
public static void Main (string [] args) {
|
public static void Main (string [] args) {
|
||||||
|
|
||||||
// Use translations
|
// Use translations
|
||||||
Catalog.Init ("i18n", "locale");
|
Catalog.Init (Defines.GETTEXT_PACKAGE, Defines.LOCALE_DIR);
|
||||||
|
|
||||||
// Check if git is installed
|
// Check if git is installed
|
||||||
Process Process = new Process ();
|
Process Process = new Process ();
|
||||||
|
|
|
@ -83,6 +83,7 @@ build/Makefile
|
||||||
build/m4/Makefile
|
build/m4/Makefile
|
||||||
notify-sharp/Makefile
|
notify-sharp/Makefile
|
||||||
SparkleShare/sparkleshare
|
SparkleShare/sparkleshare
|
||||||
|
SparkleShare/Defines.cs
|
||||||
SparkleShare/AssemblyInfo.cs
|
SparkleShare/AssemblyInfo.cs
|
||||||
SparkleShare/Makefile
|
SparkleShare/Makefile
|
||||||
po/Makefile.in
|
po/Makefile.in
|
||||||
|
|
Loading…
Reference in a new issue