build: move backend classes into subfolders

This commit is contained in:
Hylke Bons 2011-05-22 12:28:14 +01:00
parent fbfd8885ed
commit 3e65a4fc94
8 changed files with 25 additions and 9 deletions

View file

@ -0,0 +1,8 @@
ASSEMBLY = SparkleLib
TARGET = library
LINK = $(REF_SPARKLELIB)
SOURCES = \
SparkleFetcherGit.cs \
SparkleRepoGit.cs

View file

@ -162,9 +162,6 @@ namespace SparkleLib {
}
public override bool HasUnsyncedChanges {
get {
string unsynced_file_path = SparkleHelpers.CombineMore (LocalPath,
@ -545,7 +542,7 @@ namespace SparkleLib {
Commit (message);
}
new public static bool IsRepo (string path)
{
return System.IO.Directory.Exists (Path.Combine (path, ".git"));

View file

@ -0,0 +1,8 @@
ASSEMBLY = SparkleLib
TARGET = library
LINK = $(REF_SPARKLELIB)
SOURCES = \
SparkleFetcherHg.cs \
SparkleRepoHg.cs

View file

@ -310,6 +310,7 @@ namespace SparkleLib {
Commit (message);
}
new public static bool IsRepo (string path)
{
return System.IO.Directory.Exists (Path.Combine (path, ".hg"));

View file

@ -3,21 +3,21 @@ TARGET = library
LINK = $(REF_SPARKLELIB)
SUBDIRS = \
Git \
Hg
SOURCES = \
Defines.cs \
SparkleBackend.cs \
SparkleChangeSet.cs \
SparkleFetcherBase.cs \
SparkleFetcherGit.cs \
SparkleFetcherHg.cs \
SparkleHelpers.cs \
SparkleListenerBase.cs \
SparkleListenerIrc.cs \
SparkleOptions.cs \
SparklePaths.cs \
SparkleRepoBase.cs \
SparkleRepoGit.cs \
SparkleRepoHg.cs
SparkleRepoBase.cs
SMARTIRC4NET_FILES_EXPANDED = $(foreach file, $(SMARTIRC4NET_FILES), $(top_builddir)/$(file))

View file

@ -104,6 +104,8 @@ help/Makefile
SparkleLib/AssemblyInfo.cs
SparkleLib/Defines.cs
SparkleLib/Makefile
SparkleLib/Git/Makefile
SparkleLib/Hg/Makefile
SparkleShare/sparkleshare
SparkleShare/Makefile
SparkleShare/Mac/Makefile