Some script changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user