File: iconf_flib

package info (click to toggle)
ifeffit 1:1.3.0-3
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 13,652 kB
  • ctags: 7,237
  • sloc: fortran: 33,599; ansic: 26,405; sh: 7,184; makefile: 5,469; python: 3,273; perl: 3,146; tcl: 95
file content (20 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# shell script to fix mis-ordered FLIBS on linux
inp=$1
l1=''
l2=''
for d in $inp; do
  case "$d" in
    -l*.o) 
         ;;
    -l*) 
         echo $l1 | grep -q "\\$d" >&/dev/null
	 if [ $? -ne 0 ]; then  l1="$l1 $d" ; fi
         ;;
    -L*) 
         echo $l2 | grep -q "\\$d" >&/dev/null
	 if [ $? -ne 0 ]; then  l2="$l2 $d" ; fi
         ;;
  esac
done
echo $l2 $l1