[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: drop python-lint.log in lin
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: drop python-lint.log in lint |
Date: |
Sat, 09 Mar 2019 11:52:19 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new dd0532619 drop python-lint.log in lint
dd0532619 is described below
commit dd053261910f644de496039130bf5860b43f64c8
Author: ng0 <address@hidden>
AuthorDate: Sat Mar 9 10:52:13 2019 +0000
drop python-lint.log in lint
---
contrib/scripts/lint-python.sh | 50 ++++++++++++++++++++++--------------------
1 file changed, 26 insertions(+), 24 deletions(-)
diff --git a/contrib/scripts/lint-python.sh b/contrib/scripts/lint-python.sh
index 3325460f6..cf737cae2 100755
--- a/contrib/scripts/lint-python.sh
+++ b/contrib/scripts/lint-python.sh
@@ -10,67 +10,69 @@ existence()
command -v "$1" >/dev/null 2>&1
}
+LOGFILE="lint/python-lint.log"
+
# invoke from root of source!
if [ $(basename $(pwd)) = "scripts" ]
then
return 1
else
- if [ -e "python-lint.log" ]
+ if [ -e "${LOGFILE}" ]
then
- rm "python-lint.log"
+ rm ${LOGFILE}
fi
if existence python;
then
- python --version >> python-lint.log
+ python --version >> ${LOGFILE}
fi
if existence python2;
then
- python2 --version >> python-lint.log
+ python2 --version >> ${LOGFILE}
fi
if existence python3;
then
- python3 --version >> python-lint.log
+ python3 --version >> ${LOGFILE}
fi
if existence python3.7;
then
- python3.7 --version >> python-lint.log
+ python3.7 --version >> ${LOGFILE}
fi
if existence flake8;
then
- echo >> python-lint.log
- echo "flake8:" >> python-lint.log
- echo >> python-lint.log
- flake8 >> python-lint.log
+ echo >> ${LOGFILE}
+ echo "flake8:" >> ${LOGFILE}
+ echo >> ${LOGFILE}
+ flake8 >> ${LOGFILE}
fi
if existence flake8-3.7;
then
- echo >> python-lint.log
- echo "flake8:" >> python-lint.log
- echo >> python-lint.log
- flake8-3.7 >> python-lint.log
+ echo >> ${LOGFILE}
+ echo "flake8:" >> ${LOGFILE}
+ echo >> ${LOGFILE}
+ flake8-3.7 >> ${LOGFILE}
fi
if existence 2to3;
then
- echo >> python-lint.log
- echo "2to3" >> python-lint.log
- echo >> python-lint.log
- 2to3 -v -d . >> python-lint.log
- 2to3 -v -p . >> python-lint.log
+ echo >> ${LOGFILE}
+ echo "2to3" >> ${LOGFILE}
+ echo >> ${LOGFILE}
+ 2to3 -v -d . >> ${LOGFILE}
+ 2to3 -v -p . >> ${LOGFILE}
fi
if existence 2to3-3.7;
then
- echo >> python-lint.log
- echo "2to3" >> python-lint.log
- echo >> python-lint.log
- 2to3-3.7 -v -d . >> python-lint.log
- 2to3-3.7 -v -p . >> python-lint.log
+ echo >> ${LOGFILE}
+ echo "2to3" >> ${LOGFILE}
+ echo >> ${LOGFILE}
+ 2to3-3.7 -v -d . >> ${LOGFILE}
+ 2to3-3.7 -v -p . >> ${LOGFILE}
fi
fi
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: drop python-lint.log in lint,
gnunet <=