Logging improved

This commit is contained in:
Juan 2018-04-19 13:38:13 +02:00
parent 437f749b68
commit f9def95dc3
3 changed files with 9 additions and 8 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-repo (2.0.8) stable; urgency=low vn-repo (2.0.9) stable; urgency=low
* Initial Release. * Initial Release.

View File

@ -11,27 +11,28 @@ buildDir="$srcDir/.."
repreproDir="/var/cache/reprepro" repreproDir="/var/cache/reprepro"
codename="stable" codename="stable"
echo "Building source code." echo "++++++++++++++ Building source code."
echo " * Directory $buildDir" echo " * Date: $(date)"
echo " * Directory: $buildDir"
if [ -f "$srcDir/package.json" ] if [ -f "$srcDir/package.json" ]
then then
echo "Installing Node dependencies." echo "++++++++++++++ Installing Node dependencies."
(cd "$srcDir" && npm --silent install) (cd "$srcDir" && npm --silent install)
fi fi
if [ -f "$srcDir/debian/changelog" ] if [ -f "$srcDir/debian/changelog" ]
then then
echo "Cleaning last build." echo "++++++++++++++ Cleaning last build."
rm -f $buildDir/*.deb rm -f $buildDir/*.deb
rm -f $buildDir/*.changes rm -f $buildDir/*.changes
rm -f $buildDir/*.build rm -f $buildDir/*.build
(cd "$srcDir" && debian/rules clean) (cd "$srcDir" && debian/rules clean)
echo "Building Debian packages." echo "++++++++++++++ Building Debian packages."
(cd "$srcDir" && debuild -uc -us -b) (cd "$srcDir" && debuild -uc -us -b)
echo "Adding packages to repository." echo "++++++++++++++ Adding packages to repository."
cut -d" " -f1 "$srcDir/debian/files" | cut -d" " -f1 "$srcDir/debian/files" |
while read debFile while read debFile

View File

@ -25,7 +25,7 @@ fi
# FIXME: Packages are not upgraded when config files are changed # FIXME: Packages are not upgraded when config files are changed
echo "Upgrading servers." echo "++++++++++++++ Upgrading servers."
for host in $hosts for host in $hosts
do do