[71956] trunk/dports/games/PlasmaClient
ryandesign at macports.org
ryandesign at macports.org
Tue Sep 28 05:38:57 PDT 2010
Revision: 71956
http://trac.macports.org/changeset/71956
Author: ryandesign at macports.org
Date: 2010-09-28 05:38:56 -0700 (Tue, 28 Sep 2010)
Log Message:
-----------
PlasmaClient: update to 239, and now keep at most 10 log files
Modified Paths:
--------------
trunk/dports/games/PlasmaClient/Portfile
trunk/dports/games/PlasmaClient/files/PlasmaClient.in
Modified: trunk/dports/games/PlasmaClient/Portfile
===================================================================
--- trunk/dports/games/PlasmaClient/Portfile 2010-09-28 11:47:18 UTC (rev 71955)
+++ trunk/dports/games/PlasmaClient/Portfile 2010-09-28 12:38:56 UTC (rev 71956)
@@ -5,8 +5,7 @@
PortGroup cmake 1.0
name PlasmaClient
-version 0.0-233
-revision 2
+version 0.0-239
categories games
platforms darwin
maintainers ryandesign
@@ -23,7 +22,7 @@
fetch.type hg
hg.url http://uru.zrax.net/hg/plasmaclient
-hg.tag 9b0fa8db3071
+hg.tag 3f95126dda88
# Decompress these into MO:ULa data dir
#http://stashbox.org/919902/python.zip
Modified: trunk/dports/games/PlasmaClient/files/PlasmaClient.in
===================================================================
--- trunk/dports/games/PlasmaClient/files/PlasmaClient.in 2010-09-28 11:47:18 UTC (rev 71955)
+++ trunk/dports/games/PlasmaClient/files/PlasmaClient.in 2010-09-28 12:38:56 UTC (rev 71956)
@@ -19,9 +19,16 @@
usage
fi
-cd "@PREFIX@/share/mystonline/data"
+LOGDIR="@PREFIX@/var/log/PlasmaClient"
+KEEPLOGS=10
+cd "${LOGDIR}"
+ls PlasmaClient.*.log 2>/dev/null | sort -n -r | sed "1,$((${KEEPLOGS} - 1))d" | xargs rm -f
-LOGFILE="@PREFIX@/var/log/PlasmaClient/PlasmaClient.$(date '+%s').log"
-echo "Logging to $LOGFILE"
+LOGFILE="PlasmaClient.$(date '+%s').log"
+LOGLINK="PlasmaClient.log"
+rm -f "${LOGDIR}/${LOGLINK}"
+ln -s "${LOGFILE}" "${LOGDIR}/${LOGLINK}"
+echo "Logging to ${LOGDIR}/${LOGFILE}"
-"@PREFIX@/bin/PlasmaClient" "$USERNAME" "$PASSWORD" > "$LOGFILE" 2>&1
+cd "@PREFIX@/share/mystonline/data"
+"@PREFIX@/bin/PlasmaClient" "${USERNAME}" "${PASSWORD}" > "${LOGDIR}/${LOGFILE}" 2>&1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100928/066dbb43/attachment.html>
More information about the macports-changes
mailing list