# Function to fix permissions inside the build directory
# To be invoked inside a package build file.
fixbuilddirpermissions() {
  echo -n "[INFO] Fixing permissions in the newly-created build directory..."
  chown -R root.root .
  find -L .  -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
  \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ || true
  echo " done."
}

