Changeset 71956


Ignore:
Timestamp:
Sep 28, 2010, 12:38:56 PM (10 years ago)
Author:
ryandesign@…
Message:

PlasmaClient: update to 239, and now keep at most 10 log files

Location:
trunk/dports/games/PlasmaClient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/games/PlasmaClient/Portfile

    r71905 r71956  
    66
    77name                        PlasmaClient
    8 version                     0.0-233
    9 revision                    2
     8version                     0.0-239
    109categories                  games
    1110platforms                   darwin
     
    2423fetch.type                  hg
    2524hg.url                      http://uru.zrax.net/hg/plasmaclient
    26 hg.tag                      9b0fa8db3071
     25hg.tag                      3f95126dda88
    2726
    2827# Decompress these into MO:ULa data dir
  • trunk/dports/games/PlasmaClient/files/PlasmaClient.in

    r71881 r71956  
    2020fi
    2121
     22LOGDIR="@PREFIX@/var/log/PlasmaClient"
     23KEEPLOGS=10
     24cd "${LOGDIR}"
     25ls PlasmaClient.*.log 2>/dev/null | sort -n -r | sed "1,$((${KEEPLOGS} - 1))d" | xargs rm -f
     26
     27LOGFILE="PlasmaClient.$(date '+%s').log"
     28LOGLINK="PlasmaClient.log"
     29rm -f "${LOGDIR}/${LOGLINK}"
     30ln -s "${LOGFILE}" "${LOGDIR}/${LOGLINK}"
     31echo "Logging to ${LOGDIR}/${LOGFILE}"
     32
    2233cd "@PREFIX@/share/mystonline/data"
    23 
    24 LOGFILE="@PREFIX@/var/log/PlasmaClient/PlasmaClient.$(date '+%s').log"
    25 echo "Logging to $LOGFILE"
    26 
    27 "@PREFIX@/bin/PlasmaClient" "$USERNAME" "$PASSWORD" > "$LOGFILE" 2>&1
     34"@PREFIX@/bin/PlasmaClient" "${USERNAME}" "${PASSWORD}" > "${LOGDIR}/${LOGFILE}" 2>&1
Note: See TracChangeset for help on using the changeset viewer.