aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-16 13:52:13 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-16 13:52:13 +0100
commitf44204d088eb37c22ca73204b02d5860d8b5fed1 (patch)
tree0909d5fbdfe6698a9f6b096931a89d7b9f229ab8
parent0465d3dd418e96a3a4c97ffe74dfa52884dd8b2b (diff)
downloadpaludis-f44204d088eb37c22ca73204b02d5860d8b5fed1.tar.gz
paludis-f44204d088eb37c22ca73204b02d5860d8b5fed1.tar.xz
Accerso is dead
-rw-r--r--.gitignore5
-rw-r--r--Makefile.am2
-rw-r--r--bash-completion/Makefile.am2
-rw-r--r--bash-completion/accerso74
-rw-r--r--configure.ac6
-rw-r--r--doc/clients/Makefile.am12
-rw-r--r--doc/clients/index.html.part1
-rw-r--r--doc/clients/toplinks.html.part.in4
-rw-r--r--doc/index.html.part.in1
-rw-r--r--src/clients/accerso/Makefile.am85
-rw-r--r--src/clients/accerso/accerso.cc290
-rw-r--r--src/clients/accerso/command_line.cc90
-rw-r--r--src/clients/accerso/command_line.hh64
-rwxr-xr-xsrc/clients/accerso/help_TEST4
-rw-r--r--src/clients/accerso/man_accerso.cc64
-rwxr-xr-xsrc/clients/accerso/version_TEST4
16 files changed, 6 insertions, 702 deletions
diff --git a/.gitignore b/.gitignore
index 67c126a..0ccca8c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,7 +76,6 @@ paludis-*.*.*.tar.bz2
/doc/changelog.html
/doc/changelog.html.part
/doc/changelog.subst
-/doc/clients/accerso.html
/doc/clients/appareo.html
/doc/clients/cave.html
/doc/clients/cave-config.html
@@ -484,10 +483,6 @@ paludis-*.*.*.tar.bz2
/paludis/version_operator_TEST
/paludis/version_spec_TEST
/pkg-config/paludis.pc
-/src/clients/accerso/accerso
-/src/clients/accerso/*.txt
-/src/clients/accerso/*.xml
-/src/clients/accerso/*.html-man-fragment
/src/clients/appareo/appareo
/src/clients/appareo/*.txt
/src/clients/appareo/*.xml
diff --git a/Makefile.am b/Makefile.am
index 02f9de5..907cbcf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,7 +12,7 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-ruby --enable-ruby-doc --enable-vim \
--with-hacked-log-dir='$${DESTDIR}$${prefix}/log_dir' \
--with-repositories=default,accounts,gemcutter \
--with-environments=default,portage \
- --with-clients=default,accerso,appareo,cave \
+ --with-clients=default,appareo,cave \
--with-default-distribution=giant-space-monkey \
--enable-htmltidy --enable-search-index
diff --git a/bash-completion/Makefile.am b/bash-completion/Makefile.am
index 1fd86f9..be3bd6c 100644
--- a/bash-completion/Makefile.am
+++ b/bash-completion/Makefile.am
@@ -1,5 +1,5 @@
MAINTAINERCLEANFILES = Makefile.in
-noinst_DATA = accerso cave
+noinst_DATA = cave
EXTRA_DIST = $(noinst_DATA)
AUTOMAKE_OPTIONS = 1.11 parallel-tests
diff --git a/bash-completion/accerso b/bash-completion/accerso
deleted file mode 100644
index ad181b2..0000000
--- a/bash-completion/accerso
+++ /dev/null
@@ -1,74 +0,0 @@
-# Bash completion function for accerso
-# vim: set et sw=4 sts=4 ts=4 ft=sh :
-
-# NOTE: This is still a work in progress, don't expect it to work well or
-# properly right now.
-
-_accerso_get_repodir() {
- local repodir
- [[ -f ./profiles/repo_name ]] && repodir=$(readlink -f $(pwd))
- [[ -z "${repodir}" && -f ../profiles/repo_name ]] \
- && repodir=$(readlink -f $(pwd)/..)
- [[ -z "${repodir}" && -f ../../profiles/repo_name ]] \
- && repodir=$(readlink -f $(pwd)/../..)
- [[ -z "${repodir}" ]] && return 1
- echo "${repodir}"
-}
-
-_accerso() {
- local cur prev opts
- COMPREPLY=()
- cur=${COMP_WORDS[COMP_CWORD]}
- prev=${COMP_WORDS[COMP_CWORD-1]}
-
- # Figure out what our repository dir is
- for i in $(seq 0 ${COMP_CWORD}) ; do
- if [[ ${COMP_WORDS[i]} == "-D" \
- || ${COMP_WORDS[i]} == "--repository-dir" ]]
- then
- repodir=${COMP_WORDS[i+1]}
- fi
- done
- [[ -z "${repodir}" ]] && repodir="$(_accerso_get_repodir)"
-
- opts="--fetch -f \
- --version -V \
- --help -h \
- --log-level \
- --no-colour \
- --no-color \
- --repository-dir -D \
- --download-dir -d \
- --extra-repository-dir \
- --master-repository-name \
- --write-cache-dir \
- --report-file -r"
-
- case "${cur}" in
- -*)
- COMPREPLY=($(compgen -W "${opts}" -- "${cur}"))
- return 0
- ;;
- *)
- case "${prev}" in
- ## Enum operators
- --log-level)
- COMPREPLY=($(compgen -W "debug qa warning silent" -- "${cur}"))
- return 0
- ;;
-
- --repository-dir|-D|--download-dir|-d|--extra-repository-dir|--write-cache-dir)
- _filedir -d
- return 0
- ;;
-
- --report-file|-r)
- _filedir
- return 0
- ;;
-
- esac
- ;;
- esac
-}
-complete -o filenames -F _accerso accerso
diff --git a/configure.ac b/configure.ac
index 2f2143e..6b5f054 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1528,7 +1528,7 @@ AC_ARG_WITH([environments],
all All available environments
default Equivalent to no_config,paludis,test
- no_config Configurationless environment, for accerso etc
+ no_config Configurationless environment
paludis Standard Paludis environments
portage Portage configuration (dodgy)
test For test cases],
@@ -1582,7 +1582,7 @@ AC_DEFINE_UNQUOTED([DEFAULT_DISTRIBUTION], "$DEFAULT_DISTRIBUTION", [Default dis
dnl }}}
dnl {{{ clients
-ALL_CLIENTS="accerso appareo cave"
+ALL_CLIENTS="appareo cave"
ALL_CLIENTS_HTML=""
for a in $ALL_CLIENTS ; do
ALL_CLIENTS_HTML="$ALL_CLIENTS_HTML $a.html"
@@ -1595,7 +1595,6 @@ AC_ARG_WITH([clients],
all All available clients
default Equivalent to cave
- accerso A fetch / mirror client
appareo A tool for generating manifests
cave The modular Paludis client],
[clients="`echo $with_clients | tr ',' ' '`"],
@@ -1875,7 +1874,6 @@ AC_CONFIG_FILES([
ruby/demos/Makefile
src/Makefile
src/clients/Makefile
- src/clients/accerso/Makefile
src/clients/appareo/Makefile
src/clients/cave/Makefile
src/output/Makefile
diff --git a/doc/clients/Makefile.am b/doc/clients/Makefile.am
index f5ef3dd..030b377 100644
--- a/doc/clients/Makefile.am
+++ b/doc/clients/Makefile.am
@@ -97,18 +97,6 @@ HTML_LOG_COMPILER = $(LOG_COMPILER)
index.html : header.html.part $(srcdir)/index.html.part footer.html.part
cat header.html.part $(srcdir)/index.html.part footer.html.part > $@
-accerso.html : header.html.part footer.html.part
- { cat header.html.part && { \
- echo "<h1>accerso</h1>"; \
- if test -f $(top_builddir)/src/clients/accerso/accerso.html-man-fragment ; then \
- cat $(top_builddir)/src/clients/accerso/accerso.html-man-fragment ; \
- elif test -f $(top_srcdir)/src/clients/accerso/accerso.html-man-fragment ; then \
- cat $(top_srcdir)/src/clients/accerso/accerso.html-man-fragment ; \
- else \
- echo "<p>Sorry, documentation was generated without support for the accerso client.</p>" ; \
- fi ; } \
- && cat footer.html.part ; } > $@
-
appareo.html : header.html.part footer.html.part
{ cat header.html.part && { \
echo "<h1>appareo</h1>"; \
diff --git a/doc/clients/index.html.part b/doc/clients/index.html.part
index a331bea..1e34230 100644
--- a/doc/clients/index.html.part
+++ b/doc/clients/index.html.part
@@ -12,7 +12,6 @@
<p>For ebuild developers and distribution maintainers:</p>
<ul>
- <li><a href="accerso.html">accerso</a>, the mirror client.</li>
<li><a href="appareo.html">appareo</a>, a Manifest generation tool.</li>
</ul>
diff --git a/doc/clients/toplinks.html.part.in b/doc/clients/toplinks.html.part.in
index 6bb2915..b40fef5 100644
--- a/doc/clients/toplinks.html.part.in
+++ b/doc/clients/toplinks.html.part.in
@@ -18,7 +18,7 @@
</td>
<td class="currentpage">
- <a href="###TOPURI###clients/accerso.html">accerso</a>
+ <a href="###TOPURI###clients/appareo.html">appareo</a>
</td>
</tr>
@@ -32,7 +32,7 @@
</td>
<td class="currentpage">
- <a href="###TOPURI###clients/appareo.html">appareo</a>
+ &nbsp;
</td>
</tr>
diff --git a/doc/index.html.part.in b/doc/index.html.part.in
index 76657c5..b4e52b0 100644
--- a/doc/index.html.part.in
+++ b/doc/index.html.part.in
@@ -87,7 +87,6 @@ the exheres repository format.</p>
<p>For ebuild developers and distribution maintainers:</p>
<ul>
- <li><a href="clients/accerso.html">accerso</a>, the mirror client.</li>
<li><a href="clients/appareo.html">appareo</a>, a Manifest generation tool.</li>
</ul>
diff --git a/src/clients/accerso/Makefile.am b/src/clients/accerso/Makefile.am
deleted file mode 100644
index ce3578c..0000000
--- a/src/clients/accerso/Makefile.am
+++ /dev/null
@@ -1,85 +0,0 @@
-include $(top_srcdir)/misc/common-makefile.am
-
-AM_CXXFLAGS = -I$(top_srcdir) -I$(top_srcdir)/src \
- @PALUDIS_CXXFLAGS@ @PALUDIS_CXXFLAGS_VISIBILITY@
-DEFS= \
- -DSYSCONFDIR=\"$(sysconfdir)\" \
- -DDATADIR=\"$(datadir)\" \
- -DLIBEXECDIR=\"$(libexecdir)\" \
- -DLIBDIR=\"$(libdir)\"
-
-SUBDIRS = .
-
-bin_PROGRAMS = accerso
-man_MANS = accerso.1
-
-SUFFIXES = .1 .txt .xml .html-man-fragment
-
-man_MANS_txts = accerso.txt
-man_MANS_xmls = accerso.xml
-man_MANS_html_man_fragments = accerso.html-man-fragment
-
-if USE_PREBUILT_DOCUMENTATION
-else
-
-noinst_PROGRAMS = man-accerso
-
-$(man_MANS_txts) : man-accerso
- if ! ./man-accerso `echo $@ | sed -e 's.^accerso-*..' -e 's,\.txt$$,,'` > $@ ; then rm -f $@ ; exit 1 ; fi
-
-.txt.xml : $(man_MANS_txts)
- asciidoc --doctype=manpage --backend=docbook --out-file=$@ --conf=$(top_srcdir)/misc/asciidoc.conf $<
-
-.xml.1 : $(man_MANS_xmls)
- xmlto man $<
-
-.xml.html-man-fragment : $(man_MANS_xmls)
- xmlto html $< -o $@-dir
- sed \
- -e '1s,^.*\(<div class="refnamediv">\),\1,' \
- -e '$$s,</body>.*,,' -e '$$s,</div><div class="navfooter"><hr></div>,,' \
- -e 's,<a name="[^"]*"></a>,,g' \
- $@-dir/index.html > $@
- rm -fr $@-dir
-
-man_accerso_SOURCES = \
- man_accerso.cc \
- command_line.hh \
- command_line.cc
-
-man_accerso_LDADD = \
- $(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la \
- $(top_builddir)/paludis/args/libpaludisargs_@PALUDIS_PC_SLOT@.la \
- $(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
- $(top_builddir)/src/output/liboutput.a \
- $(DYNAMIC_LD_LIBS)
-
-endif
-
-accerso_SOURCES = \
- command_line.hh command_line.cc \
- accerso.cc
-
-accerso_LDADD = \
- $(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la \
- $(top_builddir)/paludis/args/libpaludisargs_@PALUDIS_PC_SLOT@.la \
- $(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
- $(top_builddir)/src/output/liboutput.a \
- $(DYNAMIC_LD_LIBS)
-
-TESTS = version_TEST \
- help_TEST
-
-noinst_DATA = $(man_MANS_html_man_fragments)
-
-EXTRA_DIST = \
- $(man_MANS) \
- $(man_MANS_html_man_fragments) \
- $(TESTS)
-
-DISTCLEANFILES = \
- $(man_MANS) \
- $(man_MANS_txts) \
- $(man_MANS_xmls) \
- $(man_MANS_html_man_fragments)
-
diff --git a/src/clients/accerso/accerso.cc b/src/clients/accerso/accerso.cc
deleted file mode 100644
index 7cd5d9c..0000000
--- a/src/clients/accerso/accerso.cc
+++ /dev/null
@@ -1,290 +0,0 @@
-/* vim: set sw=4 sts=4 et foldmethod=syntax : */
-
-/*
- * Copyright (c) 2007, 2008, 2009, 2010, 2011 Ciaran McCreesh
- *
- * This file is part of the Paludis package manager. Paludis is free software;
- * you can redistribute it and/or modify it under the terms of the GNU General
- * Public License version 2, as published by the Free Software Foundation.
- *
- * Paludis 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, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include <output/colour.hh>
-#include <paludis/args/do_help.hh>
-#include "command_line.hh"
-#include <paludis/about.hh>
-#include <paludis/action.hh>
-#include <paludis/package_id.hh>
-#include <paludis/util/system.hh>
-#include <paludis/util/join.hh>
-#include <paludis/util/log.hh>
-#include <paludis/util/sequence.hh>
-#include <paludis/util/map.hh>
-#include <paludis/util/make_named_values.hh>
-#include <paludis/util/pretty_print.hh>
-#include <paludis/standard_output_manager.hh>
-#include <paludis/util/safe_ofstream.hh>
-#include <paludis/create_output_manager_info.hh>
-#include <paludis/environments/no_config/no_config_environment.hh>
-#include <paludis/selection.hh>
-#include <paludis/generator.hh>
-#include <paludis/filter.hh>
-#include <paludis/filtered_generator.hh>
-#include <paludis/output_manager_from_environment.hh>
-#include <paludis/repository.hh>
-#include <cstdlib>
-#include <functional>
-#include <iostream>
-#include <map>
-
-using namespace paludis;
-using std::cout;
-using std::cerr;
-using std::endl;
-
-namespace
-{
- WantPhase want_all_phases(const std::string &)
- {
- return wp_yes;
- }
-}
-
-int
-main(int argc, char *argv[])
-{
- std::string options(paludis::getenv_with_default("ACCERSO_OPTIONS", ""));
- if (! options.empty())
- options = "(" + options + ") ";
- options += join(argv + 1, argv + argc, " ");
-
- Context context(std::string("In program ") + argv[0] + " " + options + ":");
-
- try
- {
- CommandLine::get_instance()->run(argc, argv, "accerso", "ACCERSO_OPTIONS", "ACCERSO_CMDLINE");
-
- set_use_colour(
- (! CommandLine::get_instance()->a_no_colour.specified()) &&
- (! CommandLine::get_instance()->a_report_file.specified()));
- set_force_colour(CommandLine::get_instance()->a_force_colour.specified());
-
- if (CommandLine::get_instance()->a_help.specified())
- throw args::DoHelp();
-
- if (CommandLine::get_instance()->a_log_level.specified())
- Log::get_instance()->set_log_level(CommandLine::get_instance()->a_log_level.option());
- else
- Log::get_instance()->set_log_level(ll_qa);
-
- if (1 < (
- CommandLine::get_instance()->a_fetch.specified() +
- CommandLine::get_instance()->a_version.specified()
- ))
- throw args::DoHelp("you should specify exactly one action");
-
- if (! CommandLine::get_instance()->a_write_cache_dir.specified())
- CommandLine::get_instance()->a_write_cache_dir.set_argument("/var/empty");
-
- if (! CommandLine::get_instance()->a_repository_directory.specified())
- CommandLine::get_instance()->a_repository_directory.set_argument(stringify(FSPath::cwd()));
-
- if (CommandLine::get_instance()->a_version.specified())
- {
- cout << "accerso, part of " << PALUDIS_PACKAGE << " " << PALUDIS_VERSION_MAJOR << "."
- << PALUDIS_VERSION_MINOR << "." << PALUDIS_VERSION_MICRO << PALUDIS_VERSION_SUFFIX;
- if (! std::string(PALUDIS_GIT_HEAD).empty())
- cout << " git " << PALUDIS_GIT_HEAD;
- cout << endl << endl;
- cout << "Paludis comes with ABSOLUTELY NO WARRANTY. Paludis is free software, and you" << endl;
- cout << "are welcome to redistribute it under the terms of the GNU General Public" << endl;
- cout << "License, version 2." << endl;
-
- return EXIT_SUCCESS;
- }
- else
- {
- std::shared_ptr<FSPathSequence> extra_repository_dirs(std::make_shared<FSPathSequence>());
- for (args::StringSequenceArg::ConstIterator d(CommandLine::get_instance()->a_extra_repository_dir.begin_args()),
- d_end(CommandLine::get_instance()->a_extra_repository_dir.end_args()) ;
- d != d_end ; ++d)
- extra_repository_dirs->push_back(FSPath(*d));
-
- std::shared_ptr<Map<std::string, std::string> > keys(std::make_shared<Map<std::string, std::string>>());
- keys->insert("distdir", CommandLine::get_instance()->a_download_directory.argument());
- NoConfigEnvironment env(make_named_values<no_config_environment::Params>(
- n::accept_unstable() = true,
- n::disable_metadata_cache() = false,
- n::extra_accept_keywords() = "",
- n::extra_params() = keys,
- n::extra_repository_dirs() = extra_repository_dirs,
- n::master_repository_name() = CommandLine::get_instance()->a_master_repository_name.argument(),
- n::profiles_if_not_auto() = "",
- n::repository_dir() = CommandLine::get_instance()->a_repository_directory.argument(),
- n::repository_type() = no_config_environment::ncer_ebuild,
- n::write_cache() = CommandLine::get_instance()->a_write_cache_dir.argument()
- ));
-
- std::shared_ptr<const PackageIDSequence> ids(env[selection::AllVersionsSorted(
- generator::InRepository(env.main_repository()->name()))]);
- std::multimap<std::shared_ptr<const PackageID>, std::string, PackageIDComparator> results{PackageIDComparator(&env)};
- unsigned success(0), total(0);
-
- for (PackageIDSequence::ConstIterator i(ids->begin()), i_end(ids->end()) ;
- i != i_end ; ++i)
- {
- Context i_context("When fetching ID '" + stringify(**i) + "':");
-
- cout << "Processing " << colour(cl_package_name, stringify(**i)) << "..." << endl;
- ++total;
-
- OutputManagerFromEnvironment output_manager_holder(&env, *i, oe_exclusive, ClientOutputFeatures());
- FetchAction a(make_named_values<FetchActionOptions>(
- n::errors() = std::make_shared<Sequence<FetchActionFailure>>(),
- n::exclude_unmirrorable() = true,
- n::fetch_parts() = FetchParts() + fp_regulars + fp_unneeded,
- n::ignore_not_in_manifest() = false,
- n::ignore_unfetched() = false,
- n::make_output_manager() = std::ref(output_manager_holder),
- n::safe_resume() = true,
- n::want_phase() = &want_all_phases
- ));
-
- try
- {
- if ((*i)->supports_action(SupportsActionTest<FetchAction>()))
- {
- (*i)->perform_action(a);
- ++success;
- if (output_manager_holder.output_manager_if_constructed())
- output_manager_holder.output_manager_if_constructed()->succeeded();
- }
- else
- results.insert(std::make_pair(*i, "Does not support fetching"));
- }
- catch (const ActionFailedError & e)
- {
- if (a.options.errors()->empty())
- {
- results.insert(std::make_pair(*i, e.message()));
- }
-
- for (Sequence<FetchActionFailure>::ConstIterator f(a.options.errors()->begin()),
- f_end(a.options.errors()->end()) ; f != f_end ; ++f)
- {
- std::string r;
- if ((*f).requires_manual_fetching())
- r = "manual";
-
- if ((*f).failed_automatic_fetching())
- {
- if (! r.empty())
- r.append(", ");
- r.append("could not fetch");
- }
-
- if (! (*f).failed_integrity_checks().empty())
- {
- if (! r.empty())
- r.append(", ");
- r.append((*f).failed_integrity_checks());
- }
-
- results.insert(std::make_pair(*i, (*f).target_file() + ": " + r));
- }
- }
- catch (const InternalError &)
- {
- throw;
- }
- catch (const Exception & e)
- {
- results.insert(std::make_pair(*i, "Uncaught exception '" + e.message() + "' (" + e.what() + ")"));
- }
- }
-
- std::cout << std::endl;
-
- std::shared_ptr<SafeOFStream> outf;
- if (CommandLine::get_instance()->a_report_file.specified())
- outf = std::make_shared<SafeOFStream>(FSPath(CommandLine::get_instance()->a_report_file.argument()), -1, true);
-
- std::ostream & out(outf ? *outf : cout);
-
- out << colour(cl_heading, "Accerso results for ") << colour(cl_repository_name, env.main_repository()->name())
- << colour(cl_heading, " on " + pretty_print_time(time(0)) + ":") << endl << endl
- << total << " IDs, " << success << " successes, " << (total - success) << " failures" << endl << endl;
-
- int exit_status(0);
- std::shared_ptr<const PackageID> old_id;
- for (std::multimap<std::shared_ptr<const PackageID>, std::string, std::reference_wrapper<const PackageIDComparator> >::const_iterator
- r(results.begin()), r_end(results.end()) ; r != r_end ; ++r)
- {
- exit_status |= 1;
- if ((! old_id) || (*old_id != *r->first))
- {
- out << colour(cl_package_name, stringify(*r->first)) << ":" << endl;
- old_id = r->first;
- }
- out << " " << r->second << endl;
- }
- out << endl;
-
- return exit_status;
- }
- }
- catch (const paludis::args::ArgsError & e)
- {
- cerr << "Usage error: " << e.message() << endl;
- cerr << "Try " << argv[0] << " --help" << endl;
- return EXIT_FAILURE;
- }
- catch (const args::DoHelp & h)
- {
- if (h.message.empty())
- {
- cout << "Usage: " << argv[0] << " [options]" << endl;
- cout << endl;
- cout << *CommandLine::get_instance();
- return EXIT_SUCCESS;
- }
- else
- {
- cerr << "Usage error: " << h.message << endl;
- cerr << "Try " << argv[0] << " --help" << endl;
- return EXIT_FAILURE;
- }
- }
- catch (const Exception & e)
- {
- cout << endl;
- cerr << "Unhandled exception:" << endl
- << " * " << e.backtrace("\n * ")
- << e.message() << " (" << e.what() << ")" << endl;
- return EXIT_FAILURE;
- }
- catch (const std::exception & e)
- {
- cout << endl;
- cerr << "Unhandled exception:" << endl
- << " * " << e.what() << endl;
- return EXIT_FAILURE;
- }
- catch (...)
- {
- cout << endl;
- cerr << "Unhandled exception:" << endl
- << " * Unknown exception type. Ouch..." << endl;
- return EXIT_FAILURE;
- }
-}
-
-
diff --git a/src/clients/accerso/command_line.cc b/src/clients/accerso/command_line.cc
deleted file mode 100644
index d6d96ee..0000000
--- a/src/clients/accerso/command_line.cc
+++ /dev/null
@@ -1,90 +0,0 @@
-/* vim: set sw=4 sts=4 et foldmethod=syntax : */
-
-/*
- * Copyright (c) 2007, 2008, 2009, 2010 Ciaran McCreesh
- *
- * This file is part of the Paludis package manager. Paludis is free software;
- * you can redistribute it and/or modify it under the terms of the GNU General
- * Public License version 2, as published by the Free Software Foundation.
- *
- * Paludis 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, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "command_line.hh"
-#include <paludis/util/singleton-impl.hh>
-
-using namespace paludis;
-
-template class Singleton<CommandLine>;
-
-CommandLine::CommandLine() :
- ArgsHandler(),
-
- action_args(main_options_section(), "Actions",
- "Selects which basic action to perform. Exactly one action should "
- "be specified."),
- a_fetch(&action_args, "fetch", 'f', "Fetch necessary distfiles", false),
- a_version(&action_args, "version", 'V', "Display program version", false),
- a_help(&action_args, "help", 'h', "Display program help", false),
-
- general_args(main_options_section(), "General options",
- "Options which are relevant for most or all actions."),
- a_log_level(&general_args, "log-level", '\0'),
- a_no_colour(&general_args, "no-colour", '\0', "Do not use colour", false),
- a_no_color(&a_no_colour, "no-color"),
- a_force_colour(&general_args, "force-colour", '\0', "Force the use of colour", false),
- a_force_color(&a_force_colour, "force-color"),
- a_repository_directory(&general_args, "repository-dir", 'D',
- "Where to find the repository (default: current directory)"),
- a_download_directory(&general_args, "download-dir", 'd',
- "Where to place downloaded files"),
- a_master_repository_name(&general_args, "master-repository-name", '\0',
- "Use the specified name for the master repository. Specify the location using --extra-repository-dir. "
- "Only for repositories with no metadata/layout.conf."),
- a_extra_repository_dir(&general_args, "extra-repository-dir", '\0',
- "Also include the repository at this location. May be specified multiple times, in creation order."),
- a_write_cache_dir(&general_args, "write-cache-dir", '\0',
- "Use a subdirectory named for the repository name under the specified directory for repository write cache"),
- a_report_file(&general_args, "report-file", 'r',
- "Write report to the specified file, rather than stdout")
-{
- add_usage_line("--fetch");
-
- add_description_line("accerso is configured purely from the command line. It does not use any user "
- "configuration files.");
-
- add_environment_variable("ACCERSO_OPTIONS", "Default command-line options.");
-}
-
-std::string
-CommandLine::app_name() const
-{
- return "accerso";
-}
-
-std::string
-CommandLine::app_synopsis() const
-{
- return "Mirror client for Paludis";
-}
-
-std::string
-CommandLine::app_description() const
-{
- return
- "accerso is a mirror client for Paludis. It fetches every distfile for every package in the "
- "given repository and produces a report of any failures.";
-}
-
-CommandLine::~CommandLine()
-{
-}
-
-
diff --git a/src/clients/accerso/command_line.hh b/src/clients/accerso/command_line.hh
deleted file mode 100644
index f2bf89f..0000000
--- a/src/clients/accerso/command_line.hh
+++ /dev/null
@@ -1,64 +0,0 @@
-/* vim: set sw=4 sts=4 et foldmethod=syntax : */
-
-/*
- * Copyright (c) 2007, 2008, 2010 Ciaran McCreesh
- *
- * This file is part of the Paludis package manager. Paludis is free software;
- * you can redistribute it and/or modify it under the terms of the GNU General
- * Public License version 2, as published by the Free Software Foundation.
- *
- * Paludis 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, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#ifndef PALUDIS_GUARD_SRC_CLIENTS_ACCERSO_COMMAND_LINE_HH
-#define PALUDIS_GUARD_SRC_CLIENTS_ACCERSO_COMMAND_LINE_HH 1
-
-#include <paludis/args/args.hh>
-#include <paludis/util/singleton.hh>
-#include <paludis/args/log_level_arg.hh>
-
-class CommandLine :
- public paludis::args::ArgsHandler,
- public paludis::Singleton<CommandLine>
-{
- friend class paludis::Singleton<CommandLine>;
-
- private:
- CommandLine();
- ~CommandLine();
-
- public:
- virtual std::string app_name() const;
- virtual std::string app_synopsis() const;
- virtual std::string app_description() const;
-
- paludis::args::ArgsGroup action_args;
-
- paludis::args::SwitchArg a_fetch;
- paludis::args::SwitchArg a_version;
- paludis::args::SwitchArg a_help;
-
- paludis::args::ArgsGroup general_args;
-
- paludis::args::LogLevelArg a_log_level;
- paludis::args::SwitchArg a_no_colour;
- paludis::args::AliasArg a_no_color;
- paludis::args::SwitchArg a_force_colour;
- paludis::args::AliasArg a_force_color;
- paludis::args::StringArg a_repository_directory;
- paludis::args::StringArg a_download_directory;
- paludis::args::StringArg a_master_repository_name;
- paludis::args::StringSequenceArg a_extra_repository_dir;
- paludis::args::StringArg a_write_cache_dir;
- paludis::args::StringArg a_report_file;
-};
-
-
-#endif
diff --git a/src/clients/accerso/help_TEST b/src/clients/accerso/help_TEST
deleted file mode 100755
index 980b96f..0000000
--- a/src/clients/accerso/help_TEST
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env bash
-
-./accerso --help
-
diff --git a/src/clients/accerso/man_accerso.cc b/src/clients/accerso/man_accerso.cc
deleted file mode 100644
index 710e223..0000000
--- a/src/clients/accerso/man_accerso.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/* vim: set sw=4 sts=4 et foldmethod=syntax : */
-
-/*
- * Copyright (c) 2006, 2007, 2009, 2011 Ciaran McCreesh
- *
- * This file is part of the Paludis package manager. Paludis is free software;
- * you can redistribute it and/or modify it under the terms of the GNU General
- * Public License version 2, as published by the Free Software Foundation.
- *
- * Paludis 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, write to the Free Software Foundation, Inc., 59 Temple
- * Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-#include "command_line.hh"
-#include <paludis/args/man.hh>
-#include <paludis/args/do_help.hh>
-
-#include <iostream>
-#include <cstdlib>
-
-using std::cout;
-using std::endl;
-
-namespace
-{
- struct ManCommandLine :
- paludis::args::ArgsHandler
- {
- virtual std::string app_name() const
- {
- return "";
- }
-
- virtual std::string app_description() const
- {
- return "";
- }
-
- virtual std::string app_synopsis() const
- {
- return "";
- }
- };
-}
-
-int
-main(int argc, char * argv[])
-{
- ManCommandLine cmdline;
- cmdline.run(argc, argv, "", "", "");
-
- auto w(std::make_shared<paludis::args::AsciidocWriter>(cout));
-
- paludis::args::generate_doc(*w, CommandLine::get_instance());
-
- return EXIT_SUCCESS;
-}
-
diff --git a/src/clients/accerso/version_TEST b/src/clients/accerso/version_TEST
deleted file mode 100755
index 0047c0d..0000000
--- a/src/clients/accerso/version_TEST
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env bash
-
-./accerso --version
-