nedit tips for SKILL

Discussion in 'Cadence' started by fogh, Nov 1, 2004.

  1. fogh

    fogh Guest

    Hi All,

    I tested the following script on mandrake 10.0 linux (GNU sed version
    4.0.9), It generates a calltips file called SKILL.tips for nedit >5.4
    from the cadence finder data.

    #!/bin/bash
    #
    #generate a "tips" file for the nirvana editor
    #from the cadence documentation "finder" files
    #

    orgwd=$(pwd)
    outfile=$orgwd/SKILL.tips
    icroot=/cds/ic51
    cd $icroot/doc/finder

    finderfiles=$(find . -name *.fnd)
    for f in $finderfiles ;do
    cat $f |\
    sed 's,^;\(.*\)$,*comment*\n\1\n,'|\
    sed -r 's,^\("([a-zA-Z0-9_]+)",\n\1,'|\
    sed '/^"/s///'|\
    sed '/"$/s///'|\
    sed '/")$/s///'
    done \
     
    fogh, Nov 1, 2004
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.