Files
using.cash/BuildFiles/update-kaylock-count
2017-01-11 16:27:30 +01:00

11 lines
528 B
Bash
Executable File

#!/bin/bash
# Updates LOC count for Swarmops. Run from parent folder,
# like 'BuildFiles/update-loc.sh' for the output to write to right folder.
# Update the LOC count on every sprint deploy.
find . \( -name '*.cs' -o -name '*.as?x' \) | grep -v "External Dep" | grep -v "Site4" | grep -v "Site5" | xargs wc -l > LINESOFCODE
tail -n 1 LINESOFCODE | cut -c 2-7 | xargs printf "%'d" | xargs -I {} sed -i 's/<!--KaylockCount-->.*<!--EndKaylock-->/<!--KaylockCount-->{}<!--EndKaylock-->/' Site/Controls/v5/Base/MainMenu.ascx.cs