File: config.sdefault

package info (click to toggle)
gnat-glade 2006-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,056 kB
  • ctags: 20
  • sloc: ada: 28,261; sh: 2,888; makefile: 627; ansic: 2
file content (18 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# we use temporary file to workaround a bug under Windows-NT. MKS
# toolkit as a problem with \a (found in \adalib) which is transformed
# by ^G.

gnatls -v $* | \
   sed -e '1,/Object Search Path/ d' | grep -v 'Current_Directory' > tmp1
sed -e 's,\\,/,g' tmp1 > tmp2
for i in `cat tmp2`; do
  if [ -f ${i}libgnat.a ]; then
    LIBGNAT_DIR=${i}
    break
  fi
done
rm tmp1 tmp2

echo "${LIBGNAT_DIR}" | sed 's,^[a-zA-Z]:,,;s,\\,/,g'
exit 0