topical media & game development

talk show tell print

show-image-create.sh / sh



  #!/bin/sh
  name=$1;
  if [ ! -f $1.cfg ]; then
  D=local/present/create
  F=`ls D/*.jpg`;
  echo "<script type=text/javascript>" > $1.cfg
  echo "var site = new Array();" >> $1.cfg
  echo "var i=0;" >> $1.cfg
  for x in F; do
  echo "site[i++]=\"x\";" >> $1.cfg 
  done;
  echo "</script>" >> $1.cfg
  fi;
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.