• R/O
  • SSH
  • HTTPS

ewatch: Commit


Commit MetaInfo

Revision108 (tree)
Zeit2019-11-11 13:47:36
Autorbananajinn

Log Message

非Windows環境の

Ändern Zusammenfassung

Diff

--- trunk/EWatch/EWatch/Watchers/EventLogWatcher.cs (revision 107)
+++ trunk/EWatch/EWatch/Watchers/EventLogWatcher.cs (revision 108)
@@ -21,7 +21,9 @@
2121 public class EventLogWatcher : BaseWatcher
2222 {
2323 private string name;
24+#if _WINDOWS
2425 private EventBookmark bookmark;
26+#endif
2527
2628 public EventLogWatcher(string name, List<ActionTable> actionTable)
2729 : base(actionTable)
@@ -31,6 +33,7 @@
3133
3234 public override void Watch()
3335 {
36+#if _WINDOWS
3437 using (var reader = new EventLogReader(name)) {
3538
3639 if (bookmark != null) {
@@ -59,6 +62,7 @@
5962 EntryWritten(record);
6063 }
6164 }
65+#endif
6266 }
6367
6468 public override void Dispose()
--- trunk/EWatch/pack.sh (revision 107)
+++ trunk/EWatch/pack.sh (revision 108)
@@ -8,3 +8,7 @@
88 cp EWatchCLI/bin/Release/EWatchCLI.exe $WORKDIR/EWatch
99 cp EWatch/etc/notWindows/* $WORKDIR/EWatch/etc
1010
11+version=$(grep AssemblyVersion EWatch/Properties/AssemblyInfo.cs | sed -r 's/^.*"([0-9\.]+)".*$/\1/')
12+pushd $WORKDIR
13+tar zcvf EWatch-$version-nw.tar.gz EWatch
14+popd
Show on old repository browser