Index: PackageKit-0.5.0/contrib/command-not-found/Makefile.am =================================================================== --- PackageKit-0.5.0.orig/contrib/command-not-found/Makefile.am +++ PackageKit-0.5.0/contrib/command-not-found/Makefile.am @@ -40,6 +40,12 @@ pk_command_not_found_CFLAGS = \ bashprofiledir = ${SYSCONFDIR}/profile.d dist_bashprofile_DATA = PackageKit.sh +PackageKit.sh: PackageKit.sh.in Makefile + sed -e s!\@LIBEXECDIR\@!$(libexecdir)! < $< > $@ + confdir = $(PK_CONF_DIR) dist_conf_DATA = CommandNotFound.conf +EXTRA_DIST = PackageKit.sh.in + +CLEANFILES = PackageKit.sh Index: PackageKit-0.5.0/contrib/command-not-found/PackageKit.sh =================================================================== --- PackageKit-0.5.0.orig/contrib/command-not-found/PackageKit.sh +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (C) 2008 Richard Hughes -# -# Licensed under the GNU General Public License Version 2 -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. - -command_not_found_handle () { - /usr/libexec/pk-command-not-found $1 || return 127 -} - Index: PackageKit-0.5.0/contrib/command-not-found/PackageKit.sh.in =================================================================== --- /dev/null +++ PackageKit-0.5.0/contrib/command-not-found/PackageKit.sh.in @@ -0,0 +1,12 @@ +# Copyright (C) 2008 Richard Hughes +# +# Licensed under the GNU General Public License Version 2 +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +command_not_found_handle () { + @LIBEXECDIR@/pk-command-not-found $1 || return 127 +} +