File:  [mozdev] / moji / source / mkver.sh
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Nov 1 14:38:41 2007 UTC (12 years ago) by gvogt
Branches: MAIN
CVS tags: moji-0-9-8, moji-0-9-7, moji-0-9-6, moji-0-9-5, moji-0-9-3, moji-0-9-2, moji-0-9-1, moji-0-9, HEAD
Added new shell scripts for install and to update the dicts.rdf
and index.html on the web server during install.
Moved mkver.sh into this directory.

#! /bin/sh

sed "s/%%%VERSION%%%/$2/" ${1%.*}-tmpl.${1##*.} > $1.tmp

if [ -e $1 ] ;  then
  if  diff -q $1 $1.tmp 2>&1 > /dev/null ; then
    rm $1.tmp 
  else
   mv $1.tmp $1
   echo $1 updated to version $2
  fi 
else
  mv $1.tmp $1
  echo $1 created as version $2
fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>