zsh-workers
 help / color / mirror / code / Atom feed
From: Meryem Aqallal <aqallal@eurecom.fr>
To: zsh-workers@math.gatech.edu
Subject: Help me  please
Date: Fri, 24 Nov 95 10:17:38 +0100	[thread overview]
Message-ID: <9511240917.AA04753@eurecom.cica.fr> (raw)

----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Content-Lines: 12

Hello,
I am just beginning in programming in zsh
And I am in a hurry to correct that programme . It is not long at all but I have a lot a syntax problems 
Please, if anyone is a professionnal, try to send an e-mail correcting my programme.
I have to give it back to my teacher in one day!!!!
Thank you very much
meryem

My e-mail: aqallal@eurecom.cica.fr

My programme is an attachement
I am waiting for your answer very soon
----------
X-Sun-Data-Type: default-app
X-Sun-Data-Description: default
X-Sun-Data-Name: programme_miseajour
X-Sun-Content-Lines: 169


#! /bin/csh

if [-z /home/digital/gen_dig.wrd] then
do
        mail  adresse de monsieur digital < /web/bin/fichier_erreur
else
do
cp /home/digital/gen_dig.wrd /tmp
word2html /tmp/gen_dig.wrd /tmp/gen_dig.html
cp /gen_dig.html /web/htdocs/FRANCAIS/MEMBRES/digital/generalites.html
mail adresse de monsieur digital < /web/bin/fichier_erreur
fax .........



#!/bin/sh
cd /home
for x in `ls /home/*/gen*`
do
        cp $x /tmp/$x
        word2html /tmp/$x /tmp/$x.html
        mv *.wrd.html *.html
done
--------------------------------------------------------------------------------------------------------------------------------------------------------------
#!/bin/sh
for (x in 'ls /web/members/*/' )
do 
       if (ls /web/members/*/MAJ-PUT= )
       then break
       else
       do      *2html /web/members/*/MAJ-PUT/*New.* >*New.html
               creation *New.html > *tmp.html

               case $MAJ in
               OK do case (*tmp.html) in

			   		 E_Cont_tmp.html cp E_Cont_tmp.html /web/htdocs/ENGLISH/MEMBERS/$x/contacts.html
                     F_Cont_tmp.html cp F_Cont_tmp.html /web/htdocs/FRANCAIS/MEMBERS/$x/contacts.html
                     E_Voc_tmp.html cp E_Voc_tmp.html /web/htdocs/ENGLISH/MEMBERS/$x/vocation.html
                  
                     
                     mv /web/members/*/MAJ-GET/*New.* /web/members/*/MAJ-GET/*Old.*
                     mv /web/members/*/MAJ-GET/*New.* /web/members/*/MAJ-PUT/*New.*
                     cp /web/bin/MAJ-OK /web/members/$x/MAJ-GET

                         case (/web/members/$x) in
                         digital mail digital@... <web/bin/fichier_mail
                         aerospatial mail aerospatial@
                         ibm   mail ibm@...
                         ascom mail ascom@
                         e\
##############################################################################################################################################################
#!/bin/zsh

PREHTML2HTML=/bin/creation
RTF2HTML=/bin/rtf2html
MIF2HTML=/bin/mif2html
WDPERFECT2HTML=/bin/wordperfect2html
INFO2HTML=/web/httpd/tools/info2html.pl

MAJ=(OK BAD)

MEMBRES=(ascom ibm aerospat amadeus andersen att_gis att_para bay_netw cad cannes cica cisco com_x digital etsi eurecom fsa ft_dgsa ft_dr g_canal  inria insys  istar  jce marben  nice  omt  questel saem sat sii  sita  syseca telis theseus  ti  vlsi)

for membre in $MEMBRES 
	do 
	if ls ~$membre/MAJ-PUT
	then
		do
		for f in $(Convertit-pre-html $membre)
		Convertit-html-final  $f
		done
	fi
	done

function Convertit-pre-html
	{
	membre=$1
	for fichier in $(ls ~$membre/MAJ-PUT)
	do
	mv $fichier /tmp/$fichier-$$
	fichier=/tmp/$fichier-$$
	nom=$(fichier%.*)
	format=$(fichier#*.)
	case $format in
		.rtf) if $RTF2HTML $fichier>$nom.prehtml
			then 
				echo $nom.prehtml
			else
				err "La conversion de votre fichier est ratee. Veuillez verifier la syntaxe"
		      fi

		.mif) if $MIF2HTML $fichier>$nom.prehtml
			then 
				echo $nom.prehtml
			else
				err "La coversion de votre fichier est ratee. Veuillez verifier la syntaxe"
		      fi

		.txt) if $INFO2HTML $fichier>$nom.prehtml
			then 

				echo $nom.prehtml
			else
				err "La conversion de votre fichier est ratee. Veuillez verifier la syntaxe"
		      fi
		.gif) if tester si nom contien F ou E
			mv ~$membre/MAJ-PUT/$nom.$format /web/htdocs/F ou E/MEMBRES/$membre/

		.*) err "Le format de votre fichier est inconnu. Veuillez lui donner le bon format"
	
	esac
	done
}

function err
	{
	msg_err=$1
	membre=$2
	echo $msg_err >>fichi_log
	echo $msg_err >>~$membre/MAJ-GET
	}

function Convertit-html-final
	{ 
	NomFin=$(f%.*)
 	PREHTML2HTML $NomFin>$NomFin.html
 	if $MAJ 
	then
	  
		case $NomFin.html in 
		E_Cont_New.html) do 
		mv $NomFin.html /web/htdocs/ENGLISH/MEMBRES/$membre/Contacts.html
		done

		F_Cont_New.html) do
		mv $NomFin.html /web/htdocs/FRANCAIS/MEMBRES/$membre/Contacts.html
		done
		
gh		E_Voc_New.html) do
		mv $NomFin.html /web/htdocs/ENGLISH/MEMBRES/$membre/Vocation.html
		done
		
		F_Voc_New.html) do
		mv $NomFin.html /web/htdocs/FRANCAIS/MEMBRES/$membre/Vocation.html
		done

		E_Act_New.html) do 
		mv $NomFin.html /web/htdocs/ENGLISH/MEMBRES/$membre/Activites.html
		done

		
		F_Act_New.html) do 
		mv $NomFin.html /web/htdocs/FRANCAIS/MEMBRES/$membre/Activites.html
		done

		mv ~$membre/MAJ-GET/New .$format  ~$membre/MAJ-GET/Old.$format
		mv ~$membre/MAJ-PUT/New.$format   ~$membre/MAJ-GET/New.$format
		mail
		err "La mise a jour de votre fichier a marche. Consultez le resultat sur le web"

	else

	





                 reply	other threads:[~1995-11-24  9:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9511240917.AA04753@eurecom.cica.fr \
    --to=aqallal@eurecom.fr \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).