1 diff -ur repo-clean-0.1.3.orig/Sconstruct repo-clean-0.1.3/Sconstruct
2 --- repo-clean-0.1.3.orig/Sconstruct 2009-06-03 23:19:34.000000000 +0600
3 +++ repo-clean-0.1.3/Sconstruct 2011-04-10 00:20:12.840000656 +0600
6 ccflags += release_flags
8 -BuildDir('build', 'src', duplicate=0)
9 +VariantDir('build', 'src', duplicate=0)
13 diff -ur repo-clean-0.1.3.orig/src/repo-clean.cpp repo-clean-0.1.3/src/repo-clean.cpp
14 --- repo-clean-0.1.3.orig/src/repo-clean.cpp 2009-06-03 23:19:34.000000000 +0600
15 +++ repo-clean-0.1.3/src/repo-clean.cpp 2011-04-10 00:19:03.906667320 +0600
17 #define BOOST_VERSION_SUBMINOR BOOST_VERSION % 100
19 std::string package_suffix = ".pkg.tar.gz";
20 +std::string package_suffix2 = ".pkg.tar.xz";
21 clean_mode mode = MODE_DRY;
22 move_to_existig_mode move_mode = MODE_ERROR;
23 messages_level msgs = MSG_VERBOSE;
25 #if BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR < 36
26 string_list sublist = build_pkg_list(source_directory + "/" + dir_iter->leaf(),
29 +#elseif BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR >= 36 and BOOST_VERSION_MINOR < 46
30 string_list sublist = build_pkg_list(source_directory + "/" + dir_iter->filename(),
32 +#else //BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR >= 46
33 + string_list sublist = build_pkg_list(source_directory + "/" + dir_iter->path().filename().string(),
36 list.insert(list.end(), sublist.begin(), sublist.end());
40 #if BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR < 36
41 std::string name = dir_iter->leaf();
43 +#elseif BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR >= 36 and BOOST_VERSION_MINOR < 46
44 std::string name = dir_iter->filename();
45 +#else //BOOST_VERSION_MAJOR <= 1 and BOOST_VERSION_MINOR >= 46
46 + std::string name = dir_iter->path().filename().string();
48 if ((int)name.find(package_suffix) > 0 && (name.length()
49 - name.find(package_suffix) == package_suffix.length()))
51 list.push_back(source_directory + "/" + name);
54 + if ((int)name.find(package_suffix2) > 0 && (name.length()
55 + - name.find(package_suffix2) == package_suffix.length()))
57 + list.push_back(source_directory + "/" + name);