X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=tools%2Fmake%2Fconfigure;h=a92ecbd7e017e19861e06092c2e24bf29f9ae528;hb=c98bffa28b232b7e57ada05268ce7fe5316f15e9;hp=e9770fa82247f68cc1c785278d8b78d9dae5857f;hpb=ede7ea996ee0d38c82d41652bf2fb2a264aaf934;p=projects.git diff --git a/tools/make/configure b/tools/make/configure index e9770fa..a92ecbd 100755 --- a/tools/make/configure +++ b/tools/make/configure @@ -112,12 +112,15 @@ else 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 ] @@ -127,6 +130,11 @@ then 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