#!/bin/bash # # Usage create-doctypes-json.sh {library-directory-root} # e.g. create-doctypes-json.sh /sl/SLSync/library/standard LIBDIR=$1 function usage(){ if [ "$1" != "" ]; then echo $1 fi echo "Usage: create-doctypes-json.sh {library-directory-root}" exit 1 } if [ ! -d "${LIBDIR}" ]; then usage "library-directory-root is required" fi GEN=`date +"%Y-%m-%dT%H:%M:%S"` SRC=`hostname` cat <