forked from hbons/SparkleShare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'refs/merge-requests/16' of git://gitorious.org/sparkles…
…hare/sparkleshare into autofoo
- Loading branch information
Showing
81 changed files
with
1,514 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SUBDIRS = \ | ||
build \ | ||
notify-sharp \ | ||
SparkleShare \ | ||
data \ | ||
po | ||
|
||
DISTCLEANFILES = \ | ||
intltool-extract \ | ||
intltool-merge \ | ||
intltool-update | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* AssemblyInfo.cs | ||
* | ||
* This is free software. See COPYING for details. | ||
*/ | ||
|
||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: AssemblyVersion("@VERSION@")] | ||
[assembly: AssemblyTitle ("SparkleShare")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SparkleShare, an instant update workflow to Git. | ||
// Copyright (C) 2010 Hylke Bons <[email protected]> | ||
// | ||
// 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@"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ASSEMBLY = SparkleShare | ||
TARGET = exe | ||
|
||
LINK = $(REF_SPARKLESHARE) | ||
|
||
|
||
SOURCES = \ | ||
Defines.cs \ | ||
SparkleBubble.cs \ | ||
SparkleDialog.cs \ | ||
SparkleHelpers.cs \ | ||
SparklePaths.cs \ | ||
SparklePlatform.cs \ | ||
SparkleRepo.cs \ | ||
SparkleShare.cs \ | ||
SparkleSpinner.cs \ | ||
SparkleStatusIcon.cs \ | ||
SparkleUI.cs \ | ||
SparkleWindow.cs | ||
|
||
include $(top_srcdir)/build/build.mk | ||
|
||
bin_SCRIPTS = sparkleshare | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/usr/bin/env bash | ||
|
||
PROJECT=sparkleshare | ||
|
||
function error () { | ||
echo "Error: $1" 1>&2 | ||
exit 1 | ||
} | ||
|
||
function check_autotool_version () { | ||
which $1 &>/dev/null || { | ||
error "$1 is not installed, and is required to configure $PACKAGE" | ||
} | ||
|
||
version=$($1 --version | head -n 1 | cut -f4 -d' ') | ||
major=$(echo $version | cut -f1 -d.) | ||
minor=$(echo $version | cut -f2 -d.) | ||
rev=$(echo $version | cut -f3 -d. | sed 's/[^0-9].*$//') | ||
major_check=$(echo $2 | cut -f1 -d.) | ||
minor_check=$(echo $2 | cut -f2 -d.) | ||
rev_check=$(echo $2 | cut -f3 -d.) | ||
|
||
if [ $major -lt $major_check ]; then | ||
do_bail=yes | ||
elif [[ $minor -lt $minor_check && $major = $major_check ]]; then | ||
do_bail=yes | ||
elif [[ $rev -lt $rev_check && $minor = $minor_check && $major = $major_check ]]; then | ||
do_bail=yes | ||
fi | ||
|
||
if [ x"$do_bail" = x"yes" ]; then | ||
error "$1 version $2 or better is required to configure $PROJECT" | ||
fi | ||
} | ||
|
||
function run () { | ||
echo "Running $@ ..." | ||
$@ 2>.autogen.log || { | ||
cat .autogen.log 1>&2 | ||
rm .autogen.log | ||
error "Could not run $1, which is required to configure $PROJECT" | ||
} | ||
rm .autogen.log | ||
} | ||
|
||
srcdir=$(dirname $0) | ||
test -z "$srcdir" && srcdir=. | ||
|
||
(test -f $srcdir/configure.ac) || { | ||
error "Directory \"$srcdir\" does not look like the top-level $PROJECT directory" | ||
} | ||
|
||
# MacPorts on OS X only seems to have glibtoolize | ||
WHICHLIBTOOLIZE=$(which libtoolize || which glibtoolize) | ||
if [ x"$WHICHLIBTOOLIZE" == x"" ]; then | ||
error "libtool is required to configure $PROJECT" | ||
fi | ||
LIBTOOLIZE=$(basename $WHICHLIBTOOLIZE) | ||
|
||
check_autotool_version aclocal 1.9 | ||
check_autotool_version automake 1.9 | ||
check_autotool_version autoconf 2.53 | ||
check_autotool_version $LIBTOOLIZE 1.4.3 | ||
check_autotool_version intltoolize 0.35.0 | ||
check_autotool_version pkg-config 0.14.0 | ||
|
||
run intltoolize --force --copy | ||
run $LIBTOOLIZE --force --copy --automake | ||
run aclocal -I build/m4/sparkleshare -I build/m4/shamrock -I build/m4/shave $ACLOCAL_FLAGS | ||
run autoconf | ||
|
||
run automake --gnu --add-missing --force --copy \ | ||
-Wno-portability -Wno-portability | ||
|
||
if [ ! -z "$NOCONFIGURE" ]; then | ||
echo "Done. ./configure skipped." | ||
exit $? | ||
fi | ||
|
||
if [ $# = 0 ]; then | ||
echo "WARNING: I am going to run configure without any arguments." | ||
fi | ||
|
||
run ./configure --enable-maintainer-mode $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SUBDIRS = m4 | ||
|
||
EXTRA_DIST = \ | ||
icon-theme-installer | ||
|
||
MAINTAINERCLEANFILES = Makefile.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Initializers | ||
MONO_BASE_PATH = | ||
MONO_ADDINS_PATH = | ||
|
||
# Install Paths | ||
DEFAULT_INSTALL_DIR = $(pkglibdir) | ||
|
||
|
||
## Directories | ||
DIR_DOCS = $(top_builddir)/docs | ||
|
||
DIR_ICONS = $(top_builddir)/icons | ||
DIR_NOTIFYSHARP = $(top_builddir)/notify-sharp | ||
DIR_SRC = $(top_builddir)/src | ||
|
||
DIR_BIN = $(top_builddir)/bin | ||
|
||
|
||
# External libraries to link against, generated from configure | ||
LINK_SYSTEM = -r:System | ||
LINK_MONO_POSIX = -r:Mono.Posix | ||
|
||
LINK_GLIB = $(GLIBSHARP_LIBS) | ||
LINK_GTK = $(GTKSHARP_LIBS) | ||
LINK_GNOME = $(GNOME_SHARP_LIBS) | ||
LINK_DBUS = $(NDESK_DBUS_LIBS) $(NDESK_DBUS_GLIB_LIBS) | ||
LINK_DBUS_NO_GLIB = $(NDESK_DBUS_LIBS) | ||
|
||
|
||
REF_NOTIFY_SHARP = $(LINK_SYSTEM) $(LINK_DBUS) $(GTKSHARP_LIBS) $(GLIBSHARP_LIBS) | ||
LINK_NOTIFY_SHARP = -r:$(DIR_BIN)/NotifySharp.dll | ||
LINK_NOTIFY_SHARP_DEPS = $(REF_NOTIFY_SHARP) $(LINK_NOTIFY_SHARP) | ||
|
||
REF_SPARKLESHARE = $(LINK_SYSTEM) $(LINK_GTK) $(LINK_DBUS) $(LINK_NOTIFY_SHARP_DEPS) $(LINK_MONO_POSIX) | ||
LINK_SPARKLESHARE = -r:$(DIR_BIN)/SparkleShare.exe | ||
LINK_SPARKLESHARE_DEPS = $(REF_SPARKLESHARE) $(LINK_SPARKLESHARE) | ||
|
||
# Cute hack to replace a space with something | ||
colon:= : | ||
empty:= | ||
space:= $(empty) $(empty) | ||
|
||
# Build path to allow running uninstalled | ||
RUN_PATH = $(subst $(space),$(colon), $(MONO_BASE_PATH)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include $(top_srcdir)/build/build.environment.mk | ||
include $(top_srcdir)/build/build.rules.mk | ||
|
Oops, something went wrong.