Added copyright notices to most files.
This commit is contained in:
parent
97d508c22e
commit
4473661fcf
|
@ -0,0 +1,23 @@
|
|||
#/bin/bash
|
||||
|
||||
# This file is part of LibreWands.
|
||||
|
||||
# LibreWands is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# LibreWands is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License along with LibreWands. If not, see https://www.gnu.org/licenses/.
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
ALL=$(cat ../Source/* | wc -l)
|
||||
COM=$(cat ../Source/* | sed -E 's,\t,,g' | awk '{print substr($0,1,2)}' | sort | uniq -c | grep "//" | grep -oE "[0-9]*")
|
||||
PER=$(echo "100*($COM / $ALL)" | bc -l)
|
||||
else
|
||||
ALL=$(cat "$1" | wc -l)
|
||||
COM=$(cat "$1" | sed -E 's,\t,,g' | awk '{print substr($0,1,2)}' | sort | uniq -c | grep "//" | grep -oE "[0-9]*")
|
||||
PER=$(echo "100*($COM / $ALL)" | bc -l)
|
||||
fi
|
||||
|
||||
echo "Comments per line: $COM / $ALL = $PER %"
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#/bin/bash
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
ALL=$(cat ../Source/* | wc -l)
|
||||
COM=$(cat ../Source/* | sed -E 's,\t,,g' | awk '{print substr($0,1,2)}' | sort | uniq -c | grep "//" | grep -oE "[0-9]*")
|
||||
PER=$(echo "100*($COM / $ALL)" | bc -l)
|
||||
else
|
||||
ALL=$(cat "$1" | wc -l)
|
||||
COM=$(cat "$1" | sed -E 's,\t,,g' | awk '{print substr($0,1,2)}' | sort | uniq -c | grep "//" | grep -oE "[0-9]*")
|
||||
PER=$(echo "100*($COM / $ALL)" | bc -l)
|
||||
fi
|
||||
|
||||
echo "Comments per line: $COM / $ALL = $PER %"
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# This file is part of LibreWands.
|
||||
|
||||
# LibreWands is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# LibreWands is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License along with LibreWands. If not, see https://www.gnu.org/licenses/.
|
||||
|
||||
find ../ -type f -not -path '../Build/*' -not -path '../.git/*' -not -name 'LICENSE' | xargs grep -LE "This file is part of LibreWands."
|
||||
|
Loading…
Reference in New Issue