From: Michael Wagner Date: Mon, 14 Mar 2016 19:20:49 +0000 (+0100) Subject: posaune X-Git-Tag: sysd2sysv_0.1-1~23 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4e9560e5d475437dbf5d8d0044d822b733f2d3e9;p=projects.git posaune --- diff --git a/tools/make/configure b/tools/make/configure index 0771d51..cb61a75 100755 --- a/tools/make/configure +++ b/tools/make/configure @@ -35,13 +35,18 @@ then echo "file $paket.co missing or not executable." exit 1 fi -if [ ! -x $paket.cp ] + +# clean dirs and check out +if [ -d src ] then - echo "warning: file $paket.cp missing or not executable:" - echo " this file is necessary for any package production." + echo "Shall I delete src dir? [y]/n" + read key + if [ "$key" != "n" ] + then + rm -rf src + fi fi -# clean dirs and check out if [ -e $paket ] then rm -rf $paket @@ -79,6 +84,15 @@ else version=$(grep Version $paket.control |sed "s/Version: //") fi +# check for copy file +copy=$(find src -name $paket.cp) +if [ -n "$copy" ] +then + ln -sf $copy . +else + echo "warning: file $paket.cp missing or not executable:" + echo " this file is necessary for any package production." +fi # check for postinst postinst=$(find src -name $paket.postinst)