Another fix: Think I've solved the precompilation reference dupes

This commit is contained in:
Rick Falkvinge
2016-10-01 10:49:31 +02:00
parent ade36e6aea
commit a1de029b64
3 changed files with 34 additions and 3 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/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 ..