Fix windows install script

* would overwrite settings.json
* didn't correctly copy custom templates
* cleans var/minified* now
pull/824/head
Marcel Klehr 2012-06-29 12:41:50 +02:00
parent 227477967f
commit 3d397b1bc2
1 changed files with 14 additions and 11 deletions

View File

@ -6,10 +6,6 @@ set JQUERY_VERSION=1.7
cd bin cd bin
cd .. cd ..
echo _
echo Setting up settings.json...
copy settings.json.template_windows settings.json
echo _ echo _
echo Updating node... echo Updating node...
curl -lo bin\node.exe http://nodejs.org/dist/v%NODE_VERSION%/node.exe curl -lo bin\node.exe http://nodejs.org/dist/v%NODE_VERSION%/node.exe
@ -23,13 +19,20 @@ echo Updating jquery...
curl -lo "node_modules\ep_etherpad-lite\static\js\jquery.min.js" "http://code.jquery.com/jquery-%JQUERY_VERSION%.min.js" curl -lo "node_modules\ep_etherpad-lite\static\js\jquery.min.js" "http://code.jquery.com/jquery-%JQUERY_VERSION%.min.js"
echo _ echo _
echo Some other stuff... echo Copying custom templates...
copy node_modules\ep_etherpad-lite\static\custom\js.template node_modules\ep_etherpad-lite\static\custom\index.template set custom_dir=node_modules\ep_etherpad-lite\static\custom
copy node_modules\ep_etherpad-lite\static\custom\js.template node_modules\ep_etherpad-lite\static\custom\pad.template FOR %%f IN (index pad timeslider) DO (
copy node_modules\ep_etherpad-lite\static\custom\js.template node_modules\ep_etherpad-lite\static\custom\timeslider.template if NOT EXIST %custom_dir%\%%f.js copy %custom_dir%\js.template %custom_dir%\%%f.js
copy node_modules\ep_etherpad-lite\static\custom\css.template node_modules\ep_etherpad-lite\static\custom\index.template if NOT EXIST %custom_dir%\%%f.css copy %custom_dir%\css.template %custom_dir%\%%f.css
copy node_modules\ep_etherpad-lite\static\custom\css.template node_modules\ep_etherpad-lite\static\custom\pad.template )
copy node_modules\ep_etherpad-lite\static\custom\css.template node_modules\ep_etherpad-lite\static\custom\timeslider.template
echo _
echo Clearing cache.
del /S var\minified*
echo _
echo Setting up settings.json...
IF NOT EXIST settings.json copy settings.json.template_windows settings.json
echo _ echo _
echo Installed Etherpad-lite! echo Installed Etherpad-lite!