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

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