summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-07-12 04:32:53 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2007-07-12 04:32:53 +0000
commit103189fe63e5efdba0e3e196d84a822d739d0e56 (patch)
tree4c47e8a4f8e7401edb1e661c6a6d4fc61fec6c3e
parent75708ee1b83e3b04b383a0340db91e1893378bf0 (diff)
downloadrdiff-backup-103189fe63e5efdba0e3e196d84a822d739d0e56.tar.gz
Use .dll as library file extension on Cygwin and Windows.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@823 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/CHANGELOG2
-rwxr-xr-xrdiff-backup/rdiff_backup/compilec.py8
2 files changed, 7 insertions, 3 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 8472997..a681d2e 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,8 @@
New in v1.1.12 (????/??/??)
---------------------------
+Use .dll as library file extension on Cygwin and Windows. (Andrew Ferguson)
+
Avoid setting permissions to 000 because they're out of sync. (Andrew Ferguson)
listxattr() can also throw EPERM error if not supported. (Andrew Ferguson)
diff --git a/rdiff-backup/rdiff_backup/compilec.py b/rdiff-backup/rdiff_backup/compilec.py
index 7dc9290..6ba8143 100755
--- a/rdiff-backup/rdiff_backup/compilec.py
+++ b/rdiff-backup/rdiff_backup/compilec.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2.5
import sys, os
from distutils.core import setup, Extension
@@ -19,8 +19,10 @@ def get_libraries():
lib_dirs = filter(lambda x: x.startswith("lib"), build_files)
assert len(lib_dirs) == 1, "No library directory or too many"
libdir = lib_dirs[0]
- clib = os.path.join("build", libdir, "C.so")
- rsynclib = os.path.join("build", libdir, "_librsync.so")
+ if sys.platform == "cygwin" or os.name == "nt": libext = "dll"
+ else: libext = "so"
+ clib = os.path.join("build", libdir, "C." + libext)
+ rsynclib = os.path.join("build", libdir, "_librsync." + libext)
try:
os.lstat(clib)
os.lstat(rsynclib)