don't copy core kmod source files to tempdir

No need to copy them anymore now that the core kmod is getting
built elsewhere.
Merge pull request #20 from jpoimboe/copy-core-fix

don't copy core kmod source files to tempdir
fix STRIPCMD use

bash gets confused when a command and its args are quoted:

  /usr/local/libexec/kpatch/kpatch-build: line 131: strip -d --keep-file-symbols: command not found
Merge pull request #21 from jpoimboe/strip-fix

fix STRIPCMD use
cleanup the cleanup handling

- always remove TEMPDIR, otherwise /tmp can fill up if you get multiple
  build errors
- always remove KSRCDIR
- only remove the log file on success
fix calling of kpatch-build from git dir

When calling kpatch-build from the git directory, the patch kmod build
fails because it can't find kpatch.h because the symlink is broken.
Copy the kpatch.h file (instead of the symlink) to TEMPDIR.
Merge pull request #22 from jpoimboe/kpatch-build-from-git

fix calling of kpatch-build from git dir
Merge pull request #23 from jpoimboe/cleanup-cleanup

cleanup the cleanup handling
rearrange README and add some more content

- move license to bottom
- clarify dependencies and installation procedure
- move gotchas section to installation section
- move status section to intro
- add more information about how it works
Merge pull request #24 from jpoimboe/readme

rearrange README and add some more content
Merge pull request #25 from spartacus06/fixes

remove quotes around for loop elements
remove compressed cache

The compression of the cache during initial build time and
the removal and (re)decompression of the cache for subsequent
builds takes a large amount of time and causes significant I/O.

This commit removes the compressed cache and, instead, keeps
the cache uncompressed and maintained in a known state.  If
the "applied-patch" file does not exist, then the cache is
in the unpatched state.  If the file does exist, the cache is
in a patched state and can be returned to an unpatched state
with "patch -R -p1 < applied-patch".

The if cache is detected and is in the patched state, the patch
is removed and vmlinux is rebuilt to obtain the base vmlinux.

Signed-off-by: Seth Jennings <sjenning@redhat.com>
Merge pull request #26 from spartacus06/remove-compressed-cache

remove compressed cache
ccache README recommendation
only allow one cache at a time

This will prevent the ~/.kpatch cache directory from filling up with old
caches.
Merge pull request #27 from jpoimboe/readme-ccache

ccache README recommendation
Merge pull request #28 from jpoimboe/clean-cache

only allow one cache at a time
iterate the iterator

It works better this way.  Trust me.

Signed-off-by: Seth Jennings <sjenning@redhat.com>