beelib: Fix stat error message if no /etc/mtab exists

If for whatever reason no /etc/mtab exists, stat -printf "%m"
will fail with an error message.

This does not affect package building or anything else.
It is just ugly 8)

Fix this by checking if /etc/mtab exists.
bee-remove: Fix stat error message if no /etc/mtab exists

If for whatever reason no /etc/mtab exists, stat -printf "%m"
will fail with an error message.

Fix this by checking if /etc/mtab exists.
conf: ignore /lib64 directory by default
buildtypes/hooks: Remove dependency on the 'which' command

Replace all invocations of the external 'which' command with
the bash builtin 'type -p'.

This will remove the dependency on the 'which' command - may it be
GNU which or whatever.

This will reduce some minimal overhead calling external commands.
bee-init: Add support for github tag urls

This adds support to generate bee-files from github tag urls
as found in https://github.com/<user|organisation>/<project>/tags
e.g.

https://github.com/<user|organisation>/<project>/tarball/<tag>
bee-init: Support github zipfile downloads

In addtion to supporting:
https://github.com/<user|organisation>/<project>/tarball/<tag>

also support:
https://github.com/<user|organisation>/<project>/zipball/<tag>

by rewriting them to tarball urls.
hooks: Fix gtk-update-icon-cache hooks

To check for a needed rebuild of the gtk icon cache database now
the existence of icons in the package is checked.

For all top level directories containing icons in some directory tree
the existence of an index.theme is checked. If it exists, we do call
gtk-update-icon-cache for this icon theme directory.

If no index.theme exists, we also delete the icon-theme.cache file.

Updating the icon cache is done in post-install and post-remove.

Since we do not yet have post-update post-install and post-remove will
be called for a package being updated and gtk-update-icon-cache will be
executed twice for all icon themes changed.
Merge branch 'fixes'

* fixes:
  hooks: Fix gtk-update-icon-cache hooks
  bee-remove: Fix stat error message if no /etc/mtab exists
  beelib: Fix stat error message if no /etc/mtab exists
Merge branch 'for-marius' of git://github.com/ruester/bee

* 'for-marius' of git://github.com/ruester/bee:
  conf: ignore /lib64 directory by default
beesh: add support for patch files compressed with xz

uncompress patch files ending with '.xz' using the
unxz binary which needs to be installed.
beegetopt: Fix Assertion in find_short_option when short_opt is empty

When no short options are supplied in find_short_option we just return
BEE_GETOPT_OPTUNKNOWN to indicate an unknown option.
Merge branch 'fixes'

* fixes:
  beegetopt: Fix Assertion in find_short_option when short_opt is empty
bee: Fix endless loop on beegetopt error

Add missing check for exit status of beegetopt in bee.sh

Fixes endless loop bug mentioned in issue #189
Merge branch 'fixes'

* fixes:
  bee: Fix endless loop on beegetopt error
beegetopt: Fix short option handling (again)

Fix in 678ce43c1b41c6def061a3f434b5071e04ccf6a4 was not well done.

We need to reset the unhandled short options so that option parsing may
continue after we hit a "-" invalid option.

We also need to decide if "-" is a special argument or an invalid option.
Merge branch 'fixes'

* fixes:
  beegetopt: Fix short option handling (again)
Revert "beegetopt: Fix short option handling (again)"

This reverts commit dcb0162c4775601368f7f755c91fc27c536708e8.
Revert "beegetopt: Fix Assertion in find_short_option when short_opt is empty"

This reverts commit 678ce43c1b41c6def061a3f434b5071e04ccf6a4.
beegetopt: Fix Assertion if argument is "-"

..by letting "-" be an argument and not a possible option.

fixes issue #189 (again)
Merge branch 'fixes'

* fixes:
  beegetopt: Fix Assertion if argument is "-"
  Revert "beegetopt: Fix Assertion in find_short_option when short_opt is empty"
  Revert "beegetopt: Fix short option handling (again)"