mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
546 B

  1. #! /bin/bash
  2. dmake > test.txt 2>&1
  3. LNDIR="`sed -n test.txt -e"s,ERROR: [a-zA-Z0-9 ]* /[^/]*/[^/]*\(.*\),\1,gp"`"
  4. LN2DIR="`echo $LNDIR | sed -n -e"s,/[^/]*,/..,gp"`"
  5. IDLC="`grep test.txt -e"idlc: compile"`"
  6. while [ "$IDLC" != "" ];
  7. do
  8. echo \"$LNDIR\" \"$LN2DIR\" \"$IDLC\"
  9. ln -svf ./$LN2DIR/solver/645/unxlngi4.pro/bin/idlcpp ./$LNDIR/idlcpp
  10. dmake > test.txt 2>&1
  11. LNDIR="`sed -n test.txt -e"s,ERROR: [a-zA-Z0-9 ]* /[^/]*/[^/]*\(.*\),\1,gp"`"
  12. LN2DIR="`echo $LNDIR | sed -n -e"s,/[^/]*,/..,gp"`"
  13. IDLC="`grep test.txt -e"idlc: compile"`"
  14. done