[go: up one dir, main page]

File: iconf_flib

package info (click to toggle)
ifeffit 2%3A1.2.11d-9.1
  • links: PTS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd
  • size: 12,444 kB
  • ctags: 6,492
  • sloc: fortran: 35,441; ansic: 8,454; makefile: 4,815; python: 3,274; perl: 3,146; sh: 2,721; ada: 1,003; tcl: 95
file content (25 lines) | stat: -rwxr-xr-x 416 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# shell script to fix mis-ordered FLIBS on linux
inp=$1
l1=''
l2=''

## echo '### INP ' $inp
for d in $inp; do
###   echo '>>> ' $d
#         echo $l2 | grep -q "\\$d" >&/dev/null
#	 if [ $? -ne 0 ]; then  l2="$l2 $d" ; fi
#         echo ' -L  ' $l2
  case "$d" in
    -l*.o) 
         ;;
    -l*)  
         l1="$l1 $d" 
         ;;
    -L*)  
         l2="$l2 $d"  
         ;;
  esac
done

echo $l2 $l1