From: Joel Rosdahl Date: Sun, 4 Mar 2012 16:30:58 +0000 (+0100) Subject: Minor documentation tweaks X-Git-Tag: v3.2~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c5a69e521b3aa10a5569ca22b3c88e7ab0adf2a;p=thirdparty%2Fccache.git Minor documentation tweaks --- diff --git a/MANUAL.txt b/MANUAL.txt index ab39935b6..4b0cfb22a 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -104,7 +104,7 @@ compiler options apply and you should refer to the compiler's documentation. Clean up the cache by removing old cached files until the specified file number and cache size limits are not exceeded. This also recalculates the - cache file count and size totals. Normally, it's not needed to initiate + cache file count and size totals. Normally, there is no need to initiate cleanup manually as ccache keeps the cache below the specified limits at runtime and keeps statistics up to date on each compilation. Forcing a cleanup is mostly useful if you manually modify the cache contents or @@ -112,7 +112,8 @@ compiler options apply and you should refer to the compiler's documentation. *-C, --clear*:: - Clear the entire cache, removing all cached files. + Clear the entire cache, removing all cached files, but keeping the + configuration file. *-F, --max-files*='N':: @@ -201,9 +202,9 @@ paths. Configuration file syntax ~~~~~~~~~~~~~~~~~~~~~~~~~ -Configuration files are in a simple ``key = value'' format, one per line. Lines -starting with a hash sign are comments. Blank lines are ignored, as is -whitespace surrounding keys and values. Example: +Configuration files are in a simple ``key = value'' format, one setting per +line. Lines starting with a hash sign are comments. Blank lines are ignored, as +is whitespace surrounding keys and values. Example: ------------------------------------------------------------------------------- # Set maximum cache size to 10 GB: @@ -214,10 +215,10 @@ Boolean values ~~~~~~~~~~~~~~ Some settings are boolean values (i.e. truth values). In a configuration file, -such values should be set to the string *true* or *false*. For the -corresponding environment variables, the semantics are a bit different: a set -environment variable means ``true'' regardless of the value (even if set to the -empty string), and an unset environment variable means ``false''. Each boolean +such values must be set to the string *true* or *false*. For the corresponding +environment variables, the semantics are a bit different: a set environment +variable means ``true'' regardless of the value (even if set to the empty +string), and an unset environment variable means ``false''. Each boolean environment variable also has a negated form starting with *CCACHE_NO*. For example, *CCACHE_COMPRESS* can be set to force compression and *CCACHE_NOCOMPRESS* can be set to force no compression. @@ -228,7 +229,7 @@ Configuration settings Below is a list of available configuration settings. The corresponding environment variable name is indicated in parentheses after each configuration -setting key. +setting key. Boolean options are indicated with ``[boolean]'' *base_dir* (*CCACHE_BASEDIR*):: @@ -241,7 +242,7 @@ setting key. *cache_dir* (*CCACHE_DIR*):: - This setting specifies where ccache will keep its cached compiler output. + This setting specifies where ccache will keep its cached compiler outputs. It will only take effect if set in the system-wide configuration file or as an environment variable. The default is *$HOME/.ccache*. diff --git a/ccache.c b/ccache.c index 66d51eed0..f82f409f3 100644 --- a/ccache.c +++ b/ccache.c @@ -55,7 +55,7 @@ static const char USAGE_TEXT[] = "Options:\n" " -c, --cleanup delete old files and recalculate size counters\n" " (normally not needed as this is done automatically)\n" -" -C, --clear clear the cache completely\n" +" -C, --clear clear the cache completely (except configuration)\n" " -F, --max-files=N set maximum number of files in cache to N (use 0 for\n" " no limit)\n" " -M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no\n"