echo " this file is necessary for any package production."
fi
-# check for postinst
-postinst=$(find -L src -name $paket.postinst)
-if [ -n "$postinst" ]
-then
- ln -sf $postinst .
-fi
+# check for installation scripts
+files=$(find -L src -name $paket.preinst)
+files="$files $(find -L src -name $paket.postinst)"
+files="$files $(find -L src -name $paket.prerm)"
+files="$files $(find -L src -name $paket.postrm)"
+for file in $files
+do
+ ln -sf $file .
+done
# create generic make.pre, if not existing
if [ ! -f make.pre ]
project = $paket
COPY = ./$paket.cp
MAKE_PRE
+ if [ -n "$ARCH" ]
+ then
+ echo "arch = $ARCH" >>make.pre
+ echo "_arch = _${ARCH}" >>make.pre
+ fi
echo "make.pre written."
fi