X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=tools%2Fmake%2Fconfigure;h=a92ecbd7e017e19861e06092c2e24bf29f9ae528;hb=1dd818ead588216487bfcd91c2a7767b1bdabbe8;hp=32b2558ae0838051e4c1e1dca3c7e0fecaf4c6ca;hpb=63c591ceca5b2c3a48887ecf45c4c8c0704954b7;p=projects.git diff --git a/tools/make/configure b/tools/make/configure index 32b2558..a92ecbd 100755 --- a/tools/make/configure +++ b/tools/make/configure @@ -88,13 +88,14 @@ then fi # copy package control -control=$(find src -name $paket.control) +control=$(find -L src -name $paket.control) +build_number=${build#*_} if [ -z "$control" ] then echo "warning: control file not found" echo " this file is necessary for any package production." else - sed "s/%BUILD%/$build/" $control |sed "s/%ARCH%/$ARCH/" >$paket.control + sed "s/%BUILD%/$build_number/" $control |sed "s/%ARCH%/$ARCH/" >$paket.control echo "$paket.control written." # extract version @@ -102,7 +103,7 @@ else fi # check for copy file -copy=$(find src -name $paket.cp) +copy=$(find -L src -name $paket.cp) if [ -n "$copy" ] then ln -sf $copy . @@ -111,12 +112,15 @@ else echo " this file is necessary for any package production." fi -# check for postinst -postinst=$(find 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 ] @@ -126,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