##// END OF EJS Templates
build: add stricter checks for static files inside build data
marcink -
r3182:5281b757 default
parent child
Show More
@@ -187,14 +187,17 let
187
187
188 postInstall = ''
188 postInstall = ''
189 # check required files
189 # check required files
190 if [ ! -f rhodecode/public/js/scripts.js ]; then
190 STATIC_CHECK="/robots.txt /502.html
191 echo "Missing scripts.js"
191 /js/scripts.js /js/rhodecode-components.js
192 exit 1
192 /css/style.css /css/style-polymer.css"
193 fi
193
194 if [ ! -f rhodecode/public/css/style.css ]; then
194 for file in $STATIC_CHECK;
195 echo "Missing style.css"
195 do
196 exit 1
196 if [ ! -f rhodecode/public/$file ]; then
197 fi
197 echo "Missing $file"
198 exit 1
199 fi
200 done
198
201
199 echo "Writing enterprise-ce meta information for rccontrol to nix-support/rccontrol"
202 echo "Writing enterprise-ce meta information for rccontrol to nix-support/rccontrol"
200 mkdir -p $out/nix-support/rccontrol
203 mkdir -p $out/nix-support/rccontrol
General Comments 0
You need to be logged in to leave comments. Login now