anchor.diff:  # VERBOSE      = is set if the package was called with -v for verbose output
   function main() {
       set_install_dir
  +    unpack_payload
  +    create_symlinks
  +    run_post_install
   
  -    unpack_payload
  -    
  -    create_symlinks
  -    
  -    run_post_install
  -    
  -    log "Installation complete." 
  +    log "Installation complete."
   }
  -
   
   function set_install_dir(){
       # if INSTALL_ROOT isn't set by parsed args, use basename of package file with no extension
       DEFAULT_DIR=$(echo $(basename $0) | sed -e 's/\.[^\.]*$//')
       INSTALL_DIR=${INSTALL_ROOT:-$DEFAULT_DIR}
  +
       if [ -n $USE_RELEASE_DIRECTORY ] ; then
  +        RELEASE_ID=<%= release_id %>
           DATESTAMP=$(date +%Y%m%d%H%M%S)
  -        INSTALL_DIR="$INSTALL_DIR/releases/$DATESTAMP"
  +        INSTALL_DIR="$INSTALL_DIR/releases/${RELEASE_ID:-$DATESTAMP}"
       fi
   
       mkdir -p "$INSTALL_DIR" || die "Unable to create install directory $INSTALL_DIR"
   
       export INSTALL_DIR
  -    
  +
       log "Installing package to '$INSTALL_DIR'"
   }
   
  
positive.code:             -r)
                  USE_RELEASE_DIRECTORY=1
                  shift;;
  	    -i)
                  export INSTALL_ROOT="$2"
  		shift;;
              -v)
                  export VERBOSE=1
                  shift;;
              -h)
                  print_usage
  		exit 0
                  shift;;
              --)
                  shift; break;;
  
negative.code: function create_symlinks(){
      if [ -n $USE_RELEASE_DIRECTORY ] ; then
          export CURRENT_DIR="$INSTALL_ROOT/current"
          if [ -e "$CURRENT_DIR" ] ; then
              rm "$CURRENT_DIR"
          fi
          ln -s "$INSTALL_DIR" "$CURRENT_DIR"
          log "Symlinked '$INSTALL_DIR' to '$CURRENT_DIR'"
      fi
  }
  
  