make "make package-update" and "make package-overwrite" less verbose

This commit is contained in:
Axel Kohlmeyer
2021-09-27 18:01:37 -04:00
parent 09e0214f7d
commit 53e227766a

View File

@ -45,9 +45,8 @@ elif (test $2 = "installed") then
# perform a re-install, but only if the package is already installed # perform a re-install, but only if the package is already installed
elif (test $2 = "update") then elif (test $2 = "update") then
echo "Updating src files from $1 package files"
if (test $installed = 1) then if (test $installed = 1) then
echo " updating package $1" echo "Updating src files from $1 package files"
if (test -e Install.sh) then if (test -e Install.sh) then
/bin/sh Install.sh 2 /bin/sh Install.sh 2
else else
@ -55,16 +54,14 @@ elif (test $2 = "update") then
fi fi
cd .. cd ..
/bin/sh Depend.sh $1 /bin/sh Depend.sh $1
else
echo " $1 package is not installed"
fi fi
# overwrite, only if installed # overwrite, only if installed
# overwrite package file with src file, if the two are different # overwrite package file with src file, if the two are different
elif (test $2 = "overwrite") then elif (test $2 = "overwrite") then
echo "Overwriting $1 package files with src files"
if (test $installed = 1) then if (test $installed = 1) then
echo "Overwriting $1 package files with src files"
for file in *.cpp *.h; do for file in *.cpp *.h; do
if (test ! -e ../$file) then if (test ! -e ../$file) then
continue continue