Files
pyrobolearn/scripts/install_sloccount.sh
T

19 lines
473 B
Bash
Executable File

#!/bin/sh
# This bash installs the 'sloccount' command which counts source lines of code, and provides several statisticsabout this last one.
# Once installed, go to the pyrobolearn package and type:
# $ sloccount *.py */*.py
# define variables
origindir=$PWD
scriptdir=`dirname $0`
# install package
sudo apt install sloccount -y
# compute statistics for pyrobolearn software
cd $scriptdir; cd ..
sloccount *.py */*.py
# return to the original directory
cd $origindir