Some script changes

This commit is contained in:
Rick Falkvinge
2017-01-11 16:27:30 +01:00
parent 50c43809bc
commit 87237f167a
5 changed files with 17 additions and 3 deletions
@@ -13,6 +13,9 @@ find . -iname '*.cs' -exec perl -pi -e 's/Resources.Controls.([A-Za-z\.]+)/Resou
cd ../..
# Update line count
./update-kaylock-count
# Restore packages, command line version
@@ -0,0 +1,10 @@
#!/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