Mercurial > forge
view admin/diacritical @ 12698:1a348ee9a848 octave-forge
checking for netcdf4 support
author | abarth93 |
---|---|
date | Wed, 02 Dec 2015 09:22:02 +0000 |
parents | d67370d6665d |
children |
line wrap: on
line source
#!/bin/bash #powered by Jorge Barros de Abreu under GPL #ficmatin01 at solar dot com dot br #this script needs "sed" and "mktemp" command and #translate the common diacritical marks to the texinfo #format. ARQ_TMP='mktemp' if [ $# = 0 ] #testa se nao existe parametro then echo -e "\n\tScript for diacritical marks in texinfo" echo -e "\n\tThis script needs "sed" and "mktemp" command" echo -e "\n\tand translate the common diacritical marks to" echo -e "\n\tthe texinfo format and needs to be adjusted for" echo -e "\n\tyour language." echo -e "\n\tThe script base is the structure /�/s/�/@'e/g." echo -e "\n\t 1 1 2" echo echo -e "\n\tUp to 1 is the character like is typed in OpenOffice" echo -e "\n\tUp to 2 is the same character in texinfo format." echo echo -e "\tusage: $0 file.texi" echo -e "\tthe output overwrite file.texi itself" echo exit 1 fi cat $1 | sed "/�/s/�/@'e/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@'a/g" > $1 cat $1 | sed "/�/s/�/@,{c}/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@~a/g" > $1 cat $1 | sed "/�/s/�/@'A/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@\`a/g" > $1 cat $1 | sed "/�/s/�/@\`A/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@'E/g" > $1 cat $1 | sed "/�/s/�/@'I/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@'u/g" > $1 cat $1 | sed "/�/s/�/@'U/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@,{C}/g" > $1 cat $1 | sed "/�/s/�/@~o/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@~O/g" > $1 cat $1 | sed "/�/s/�/@\"u/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@\"U/g" > $1 cat $1 | sed "/�/s/�/@~A/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@'o/g" > $1 cat $1 | sed "/�/s/�/@^E/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@^e/g" > $1 cat $1 | sed "/�/s/�/@'i/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@^e/g" > $1 cat $1 | sed "/�/s/�/@^o/g" > $ARQ_TMP cat $ARQ_TMP | sed "/�/s/�/@^O/g" > $1 rm $ARQ_TMP