home *** CD-ROM | disk | FTP | other *** search
- /*
- * Maximus V2.x + V3.x
- * Aus Filearea.ctl Areas mit files.bbs fuer mxutil.cfg generieren.
- *
- * Einzutragen sind die gewuenschten Dateinamen fuer
- * Ein- und Ausgabe (infile und outfile).
- *
- * Areas mit Zugriffslevel 'Sysop' werden irgnoriert.
- */
-
-
- infile="filearea.ctl"
- outfile="mxutil.cfg"
-
-
- CLS
- SAY'MxArea'
- SAY'-----------------------------------------------------------------------------'
- SAY''
- SAY'Erstelle: ' outfile ' aus: ' infile
-
-
- CALL RxFuncAdd 'SysLoadFuncs','Rexxutil','SysLoadFuncs'
- CALL SysLoadFuncs
-
- dload = ' '
- fbbs = ' '
-
- do while lines(infile) > 0
- parse upper value linein(infile) with zeile
- zeile = Translate(zeile,' ',d2c(09))
-
- if word(zeile,1) = "DOWNLOAD" then dload=word(zeile,2)
- if word(zeile,1) = "FILELIST" then fbbs=word(zeile,2)
- if word(zeile,1) = "ACS" then zugriff=word(zeile,2)
-
- if word(zeile,1) = "END " then do
- if left(zugriff,5) <> "SYSOP" then do
- i=length(dload)
- if substr(dload,i,1) <> '\' then dload=insert(dload,'\')
-
- if fbbs = ' ' then fbbs=insert(dload,'FILES.BBS')
-
- call lineout(outfile), "HD A" dload||" " fbbs
- dload = ' '
- fbbs = ' '
- end
- end
- end
-
- SAY''
- SAY'Das war`s ...'
-