openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit ec3f2e4904f0faec5871c3bed0d788ed397e641f
parent 2dcf0296a865de03ded1be2c037415d661fe4326
Author: dankert <devnull@localhost>
Date:   Sat, 20 Nov 2004 11:27:19 +0100

*** empty log message ***

Diffstat:
doc/examples/maintenance/sort-lang.sh | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/doc/examples/maintenance/sort-lang.sh b/doc/examples/maintenance/sort-lang.sh @@ -0,0 +1,24 @@ +#!/bin/sh +# Sorting the language file in alphabetic order + +if [ ! -f $1 ]; then + echo "" + echo "usage: $0 <filename>" + echo "" + echo "This script is sorting a Openrat language file in alphabetic order." + echo "Just give it the filename of the language file." + echo "" + exit +fi + +if [ ! -w $1 ]; then + echo "$1 is not writable" + exit +fi + +cp $1 $1.orig + +cat $1.orig|grep "^;" > $1 +cat $1.orig|grep "^;" -v|sort >> $1 + +