summaryrefslogtreecommitdiff
path: root/libstdc++-v3/mkcshadow
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@gcc.gnu.org>2000-05-15 06:38:55 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2000-05-15 06:38:55 +0000
commit6ad50467e7f1435c23fe69ce862f439752e716fa (patch)
tree2f96630b49fd08493ccd814cd3759e75736da0c6 /libstdc++-v3/mkcshadow
parent1888228d165d3658fee720c79bebfb7db0fa45f1 (diff)
downloadgcc-6ad50467e7f1435c23fe69ce862f439752e716fa.tar.gz
mkcshadow: build in more-correct directory...
* mkcshadow: build in more-correct directory, create cshadow/ directory if needed, report progress. 2000-05-14 LLeweLLyn Reese <llewelly@dbritsch.dsl.xmission.com> * src/Makefile.am: Fix tr commands. * src/Makefile.am: Remove references to [w]stringCTORDUPAL.[lo,cc] * src/string-inst.cc: Remove extra instantiation of S::basic_string(S::size_type, C, S::allocator_type const&); * src/string-inst.cc: Remove extra template keyword. 2000-05-14 Loren J. Rittle <ljrittle@acm.org> * config/bsd/bits/ctype_base.h: Add support for plain BSD4.4. * acinclude.m4 (GLIBCPP_CHECK_CTYPE): Enhance bsd tests. * aclocal.m4: Regenerate. * configure: Regenerate. * */Makefile.in: Regenerate. From-SVN: r33906
Diffstat (limited to 'libstdc++-v3/mkcshadow')
-rwxr-xr-xlibstdc++-v3/mkcshadow21
1 files changed, 13 insertions, 8 deletions
diff --git a/libstdc++-v3/mkcshadow b/libstdc++-v3/mkcshadow
index 277ecee98a2..b506f1dfeac 100755
--- a/libstdc++-v3/mkcshadow
+++ b/libstdc++-v3/mkcshadow
@@ -4,9 +4,17 @@
# from stdin, and creates shadow headers under cshadow/, except where
# a header of the same name is already in shadow/.
+SCRIPTDIR=${0%/*}
+
+if [ ! -d cshadow ]; then
+ echo "Creating cshadow."
+ mkdir cshadow
+fi
+
+echo "Creating..."
while read header; do
- if [ ! -f shadow/$header ]; then
+ if [ ! -f $SCRIPTDIR/shadow/$header ]; then
# strip off directory names while making
# any necessary directories
@@ -21,12 +29,13 @@ while read header; do
done
;;
esac
-
+
+ echo " cshadow/$header"
UPNAME=`echo $header | tr 'a-z./-' 'A-Z___'`
cat >"cshadow/$header" <<EOF
// -*- C++ -*- header wrapper.
-// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc.
+// Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -73,11 +82,7 @@ while read header; do
# endif /* _IN_C_SWAMP_ */
#endif /* _INCLUDED_CPP_${UPNAME}_ */
-
EOF
-
+#################### end ####################
fi
done
-
-
-