pack.sh 411 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash

NEWEST_FILE="`ls -1 -t htdocs/js/MochiKit/*.js | head -n1`"
PACKED_FILE="htdocs/js/MochiKit/Packed.js"

if [ ! -e ${PACKED_FILE} ] || [ ${PACKED_FILE} -ot ${NEWEST_FILE} ]; then
    echo "Packing MochiKit ..."
    python scripts/pack.py Base Async DOM Style Color Signal Iter Logging Position Visual DragAndDrop Format > ${PACKED_FILE}
else
    echo "MochiKit packed version already up to date"
fi