• R/O
  • SSH
  • HTTPS

ewatch: Commit


Commit MetaInfo

Revision101 (tree)
Zeit2019-07-27 12:10:41
Autorbananajinn

Log Message

add pack.sh

Ändern Zusammenfassung

Diff

--- trunk/EWatchC/EWatchC/etc/EWatch.config.json (revision 100)
+++ trunk/EWatchC/EWatchC/etc/EWatch.config.json (revision 101)
@@ -127,19 +127,6 @@
127127 ServerHost:'localhost:25'
128128 }
129129 ],
130- EventLog: {
131- Application: [
132- { logLevel:'E', match:'view', ignore:null, actions:[ 'forwardTest' ] },
133- { logLevel:'E', match:null, ignore:null, actions:[ 'executeTest', 'mantisTest', 'slackTest' ] }
134- ],
135- System: [
136- { logLevel:'E', match:'term', ignore:null, actions:[ 'smtpTest' ]},
137- { logLevel:'E', match:null, ignore:null, actions:[ 'executeTest' ]}
138- ],
139- "Microsoft-Windows-TaskScheduler/Operational": [
140- { logLevel:'E', match:null, ignore:null, actions:[ 'executeTest' ]}
141- ]
142- },
143130 File: {
144131 "C:\\test.log" :[
145132 { match:'\\[ERROR\\]', ignore:null, actions:[ 'executeTest' ]},
--- trunk/EWatchC/pack.sh (nonexistent)
+++ trunk/EWatchC/pack.sh (revision 101)
@@ -0,0 +1,17 @@
1+#!/bin/sh
2+#xbuild EWatchC.sln /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU";PlatformTarget=AnyCPU
3+xbuild EWatchC.sln /t:Rebuild /p:Configuration=Release
4+
5+[ -d dist ] && rm -rf dist
6+mkdir -p dist/EWatchC/etc
7+cp EWatchC/bin/Release/*.exe dist/EWatchC/
8+cp EWatchC/bin/Release/*.dll dist/EWatchC/
9+cp EWatchC/bin/Release/log4net.config.xml dist/EWatchC/
10+cp EWatchC/etc/*.json dist/EWatchC/etc/
11+
12+ver=$(grep AssemblyVersion EWatchC/Properties/AssemblyInfo.cs \
13+ | sed -r 's/^.*"([0-9]+\.[0-9]+).*".*$/\1/')
14+pushd dist
15+zip -r EWatchC-$ver.zip EWatchC/*
16+popd
17+
Show on old repository browser