From 8e1a3fb7667de3f3b19382b39d83efe5dda3bab2 Mon Sep 17 00:00:00 2001 From: Thomas Witkowski <thomas.witkowski@gmx.de> Date: Mon, 18 Apr 2011 11:27:17 +0000 Subject: [PATCH] And try to add some missing files ... --- AMDiS/postrm.in | 14 ++++++++++++++ AMDiS/preinst.in | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100755 AMDiS/postrm.in create mode 100755 AMDiS/preinst.in diff --git a/AMDiS/postrm.in b/AMDiS/postrm.in new file mode 100755 index 00000000..49a9ce70 --- /dev/null +++ b/AMDiS/postrm.in @@ -0,0 +1,14 @@ +#!/bin/sh +if test "$1" = "upgrade" ; then + exit 0 +fi +NEWDIRS_SEMI="@deb_add_dirs@" +NEWDIRS=`echo ${NEWDIRS_SEMI} | sed 's/;/ /g'` +BASEDIR=@CPACK_INSTALL_PREFIX@ +#echo "will create the remove directories:" +for d in ${NEWDIRS}; do +# echo "${BASEDIR}${d}" + rm -r ${BASEDIR}${d} > /dev/null 2> /dev/null +done +exit 0 + diff --git a/AMDiS/preinst.in b/AMDiS/preinst.in new file mode 100755 index 00000000..9d38fefe --- /dev/null +++ b/AMDiS/preinst.in @@ -0,0 +1,10 @@ +#!/bin/sh +NEWDIRS_SEMI="@deb_add_dirs@" +NEWDIRS=`echo ${NEWDIRS_SEMI} | sed 's/;/ /g'` +BASEDIR=@CPACK_INSTALL_PREFIX@ +#echo "will create the following directories:" +for d in ${NEWDIRS}; do +# echo "${BASEDIR}${d}" + mkdir --parents ${BASEDIR}${d} +done + -- GitLab