source: Xerces/config/pretty-make @ 831

Last change on this file since 831 was 721, checked in by lindanl, 9 years ago

Add the original Xerces code (version 3.1.1)

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1#!/bin/sh
2#
3# Licensed to the Apache Software Foundation (ASF) under one or more
4# contributor license agreements.  See the NOTICE file distributed with
5# this work for additional information regarding copyright ownership.
6# The ASF licenses this file to You under the Apache License, Version 2.0
7# (the "License"); you may not use this file except in compliance with
8# the License.  You may obtain a copy of the License at
9#
10#      http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18
19#
20#       pretty-make
21#
22#       This script helps in pretty-printing of build commands.
23#       We invoke it via overridden rules in Makefile.am
24#
25# $Id: pretty-make 904065 2010-01-28 12:31:53Z borisk $
26#
27
28# Grab the action (what we're doing)
29action=$1
30shift
31
32# Grab the original command
33cmd=$@
34
35# Try to find the name of the file we're building. This is fraught with
36# problems, and may not be reliable across all compilers. Given the
37# dependencies, this is usually the last argument, but sometimes libtool
38# adds additional flags, which throws this off. So we look
39# for the last arg that doesn't start with - or + (HP aCC style).
40while [ $# -gt 0 ]; do
41        case ${1} in
42        -*)
43                ;;
44        +*)
45                ;;
46        *)
47                target=$1
48                ;;
49        esac
50        shift
51done
52
53# Notify user of the action, and what it's operating on
54echo $action $target
55
56# Be verbose if requested
57[ ${VERBOSE} ] && echo $cmd
58
59# Execute the original command
60$cmd
Note: See TracBrowser for help on using the repository browser.