From 4e9560e5d475437dbf5d8d0044d822b733f2d3e9 Mon Sep 17 00:00:00 2001 From: Michael Wagner Date: Mon, 14 Mar 2016 20:20:49 +0100 Subject: [PATCH] posaune --- tools/make/configure | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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) -- 2.20.1