patch-icon-theme-installer 832 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-icon-theme-installer,v 1.2 2010/09/13 07:10:47 jasper Exp $
  2. --- icon-theme-installer.orig Mon Sep 13 09:04:42 2010
  3. +++ icon-theme-installer Mon Sep 13 09:05:25 2010
  4. @@ -1,4 +1,4 @@
  5. -#!/bin/sh
  6. +#!${LOCALBASE}/bin/bash
  7. # icon-theme-installer
  8. # Copyright (C) 2006 Novell, Inc.
  9. @@ -103,12 +103,12 @@ if test -z "$INSTALL_BASE_DIR"; then
  10. exit 1
  11. fi
  12. -if test ! -x `echo "$MKINSTALLDIRS_EXEC" | cut -f1 -d' '`; then
  13. +if ! which $(echo "$MKINSTALLDIRS_EXEC" | cut -f1 -d' '); then
  14. echo "Cannot find '$MKINSTALLDIRS_EXEC'; You probably want to pass -m \$(mkinstalldirs)"
  15. exit 1
  16. fi
  17. -if test ! -x `echo "$INSTALL_DATA_EXEC" | cut -f1 -d' '`; then
  18. +if ! which $(echo "$INSTALL_DATA_EXEC" | cut -f1 -d' '); then
  19. echo "Cannot find '$INSTALL_DATA_EXEC'; You probably want to pass -x \$(INSTALL_DATA)"
  20. exit 1
  21. fi