projects
/
projects.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8aa3f75
)
posaune
author
Michael Wagner
<info@wagnertech.de>
Mon, 14 Mar 2016 19:20:49 +0000
(20:20 +0100)
committer
Michael Wagner
<info@wagnertech.de>
Mon, 14 Mar 2016 19:20:49 +0000
(20:20 +0100)
tools/make/configure
patch
|
blob
|
history
diff --git
a/tools/make/configure
b/tools/make/configure
index
0771d51
..
cb61a75
100755
(executable)
--- a/
tools/make/configure
+++ b/
tools/make/configure
@@
-35,13
+35,18
@@
then
echo "file $paket.co missing or not executable."
exit 1
fi
echo "file $paket.co missing or not executable."
exit 1
fi
-if [ ! -x $paket.cp ]
+
+# clean dirs and check out
+if [ -d src ]
then
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
fi
-# clean dirs and check out
if [ -e $paket ]
then
rm -rf $paket
if [ -e $paket ]
then
rm -rf $paket
@@
-79,6
+84,15
@@
else
version=$(grep Version $paket.control |sed "s/Version: //")
fi
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)
# check for postinst
postinst=$(find src -name $paket.postinst)