Mercurial > forge
changeset 3622:e9a60fecc2bd octave-forge
Try case of existing on_install.m file
author | adb014 |
---|---|
date | Wed, 11 Jul 2007 18:24:46 +0000 |
parents | 0e9e343f2da4 |
children | 9f3084bcbd69 |
files | admin/rpm_template.in |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/admin/rpm_template.in Wed Jul 11 18:23:22 2007 +0000 +++ b/admin/rpm_template.in Wed Jul 11 18:24:46 2007 +0000 @@ -41,6 +41,12 @@ HOME=`pwd` %{octave} -H -q --no-site-file --eval "pkg('build','-nodeps','-verbose','tmp','@PACKAGE@');" cd tmp tar xf @NAME@-@VERSION@.tar +if [ -e @NAME@/on_uninstall.m ]; then + if [! -d @NAME@/doc ]; then + mkdir @NAME@/doc + fi + mv @NAME@/on_uninstall.m @NAME@/doc/on_uninstall.m.orig +fi cat << EOF > @NAME@/on_uninstall.m function on_uninstall (desc) error ("Can not uninstall @NAME@-@VERSION@ installed by the RPM package manager");