Merge branch 'master' into bee-cache

* master:
  beeflock: Add new utility to run commands using locking via flock
  beesh: Get rid of temporary DUMP-file used for packaging
  beesh: use new content2filelist options
  content2filelist: Add support for appending/prepending/sorting
  content2filelist: Speed up generation of filelist by using sed
  beesh: check_rebuild: return with a value
  beesh: add check for already existing bee package and bee-file
bee-cache-inventory: new tool to convert CONTENT file to inventory structure
Merge branch 'tobi/bee-cache-inventory' into bee-cache

* tobi/bee-cache-inventory:
  bee-cache-inventory: new tool to convert CONTENT file to inventory structure
  beeflock: Set BEE_BEEFLOCK_LOCKEDFILE environment variable
bee-cache-inventory: Replace extract macro with inline function
bee-cache-inventory: Add missing 'mode' in output
bee-cache-inventory: Optimize skipping special directories

Since no package ever starts with a '.' skipping
all entries starting with '.' when scanning the
input directory is safe.
bee-cache-inventory: Minor syntax cleanup
bee-cache-inventory: Fix unchecked strdup()
bee-cache-inventory: Save one alloc/free per input line

some stats from our current system:

with this commit:
==398== HEAP SUMMARY:
==398==     in use at exit: 0 bytes in 0 blocks
==398==   total heap usage: 782 allocs, 782 frees, 471,334 bytes allocated

without:
==548== HEAP SUMMARY:
==548==     in use at exit: 0 bytes in 0 blocks
==548==   total heap usage: 330,219 allocs, 330,219 frees, 60,333,234 bytes allocated
bee-cache-inventory: Assert newline
bci: Detect corrupt CONTENT files bug

bee 1.0 has had a serious bug in CONTENT file creation.

The related bug was fixed for 1.1 in e2d4677fb409778746c1d90b3bc03cb7a49778b7
bci: minor syntax cleanup
bci: cleanup 3 error messages
bci: remove trailing slashes from pathname
Makefile: install bee-cache-inventory as helper in libexec dir
Merge branches 'bee-cache/bee-cache-inventory' and 'master' into bee-cache/bee-cache

* bee-cache/bee-cache-inventory:
  Makefile: install bee-cache-inventory as helper in libexec dir
  bci: remove trailing slashes from pathname
  bci: cleanup 3 error messages
  bci: minor syntax cleanup
  bci: Detect corrupt CONTENT files bug
  bee-cache-inventory: Assert newline
  bee-cache-inventory: Save one alloc/free per input line
  bee-cache-inventory: Fix unchecked strdup()
  bee-cache-inventory: Minor syntax cleanup
  bee-cache-inventory: Optimize skipping special directories
  bee-cache-inventory: Add missing 'mode' in output
  bee-cache-inventory: Replace extract macro with inline function

* master:
  filelist2content: fix filename quoting
  bee-install: Fix corrupted CONTENT files created with bee-1.0
  content2filelist: remove trailing slashes
  beegetopt: let bee_getopt_init set the program name
  beegetopt: use program_invocation_short_name to get the name of the program
  bee-check: add check for mode, gid and uid
Merge branch 'speedup-and-improve' into bee-cache/bee-cache

* speedup-and-improve:
  Makefile: Remove perl rules
  Makefile: Cleanup variables

Conflicts:
	Makefile
bee-cache-update: new helper to manage inventory
bee-cache-update: Remove missing packages from INVENTORY
bee-cache-update: Output more information about progress