<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/bin/sh -- # -*- perl -*-
eval 'exec perl -pi.Array.$$ -S $0 ${1+"$@"}'
             if 0;

# $Id: Array.pl 80826 2008-03-04 14:51:23Z wotte $

#
# After the 4.6.10 release the template instantiations for ACE_Array
# have changed, the class is implemented in terms of ACE_Array_Base;
# this script fixes the template instantiations if needed.
#
# It changes instantiations of:
#
# ACE_Array&lt;T&gt;
#
# into:
#
# ACE_Array&lt;T&gt;
# ACE_Array_Base&lt;T&gt;
#

# Notice the use of the -pi options: the while(&lt;&gt;) loop is implicit,
# printing the current line is also implicit as well as fixing the
# file in place.

if (m/template class\s+ACE_Array\s*&lt;(.*)&gt;\s*;\s*/) {
    print "template class ACE_Array_Base&lt;", $1, "&gt;;\n";
} elsif (m/#pragma instantiate\s+ACE_Array\s*&lt;(.*)&gt;\s*$/) {
    print "#pragma instantiate ACE_Array_Base&lt;", $1, "&gt;\n";
}

</pre></body></html>