From: gnublin Date: Wed, 21 Jun 2017 12:30:26 +0000 (+0200) Subject: gnublin X-Git-Tag: sysd2sysv_0.1-1~12 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/projects.git/commitdiff_plain/9f900ca37096790daab2fd817144badd826c2708?ds=sidebyside;hp=-c gnublin --- 9f900ca37096790daab2fd817144badd826c2708 diff --combined tools/make/configure index 3dfa084,e9770fa..6d8a67f --- a/tools/make/configure +++ b/tools/make/configure @@@ -88,13 -88,14 +88,14 @@@ the 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 +103,7 @@@ 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,15 -112,12 +112,15 @@@ els 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 src -name $paket.preinst) +files="$files $(find src -name $paket.postinst)" +files="$files $(find src -name $paket.prerm)" +files="$files $(find src -name $paket.postrm)" +for file in $files +do + ln -sf $file . +done # create generic make.pre, if not existing if [ ! -f make.pre ]