: # prc2ascii # uses dcabe to convert all processing tables to un-encrypted ascii. # uses terminfo for special keys, so should work on any (configured) terminal # written and tested by running from a menu # NOTE: This copy is formatted to work on Linux but is UNTESTED with # either filePro for SCO Unix on Linux, or filePro for Linux on Linux # This may only work with SCO Unix versions of filepro, running on # Linux via iBCS2. The native Linux version of filePro might have slightly # different behaviour than the SCO Unix version, and I do not have a copy of # the native Linux filePro to test on. This is only tested with: # filePro 4.08.09 for SCO Unix, running on SCO Open Server 5.0.5, using the # stock /bin/sh for the shell. It may work with earlier versions although there # already are a few versions of a script out there that worked on all versions # from 4.01 up to but not including 4.08. # # usage: place in /usr/appl/fp, then add this entry to the menu "util": #10 ---------------------------------------------------------------------------- # Aó Convert all programs to ASCII ó # /fp/prc2ascii ó # Converts all processing tables to ascii ó # # run from the menu, otherwise you have to make sure the environment is # duplicated at the command line (TERM, TERMCAP, possibly others) # # Brian K. White - linut@squonk.net # -- # Brian K. White http://www.squonk.net/users/linut # +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++. # filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani # YOU MUST EXAMINE THESE VARIABLES BEFORE RUNNING #SAVEKEY=`tput kf12` ;export SAVEKEY # F12 - save key (Albany Burner Control) SAVEKEY="\033\033" ;export SAVEKEY # Esc Esc - save key (default) INSLKEY=`tput kf3` ;export INSLKEY # F3 - insert line key #PFDIR=/usr/appl ;export PFDIR # allow to fall through from parent #PFPROG=/usr/appl ;export PFPROG # allow to fall through from parent ############################################################################# PFME=OFF; export PFME # yes PFME affects dcabe. ABE=ASCII; export ABE cd ${PFDIR}/filepro echo -e "\nConverting all processing tables to ascii..." for PFNAME in * ;do echo -e "\n${PFNAME}" cd ${PFNAME} if test -f prc.* ;then for PRCFILE in `ls prc.*` ;do PRCNAME=`echo ${PRCFILE} | sed 's/prc.//'` echo " ${PRCNAME}" export PFNAME echo -en "3${PRCNAME}\r${INSLKEY}\r\rA(1);A(1) 'prc2ascii${SAVEKEY}\rYNNX" | ${PFDIR}/fp/dcabe >/dev/null 2>&1 cp -f ${PRCFILE} prc.prc2ascii-${PRCNAME} cat prc.prc2ascii-${PRCNAME} |grep -v prc2ascii >${PRCFILE} rm -f prc.prc2ascii-${PRCNAME} done fi cd .. done echo -e "\nDone."