diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2007-07-12 04:32:53 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2007-07-12 04:32:53 +0000 |
commit | 103189fe63e5efdba0e3e196d84a822d739d0e56 (patch) | |
tree | 4c47e8a4f8e7401edb1e661c6a6d4fc61fec6c3e /rdiff-backup | |
parent | 75708ee1b83e3b04b383a0340db91e1893378bf0 (diff) | |
download | rdiff-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
Diffstat (limited to 'rdiff-backup')
-rw-r--r-- | rdiff-backup/CHANGELOG | 2 | ||||
-rwxr-xr-x | rdiff-backup/rdiff_backup/compilec.py | 8 |
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) |