home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / lwlib / energize / fidget-widget < prev    next >
Encoding:
Text File  |  1995-06-10  |  570 b   |  23 lines

  1. #!/bin/sh
  2. #  fidget-widget modifies the output of XDesigner.
  3. #  the creation function returns widget1 and does not create the parent.
  4. #  marc + matthieu
  5.  
  6. NAME=$2
  7. FILE=$1
  8. case $FILE in
  9.   *ctreebr_ps.xdc|*classbr_ps.xdc|*leb_psheet.xdc) filter="grep -v Offset" ;;
  10.   *) filter=cat ;;
  11. esac
  12. sed "
  13.     /^\*\* Generated by / a\\
  14.     ** Modified by fidget-widget, `date +%d-%h-%y`
  15.     /Widget widget0/d
  16.     /^create_widget0/s//Widget $NAME/
  17.     /int h_spacing/s//short h_spacing/
  18.     /widget0 =/d
  19.     /widget1 =/s/widget0/parent/
  20.     /^}/i\\
  21.     return widget1;
  22.     " $FILE | $filter
  23.