Files
using.cash/BuildFiles/Building/scripts/postbuild-fixes
T

21 lines
610 B
Bash
Executable File

#!/bin/bash
# This file is to be run in the build directory, after publication of the finished build there.
# FRONTEND FIXES
# Remove all source files and re-reference aspx, ascx files to refer to the compiled Swarmops.Frontend assembly instead.
cd frontend
find . -iname '*.asp?.*.cs' -delete
find . -iname '*.asp?.cs' -delete
find . -iname '*.as?x' -exec perl -pi -e 's/[Cc]ode[Bb]ehind=\".*?\"//g;' {} \;
find . -iname '*.as?x' -exec perl -pi -e 's/[Cc]ode[Ff]ile=\".*?\"//g;' {} \;
find . -iname '*.as?x' -exec perl -pi -e 's/[Ii]nherits=\"(.*?)\"/Inherits="$1, Swarmops.Frontend"/g;' {} \;
cd ..