blob: cbaf972f02aba26e09f633c184255756ecf7839d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh -x
### To be used only while building pki-core. ###
if [ -z "$1" ]
then
echo "PKI codebase home not specified. Could not scan the python scripts. Returning 0 - for SUCCESS"
echo 0
exit 0
fi
HOME_DIR=$1
PYLINT_RC_FILE_PATH="`cd $2/.. ; pwd`/dogtag.pylintrc"
PYTHON_PACKAGE_DIR="$HOME_DIR`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`"
cd $PYTHON_PACKAGE_DIR
FILES="pki/"
FILES="$FILES $HOME_DIR/usr/bin/pki"
FILES="$FILES $HOME_DIR/usr/sbin/pkispawn"
FILES="$FILES $HOME_DIR/usr/sbin/pkidestroy"
FILES="$FILES $HOME_DIR/usr/sbin/pki-upgrade"
FILES="$FILES $HOME_DIR/usr/sbin/pki-server"
FILES="$FILES $HOME_DIR/usr/sbin/pki-server-upgrade"
pylint --rcfile=$PYLINT_RC_FILE_PATH $FILES
exit $?
|