#
# See README-fixinc for more information.
#
-# fixincludes copyright (c) 1998, 1999, 2000, 2002
+# fixincludes copyright (c) 1998, 1999, 2000, 2002, 2009
# The Free Software Foundation, Inc.
#
# fixincludes is free software.
#
# You may redistribute it and/or modify it under the terms of the
# GNU General Public License, as published by the Free Software
-# Foundation; either version 2, or (at your option) any later version.
+# Foundation; either version 3, or (at your option) any later version.
#
# fixincludes is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with fixincludes. See the file "COPYING". If not,
-# write to: The Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
+# along with fixincludes; see the file COPYING3. If not see
+# <http://www.gnu.org/licenses/>.
#
# # # # # # # # # # # # # # # # # # # # #
# Make sure it exists.
if [ ! -d $LIB ]; then
- mkdir $LIB || {
+ mkdir -p $LIB || {
echo fixincludes: output dir '`'$LIB"' cannot be created"
exit 1
}
LINKS=false
fi
+# # # # # # # # # # # # # # # # # # # # #
+#
+# Check to see if the machine_name fix needs to be disabled.
+#
+# On some platforms, machine_name doesn't work properly and
+# breaks some of the header files. Since everything works
+# properly without it, just wipe the macro list to
+# disable the fix.
+
+case "${target_canonical}" in
+ *-*-vxworks*)
+ test -f ${MACRO_LIST} && echo > ${MACRO_LIST}
+ ;;
+esac
+
+
# # # # # # # # # # # # # # # # # # # # #
#
# In the file macro_list are listed all the predefined
mkdir $component >/dev/null 2>&1
cd $component
dirmade=$dirmade/$component
- dirname=`echo $dirname | sed -e 's|[^/]*/||'`
+ dirname=`echo $dirname | sed -e 's|[^/]*//*||'`
done
fi