Title: [213974] trunk/Tools
- Revision
- 213974
- Author
- aakash_j...@apple.com
- Date
- 2017-03-14 23:18:35 -0700 (Tue, 14 Mar 2017)
Log Message
start-queue-mac.sh should create logs directory if it doesn't exist
https://bugs.webkit.org/show_bug.cgi?id=169634
Reviewed by Alexey Proskuryakov.
* EWSTools/start-queue-mac.sh: Creating logs directory if it doesn't exist.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (213973 => 213974)
--- trunk/Tools/ChangeLog 2017-03-15 05:52:08 UTC (rev 213973)
+++ trunk/Tools/ChangeLog 2017-03-15 06:18:35 UTC (rev 213974)
@@ -1,3 +1,12 @@
+2017-03-14 Aakash Jain <aakash_j...@apple.com>
+
+ start-queue-mac.sh should create logs directory if it doesn't exist
+ https://bugs.webkit.org/show_bug.cgi?id=169634
+
+ Reviewed by Alexey Proskuryakov.
+
+ * EWSTools/start-queue-mac.sh: Creating logs directory if it doesn't exist.
+
2017-03-14 Andy Estes <aes...@apple.com>
[iOS] -[WKWebView _dataForDisplayedPDF] returns nil when called before an encrypted PDF has been unlocked
Modified: trunk/Tools/EWSTools/start-queue-mac.sh (213973 => 213974)
--- trunk/Tools/EWSTools/start-queue-mac.sh 2017-03-15 05:52:08 UTC (rev 213973)
+++ trunk/Tools/EWSTools/start-queue-mac.sh 2017-03-15 06:18:35 UTC (rev 213974)
@@ -41,7 +41,12 @@
EWS_HOME=/Volumes/Data/EWS
WEBKIT_HOME=$EWS_HOME/WebKit
+LOGS_DIR=$EWS_HOME/$QUEUE_NAME-logs
+if [ ! -d "$LOGS_DIR" ]; then
+ mkdir -p $LOGS_DIR
+fi
+
# If building for iOS, make sure we run this script to make it possible to build frameworks.
if [ "$QUEUE_NAME" == "ios-ews" ]; then
(cd $WEBKIT_HOME; sudo ./Tools/Scripts/configure-xcode-for-ios-development)
@@ -52,7 +57,7 @@
while [ $TIME_TO_REBOOT -gt $(date +%s) ] || [ $(date +%H) -lt 1 ] || [ $(date +%H) -ge 6 ]; do
# Delete log files older than 30 days, move aside the main $QUEUE_NAME-ews.log file to prevent it from growing extra large.
- cd $EWS_HOME/$QUEUE_NAME-logs
+ cd $LOGS_DIR
find . -mtime +30 -delete
if [ -s $QUEUE_NAME.log ]; then
filesize=$(stat -f%z "$QUEUE_NAME.log") # filesize in bytes.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes