File: generate_scl

package info (click to toggle)
babel 0.10.2-1
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 43,932 kB
  • ctags: 29,707
  • sloc: java: 74,695; ansic: 73,142; cpp: 40,649; sh: 18,411; f90: 10,062; fortran: 6,727; python: 6,406; makefile: 3,866; xml: 118; perl: 48
file content (22 lines) | stat: -rwxr-xr-x 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# generate_scl scl_file library_file <multiple IOR files>
#
# scl_file	usually libImpl.scl (simple filename -- no path information)
# library_file	usually the full path to the libtool .la file
#		(e.g., `pwd`/libImpl.la )

scl_file=$1
shift
library_file=$1
shift
rm -f $scl_file
cat <<EOF >$scl_file
<?xml version="1.0" ?>
<scl>
  <library uri="$library_file" scope="local" resolution="lazy" >
EOF
grep __set_epv $* /dev/null | awk 'BEGIN {FS=":"} { print $1}' | sort -u | sed -e 's/_IOR.c//g' -e 's/_/./g' | awk ' { printf "    <class name=\"%s\" desc=\"ior/impl\" />\n", $1 }' >>$scl_file
cat <<"EOF2" >>$scl_file
  </library>
</scl>