Changeset 745


Ignore:
Timestamp:
Jul 29, 2010, 11:09:56 AM (13 years ago)
Author:
duh
Message:

added documentation

Location:
misc/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • misc/scripts/minify_if_changed.sh

    r744 r745  
    11#!/bin/sh
     2#
     3# This script creates a minified version of a javascript or css
     4# file if the minified version should be updated (or created).
     5#
     6# Usage: ./minify_if_changed <input file> [option]
     7#       - input file    : the non minified js / css file to be
     8#                         minified
     9#       - option        : optional argument. If set, the minified
     10#                         version will only be created if a
     11#                         minified version already exists
     12#
     13# Example:
     14# ./minify_if_changed /path/to/my.js    A minified version will
     15#                                       be created if a previous
     16#                                       minified version differs
     17#                                       or does not exist.
     18# ./minify_if_changed /path/to/my.js 1  A minified version will
     19#                                       only be created if a
     20#                                       previous version differs.
     21#                                       If it does not exist a
     22#                                       minified version will not
     23#                                       be created
     24#
     25# @Author       Jeroen Wesbeek <J****n.W******@gmail.com>
     26# @Since        20100729
     27#
     28# Revision Information:
     29# $Author$
     30# $Date$
     31# $Rev$
     32
    233SOURCE=$1
    334ONLY_IF_MINIFIED_ALREADY_EXISTS=$2
  • misc/scripts/reload_apache.sh

    r744 r745  
    88# Use a cronjob as root:
    99# * * * * * /root/script/reload_apache /home/tomcat/reload_apache 2>&1
     10#
     11# @Author       Jeroen Wesbeek <J****n.W******@gmail.com>
     12# @Since        20100729
     13#
     14# Revision Information:
     15# $Author$
     16# $Date$
     17# $Rev$
     18
    1019STAMP=`date +'%Y%m%d%H%M'`
    1120
Note: See TracChangeset for help on using the changeset viewer.