Blame build-aux/depcomp

rpm-build 0a0c83
#! /bin/sh
rpm-build 0a0c83
# depcomp - compile a program generating dependencies as side-effects
rpm-build 0a0c83
rpm-build 0a0c83
scriptversion=2016-01-11.22; # UTC
rpm-build 0a0c83
rpm-build 0a0c83
# Copyright (C) 1999-2017 Free Software Foundation, Inc.
rpm-build 0a0c83
rpm-build 0a0c83
# This program is free software; you can redistribute it and/or modify
rpm-build 0a0c83
# it under the terms of the GNU General Public License as published by
rpm-build 0a0c83
# the Free Software Foundation; either version 2, or (at your option)
rpm-build 0a0c83
# any later version.
rpm-build 0a0c83
rpm-build 0a0c83
# This program is distributed in the hope that it will be useful,
rpm-build 0a0c83
# but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 0a0c83
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
rpm-build 0a0c83
# GNU General Public License for more details.
rpm-build 0a0c83
rpm-build 0a0c83
# You should have received a copy of the GNU General Public License
rpm-build 0a0c83
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
rpm-build 0a0c83
rpm-build 0a0c83
# As a special exception to the GNU General Public License, if you
rpm-build 0a0c83
# distribute this file as part of a program that contains a
rpm-build 0a0c83
# configuration script generated by Autoconf, you may include it under
rpm-build 0a0c83
# the same distribution terms that you use for the rest of that program.
rpm-build 0a0c83
rpm-build 0a0c83
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
rpm-build 0a0c83
rpm-build 0a0c83
case $1 in
rpm-build 0a0c83
  '')
rpm-build 0a0c83
    echo "$0: No command.  Try '$0 --help' for more information." 1>&2
rpm-build 0a0c83
    exit 1;
rpm-build 0a0c83
    ;;
rpm-build 0a0c83
  -h | --h*)
rpm-build 0a0c83
    cat <<\EOF
rpm-build 0a0c83
Usage: depcomp [--help] [--version] PROGRAM [ARGS]
rpm-build 0a0c83
rpm-build 0a0c83
Run PROGRAMS ARGS to compile a file, generating dependencies
rpm-build 0a0c83
as side-effects.
rpm-build 0a0c83
rpm-build 0a0c83
Environment variables:
rpm-build 0a0c83
  depmode     Dependency tracking mode.
rpm-build 0a0c83
  source      Source file read by 'PROGRAMS ARGS'.
rpm-build 0a0c83
  object      Object file output by 'PROGRAMS ARGS'.
rpm-build 0a0c83
  DEPDIR      directory where to store dependencies.
rpm-build 0a0c83
  depfile     Dependency file to output.
rpm-build 0a0c83
  tmpdepfile  Temporary file to use when outputting dependencies.
rpm-build 0a0c83
  libtool     Whether libtool is used (yes/no).
rpm-build 0a0c83
rpm-build 0a0c83
Report bugs to <bug-automake@gnu.org>.
rpm-build 0a0c83
EOF
rpm-build 0a0c83
    exit $?
rpm-build 0a0c83
    ;;
rpm-build 0a0c83
  -v | --v*)
rpm-build 0a0c83
    echo "depcomp $scriptversion"
rpm-build 0a0c83
    exit $?
rpm-build 0a0c83
    ;;
rpm-build 0a0c83
esac
rpm-build 0a0c83
rpm-build 0a0c83
# Get the directory component of the given path, and save it in the
rpm-build 0a0c83
# global variables '$dir'.  Note that this directory component will
rpm-build 0a0c83
# be either empty or ending with a '/' character.  This is deliberate.
rpm-build 0a0c83
set_dir_from ()
rpm-build 0a0c83
{
rpm-build 0a0c83
  case $1 in
rpm-build 0a0c83
    */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
rpm-build 0a0c83
      *) dir=;;
rpm-build 0a0c83
  esac
rpm-build 0a0c83
}
rpm-build 0a0c83
rpm-build 0a0c83
# Get the suffix-stripped basename of the given path, and save it the
rpm-build 0a0c83
# global variable '$base'.
rpm-build 0a0c83
set_base_from ()
rpm-build 0a0c83
{
rpm-build 0a0c83
  base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
rpm-build 0a0c83
}
rpm-build 0a0c83
rpm-build 0a0c83
# If no dependency file was actually created by the compiler invocation,
rpm-build 0a0c83
# we still have to create a dummy depfile, to avoid errors with the
rpm-build 0a0c83
# Makefile "include basename.Plo" scheme.
rpm-build 0a0c83
make_dummy_depfile ()
rpm-build 0a0c83
{
rpm-build 0a0c83
  echo "#dummy" > "$depfile"
rpm-build 0a0c83
}
rpm-build 0a0c83
rpm-build 0a0c83
# Factor out some common post-processing of the generated depfile.
rpm-build 0a0c83
# Requires the auxiliary global variable '$tmpdepfile' to be set.
rpm-build 0a0c83
aix_post_process_depfile ()
rpm-build 0a0c83
{
rpm-build 0a0c83
  # If the compiler actually managed to produce a dependency file,
rpm-build 0a0c83
  # post-process it.
rpm-build 0a0c83
  if test -f "$tmpdepfile"; then
rpm-build 0a0c83
    # Each line is of the form 'foo.o: dependency.h'.
rpm-build 0a0c83
    # Do two passes, one to just change these to
rpm-build 0a0c83
    #   $object: dependency.h
rpm-build 0a0c83
    # and one to simply output
rpm-build 0a0c83
    #   dependency.h:
rpm-build 0a0c83
    # which is needed to avoid the deleted-header problem.
rpm-build 0a0c83
    { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
rpm-build 0a0c83
      sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
rpm-build 0a0c83
    } > "$depfile"
rpm-build 0a0c83
    rm -f "$tmpdepfile"
rpm-build 0a0c83
  else
rpm-build 0a0c83
    make_dummy_depfile
rpm-build 0a0c83
  fi
rpm-build 0a0c83
}
rpm-build 0a0c83
rpm-build 0a0c83
# A tabulation character.
rpm-build 0a0c83
tab='	'
rpm-build 0a0c83
# A newline character.
rpm-build 0a0c83
nl='
rpm-build 0a0c83
'
rpm-build 0a0c83
# Character ranges might be problematic outside the C locale.
rpm-build 0a0c83
# These definitions help.
rpm-build 0a0c83
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
rpm-build 0a0c83
lower=abcdefghijklmnopqrstuvwxyz
rpm-build 0a0c83
digits=0123456789
rpm-build 0a0c83
alpha=${upper}${lower}
rpm-build 0a0c83
rpm-build 0a0c83
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
rpm-build 0a0c83
  echo "depcomp: Variables source, object and depmode must be set" 1>&2
rpm-build 0a0c83
  exit 1
rpm-build 0a0c83
fi
rpm-build 0a0c83
rpm-build 0a0c83
# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
rpm-build 0a0c83
depfile=${depfile-`echo "$object" |
rpm-build 0a0c83
  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
rpm-build 0a0c83
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
rpm-build 0a0c83
rpm-build 0a0c83
rm -f "$tmpdepfile"
rpm-build 0a0c83
rpm-build 0a0c83
# Avoid interferences from the environment.
rpm-build 0a0c83
gccflag= dashmflag=
rpm-build 0a0c83
rpm-build 0a0c83
# Some modes work just like other modes, but use different flags.  We
rpm-build 0a0c83
# parameterize here, but still list the modes in the big case below,
rpm-build 0a0c83
# to make depend.m4 easier to write.  Note that we *cannot* use a case
rpm-build 0a0c83
# here, because this file can only contain one case statement.
rpm-build 0a0c83
if test "$depmode" = hp; then
rpm-build 0a0c83
  # HP compiler uses -M and no extra arg.
rpm-build 0a0c83
  gccflag=-M
rpm-build 0a0c83
  depmode=gcc
rpm-build 0a0c83
fi
rpm-build 0a0c83
rpm-build 0a0c83
if test "$depmode" = dashXmstdout; then
rpm-build 0a0c83
  # This is just like dashmstdout with a different argument.
rpm-build 0a0c83
  dashmflag=-xM
rpm-build 0a0c83
  depmode=dashmstdout
rpm-build 0a0c83
fi
rpm-build 0a0c83
rpm-build 0a0c83
cygpath_u="cygpath -u -f -"
rpm-build 0a0c83
if test "$depmode" = msvcmsys; then
rpm-build 0a0c83
  # This is just like msvisualcpp but w/o cygpath translation.
rpm-build 0a0c83
  # Just convert the backslash-escaped backslashes to single forward
rpm-build 0a0c83
  # slashes to satisfy depend.m4
rpm-build 0a0c83
  cygpath_u='sed s,\\\\,/,g'
rpm-build 0a0c83
  depmode=msvisualcpp
rpm-build 0a0c83
fi
rpm-build 0a0c83
rpm-build 0a0c83
if test "$depmode" = msvc7msys; then
rpm-build 0a0c83
  # This is just like msvc7 but w/o cygpath translation.
rpm-build 0a0c83
  # Just convert the backslash-escaped backslashes to single forward
rpm-build 0a0c83
  # slashes to satisfy depend.m4
rpm-build 0a0c83
  cygpath_u='sed s,\\\\,/,g'
rpm-build 0a0c83
  depmode=msvc7
rpm-build 0a0c83
fi
rpm-build 0a0c83
rpm-build 0a0c83
if test "$depmode" = xlc; then
rpm-build 0a0c83
  # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
rpm-build 0a0c83
  gccflag=-qmakedep=gcc,-MF
rpm-build 0a0c83
  depmode=gcc
rpm-build 0a0c83
fi
rpm-build 0a0c83
rpm-build 0a0c83
case "$depmode" in
rpm-build 0a0c83
gcc3)
rpm-build 0a0c83
## gcc 3 implements dependency tracking that does exactly what
rpm-build 0a0c83
## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
rpm-build 0a0c83
## it if -MD -MP comes after the -MF stuff.  Hmm.
rpm-build 0a0c83
## Unfortunately, FreeBSD c89 acceptance of flags depends upon
rpm-build 0a0c83
## the command line argument order; so add the flags where they
rpm-build 0a0c83
## appear in depend2.am.  Note that the slowdown incurred here
rpm-build 0a0c83
## affects only configure: in makefiles, %FASTDEP% shortcuts this.
rpm-build 0a0c83
  for arg
rpm-build 0a0c83
  do
rpm-build 0a0c83
    case $arg in
rpm-build 0a0c83
    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
rpm-build 0a0c83
    *)  set fnord "$@" "$arg" ;;
rpm-build 0a0c83
    esac
rpm-build 0a0c83
    shift # fnord
rpm-build 0a0c83
    shift # $arg
rpm-build 0a0c83
  done
rpm-build 0a0c83
  "$@"
rpm-build 0a0c83
  stat=$?
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
    rm -f "$tmpdepfile"
rpm-build 0a0c83
    exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  mv "$tmpdepfile" "$depfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
gcc)
rpm-build 0a0c83
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
rpm-build 0a0c83
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
rpm-build 0a0c83
## (see the conditional assignment to $gccflag above).
rpm-build 0a0c83
## There are various ways to get dependency output from gcc.  Here's
rpm-build 0a0c83
## why we pick this rather obscure method:
rpm-build 0a0c83
## - Don't want to use -MD because we'd like the dependencies to end
rpm-build 0a0c83
##   up in a subdir.  Having to rename by hand is ugly.
rpm-build 0a0c83
##   (We might end up doing this anyway to support other compilers.)
rpm-build 0a0c83
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
rpm-build 0a0c83
##   -MM, not -M (despite what the docs say).  Also, it might not be
rpm-build 0a0c83
##   supported by the other compilers which use the 'gcc' depmode.
rpm-build 0a0c83
## - Using -M directly means running the compiler twice (even worse
rpm-build 0a0c83
##   than renaming).
rpm-build 0a0c83
  if test -z "$gccflag"; then
rpm-build 0a0c83
    gccflag=-MD,
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  "$@" -Wp,"$gccflag$tmpdepfile"
rpm-build 0a0c83
  stat=$?
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
    rm -f "$tmpdepfile"
rpm-build 0a0c83
    exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
  echo "$object : \\" > "$depfile"
rpm-build 0a0c83
  # The second -e expression handles DOS-style file names with drive
rpm-build 0a0c83
  # letters.
rpm-build 0a0c83
  sed -e 's/^[^:]*: / /' \
rpm-build 0a0c83
      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
rpm-build 0a0c83
## This next piece of magic avoids the "deleted header file" problem.
rpm-build 0a0c83
## The problem is that when a header file which appears in a .P file
rpm-build 0a0c83
## is deleted, the dependency causes make to die (because there is
rpm-build 0a0c83
## typically no way to rebuild the header).  We avoid this by adding
rpm-build 0a0c83
## dummy dependencies for each header file.  Too bad gcc doesn't do
rpm-build 0a0c83
## this for us directly.
rpm-build 0a0c83
## Some versions of gcc put a space before the ':'.  On the theory
rpm-build 0a0c83
## that the space means something, we add a space to the output as
rpm-build 0a0c83
## well.  hp depmode also adds that space, but also prefixes the VPATH
rpm-build 0a0c83
## to the object.  Take care to not repeat it in the output.
rpm-build 0a0c83
## Some versions of the HPUX 10.20 sed can't process this invocation
rpm-build 0a0c83
## correctly.  Breaking it into two sed invocations is a workaround.
rpm-build 0a0c83
  tr ' ' "$nl" < "$tmpdepfile" \
rpm-build 0a0c83
    | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
rpm-build 0a0c83
    | sed -e 's/$/ :/' >> "$depfile"
rpm-build 0a0c83
  rm -f "$tmpdepfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
hp)
rpm-build 0a0c83
  # This case exists only to let depend.m4 do its work.  It works by
rpm-build 0a0c83
  # looking at the text of this script.  This case will never be run,
rpm-build 0a0c83
  # since it is checked for above.
rpm-build 0a0c83
  exit 1
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
sgi)
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    "$@" "-Wp,-MDupdate,$tmpdepfile"
rpm-build 0a0c83
  else
rpm-build 0a0c83
    "$@" -MDupdate "$tmpdepfile"
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  stat=$?
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
    rm -f "$tmpdepfile"
rpm-build 0a0c83
    exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
rpm-build 0a0c83
  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
rpm-build 0a0c83
    echo "$object : \\" > "$depfile"
rpm-build 0a0c83
    # Clip off the initial element (the dependent).  Don't try to be
rpm-build 0a0c83
    # clever and replace this with sed code, as IRIX sed won't handle
rpm-build 0a0c83
    # lines with more than a fixed number of characters (4096 in
rpm-build 0a0c83
    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
rpm-build 0a0c83
    # the IRIX cc adds comments like '#:fec' to the end of the
rpm-build 0a0c83
    # dependency line.
rpm-build 0a0c83
    tr ' ' "$nl" < "$tmpdepfile" \
rpm-build 0a0c83
      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
rpm-build 0a0c83
      | tr "$nl" ' ' >> "$depfile"
rpm-build 0a0c83
    echo >> "$depfile"
rpm-build 0a0c83
    # The second pass generates a dummy entry for each header file.
rpm-build 0a0c83
    tr ' ' "$nl" < "$tmpdepfile" \
rpm-build 0a0c83
      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
rpm-build 0a0c83
      >> "$depfile"
rpm-build 0a0c83
  else
rpm-build 0a0c83
    make_dummy_depfile
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  rm -f "$tmpdepfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
xlc)
rpm-build 0a0c83
  # This case exists only to let depend.m4 do its work.  It works by
rpm-build 0a0c83
  # looking at the text of this script.  This case will never be run,
rpm-build 0a0c83
  # since it is checked for above.
rpm-build 0a0c83
  exit 1
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
aix)
rpm-build 0a0c83
  # The C for AIX Compiler uses -M and outputs the dependencies
rpm-build 0a0c83
  # in a .u file.  In older versions, this file always lives in the
rpm-build 0a0c83
  # current directory.  Also, the AIX compiler puts '$object:' at the
rpm-build 0a0c83
  # start of each line; $object doesn't have directory information.
rpm-build 0a0c83
  # Version 6 uses the directory in both cases.
rpm-build 0a0c83
  set_dir_from "$object"
rpm-build 0a0c83
  set_base_from "$object"
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    tmpdepfile1=$dir$base.u
rpm-build 0a0c83
    tmpdepfile2=$base.u
rpm-build 0a0c83
    tmpdepfile3=$dir.libs/$base.u
rpm-build 0a0c83
    "$@" -Wc,-M
rpm-build 0a0c83
  else
rpm-build 0a0c83
    tmpdepfile1=$dir$base.u
rpm-build 0a0c83
    tmpdepfile2=$dir$base.u
rpm-build 0a0c83
    tmpdepfile3=$dir$base.u
rpm-build 0a0c83
    "$@" -M
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  stat=$?
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
rpm-build 0a0c83
    exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
rpm-build 0a0c83
  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
rpm-build 0a0c83
  do
rpm-build 0a0c83
    test -f "$tmpdepfile" && break
rpm-build 0a0c83
  done
rpm-build 0a0c83
  aix_post_process_depfile
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
tcc)
rpm-build 0a0c83
  # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
rpm-build 0a0c83
  # FIXME: That version still under development at the moment of writing.
rpm-build 0a0c83
  #        Make that this statement remains true also for stable, released
rpm-build 0a0c83
  #        versions.
rpm-build 0a0c83
  # It will wrap lines (doesn't matter whether long or short) with a
rpm-build 0a0c83
  # trailing '\', as in:
rpm-build 0a0c83
  #
rpm-build 0a0c83
  #   foo.o : \
rpm-build 0a0c83
  #    foo.c \
rpm-build 0a0c83
  #    foo.h \
rpm-build 0a0c83
  #
rpm-build 0a0c83
  # It will put a trailing '\' even on the last line, and will use leading
rpm-build 0a0c83
  # spaces rather than leading tabs (at least since its commit 0394caf7
rpm-build 0a0c83
  # "Emit spaces for -MD").
rpm-build 0a0c83
  "$@" -MD -MF "$tmpdepfile"
rpm-build 0a0c83
  stat=$?
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
    rm -f "$tmpdepfile"
rpm-build 0a0c83
    exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
  # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
rpm-build 0a0c83
  # We have to change lines of the first kind to '$object: \'.
rpm-build 0a0c83
  sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
rpm-build 0a0c83
  # And for each line of the second kind, we have to emit a 'dep.h:'
rpm-build 0a0c83
  # dummy dependency, to avoid the deleted-header problem.
rpm-build 0a0c83
  sed -n -e 's|^  *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
rpm-build 0a0c83
  rm -f "$tmpdepfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
## The order of this option in the case statement is important, since the
rpm-build 0a0c83
## shell code in configure will try each of these formats in the order
rpm-build 0a0c83
## listed in this file.  A plain '-MD' option would be understood by many
rpm-build 0a0c83
## compilers, so we must ensure this comes after the gcc and icc options.
rpm-build 0a0c83
pgcc)
rpm-build 0a0c83
  # Portland's C compiler understands '-MD'.
rpm-build 0a0c83
  # Will always output deps to 'file.d' where file is the root name of the
rpm-build 0a0c83
  # source file under compilation, even if file resides in a subdirectory.
rpm-build 0a0c83
  # The object file name does not affect the name of the '.d' file.
rpm-build 0a0c83
  # pgcc 10.2 will output
rpm-build 0a0c83
  #    foo.o: sub/foo.c sub/foo.h
rpm-build 0a0c83
  # and will wrap long lines using '\' :
rpm-build 0a0c83
  #    foo.o: sub/foo.c ... \
rpm-build 0a0c83
  #     sub/foo.h ... \
rpm-build 0a0c83
  #     ...
rpm-build 0a0c83
  set_dir_from "$object"
rpm-build 0a0c83
  # Use the source, not the object, to determine the base name, since
rpm-build 0a0c83
  # that's sadly what pgcc will do too.
rpm-build 0a0c83
  set_base_from "$source"
rpm-build 0a0c83
  tmpdepfile=$base.d
rpm-build 0a0c83
rpm-build 0a0c83
  # For projects that build the same source file twice into different object
rpm-build 0a0c83
  # files, the pgcc approach of using the *source* file root name can cause
rpm-build 0a0c83
  # problems in parallel builds.  Use a locking strategy to avoid stomping on
rpm-build 0a0c83
  # the same $tmpdepfile.
rpm-build 0a0c83
  lockdir=$base.d-lock
rpm-build 0a0c83
  trap "
rpm-build 0a0c83
    echo '$0: caught signal, cleaning up...' >&2
rpm-build 0a0c83
    rmdir '$lockdir'
rpm-build 0a0c83
    exit 1
rpm-build 0a0c83
  " 1 2 13 15
rpm-build 0a0c83
  numtries=100
rpm-build 0a0c83
  i=$numtries
rpm-build 0a0c83
  while test $i -gt 0; do
rpm-build 0a0c83
    # mkdir is a portable test-and-set.
rpm-build 0a0c83
    if mkdir "$lockdir" 2>/dev/null; then
rpm-build 0a0c83
      # This process acquired the lock.
rpm-build 0a0c83
      "$@" -MD
rpm-build 0a0c83
      stat=$?
rpm-build 0a0c83
      # Release the lock.
rpm-build 0a0c83
      rmdir "$lockdir"
rpm-build 0a0c83
      break
rpm-build 0a0c83
    else
rpm-build 0a0c83
      # If the lock is being held by a different process, wait
rpm-build 0a0c83
      # until the winning process is done or we timeout.
rpm-build 0a0c83
      while test -d "$lockdir" && test $i -gt 0; do
rpm-build 0a0c83
        sleep 1
rpm-build 0a0c83
        i=`expr $i - 1`
rpm-build 0a0c83
      done
rpm-build 0a0c83
    fi
rpm-build 0a0c83
    i=`expr $i - 1`
rpm-build 0a0c83
  done
rpm-build 0a0c83
  trap - 1 2 13 15
rpm-build 0a0c83
  if test $i -le 0; then
rpm-build 0a0c83
    echo "$0: failed to acquire lock after $numtries attempts" >&2
rpm-build 0a0c83
    echo "$0: check lockdir '$lockdir'" >&2
rpm-build 0a0c83
    exit 1
rpm-build 0a0c83
  fi
rpm-build 0a0c83
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
    rm -f "$tmpdepfile"
rpm-build 0a0c83
    exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
  # Each line is of the form `foo.o: dependent.h',
rpm-build 0a0c83
  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
rpm-build 0a0c83
  # Do two passes, one to just change these to
rpm-build 0a0c83
  # `$object: dependent.h' and one to simply `dependent.h:'.
rpm-build 0a0c83
  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
rpm-build 0a0c83
  # Some versions of the HPUX 10.20 sed can't process this invocation
rpm-build 0a0c83
  # correctly.  Breaking it into two sed invocations is a workaround.
rpm-build 0a0c83
  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
rpm-build 0a0c83
    | sed -e 's/$/ :/' >> "$depfile"
rpm-build 0a0c83
  rm -f "$tmpdepfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
hp2)
rpm-build 0a0c83
  # The "hp" stanza above does not work with aCC (C++) and HP's ia64
rpm-build 0a0c83
  # compilers, which have integrated preprocessors.  The correct option
rpm-build 0a0c83
  # to use with these is +Maked; it writes dependencies to a file named
rpm-build 0a0c83
  # 'foo.d', which lands next to the object file, wherever that
rpm-build 0a0c83
  # happens to be.
rpm-build 0a0c83
  # Much of this is similar to the tru64 case; see comments there.
rpm-build 0a0c83
  set_dir_from  "$object"
rpm-build 0a0c83
  set_base_from "$object"
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    tmpdepfile1=$dir$base.d
rpm-build 0a0c83
    tmpdepfile2=$dir.libs/$base.d
rpm-build 0a0c83
    "$@" -Wc,+Maked
rpm-build 0a0c83
  else
rpm-build 0a0c83
    tmpdepfile1=$dir$base.d
rpm-build 0a0c83
    tmpdepfile2=$dir$base.d
rpm-build 0a0c83
    "$@" +Maked
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  stat=$?
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
     rm -f "$tmpdepfile1" "$tmpdepfile2"
rpm-build 0a0c83
     exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
rpm-build 0a0c83
  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
rpm-build 0a0c83
  do
rpm-build 0a0c83
    test -f "$tmpdepfile" && break
rpm-build 0a0c83
  done
rpm-build 0a0c83
  if test -f "$tmpdepfile"; then
rpm-build 0a0c83
    sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
rpm-build 0a0c83
    # Add 'dependent.h:' lines.
rpm-build 0a0c83
    sed -ne '2,${
rpm-build 0a0c83
               s/^ *//
rpm-build 0a0c83
               s/ \\*$//
rpm-build 0a0c83
               s/$/:/
rpm-build 0a0c83
               p
rpm-build 0a0c83
             }' "$tmpdepfile" >> "$depfile"
rpm-build 0a0c83
  else
rpm-build 0a0c83
    make_dummy_depfile
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  rm -f "$tmpdepfile" "$tmpdepfile2"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
tru64)
rpm-build 0a0c83
  # The Tru64 compiler uses -MD to generate dependencies as a side
rpm-build 0a0c83
  # effect.  'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
rpm-build 0a0c83
  # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
rpm-build 0a0c83
  # dependencies in 'foo.d' instead, so we check for that too.
rpm-build 0a0c83
  # Subdirectories are respected.
rpm-build 0a0c83
  set_dir_from  "$object"
rpm-build 0a0c83
  set_base_from "$object"
rpm-build 0a0c83
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    # Libtool generates 2 separate objects for the 2 libraries.  These
rpm-build 0a0c83
    # two compilations output dependencies in $dir.libs/$base.o.d and
rpm-build 0a0c83
    # in $dir$base.o.d.  We have to check for both files, because
rpm-build 0a0c83
    # one of the two compilations can be disabled.  We should prefer
rpm-build 0a0c83
    # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
rpm-build 0a0c83
    # automatically cleaned when .libs/ is deleted, while ignoring
rpm-build 0a0c83
    # the former would cause a distcleancheck panic.
rpm-build 0a0c83
    tmpdepfile1=$dir$base.o.d          # libtool 1.5
rpm-build 0a0c83
    tmpdepfile2=$dir.libs/$base.o.d    # Likewise.
rpm-build 0a0c83
    tmpdepfile3=$dir.libs/$base.d      # Compaq CCC V6.2-504
rpm-build 0a0c83
    "$@" -Wc,-MD
rpm-build 0a0c83
  else
rpm-build 0a0c83
    tmpdepfile1=$dir$base.d
rpm-build 0a0c83
    tmpdepfile2=$dir$base.d
rpm-build 0a0c83
    tmpdepfile3=$dir$base.d
rpm-build 0a0c83
    "$@" -MD
rpm-build 0a0c83
  fi
rpm-build 0a0c83
rpm-build 0a0c83
  stat=$?
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
rpm-build 0a0c83
    exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
rpm-build 0a0c83
  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
rpm-build 0a0c83
  do
rpm-build 0a0c83
    test -f "$tmpdepfile" && break
rpm-build 0a0c83
  done
rpm-build 0a0c83
  # Same post-processing that is required for AIX mode.
rpm-build 0a0c83
  aix_post_process_depfile
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
msvc7)
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    showIncludes=-Wc,-showIncludes
rpm-build 0a0c83
  else
rpm-build 0a0c83
    showIncludes=-showIncludes
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  "$@" $showIncludes > "$tmpdepfile"
rpm-build 0a0c83
  stat=$?
rpm-build 0a0c83
  grep -v '^Note: including file: ' "$tmpdepfile"
rpm-build 0a0c83
  if test $stat -ne 0; then
rpm-build 0a0c83
    rm -f "$tmpdepfile"
rpm-build 0a0c83
    exit $stat
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
  echo "$object : \\" > "$depfile"
rpm-build 0a0c83
  # The first sed program below extracts the file names and escapes
rpm-build 0a0c83
  # backslashes for cygpath.  The second sed program outputs the file
rpm-build 0a0c83
  # name when reading, but also accumulates all include files in the
rpm-build 0a0c83
  # hold buffer in order to output them again at the end.  This only
rpm-build 0a0c83
  # works with sed implementations that can handle large buffers.
rpm-build 0a0c83
  sed < "$tmpdepfile" -n '
rpm-build 0a0c83
/^Note: including file:  *\(.*\)/ {
rpm-build 0a0c83
  s//\1/
rpm-build 0a0c83
  s/\\/\\\\/g
rpm-build 0a0c83
  p
rpm-build 0a0c83
}' | $cygpath_u | sort -u | sed -n '
rpm-build 0a0c83
s/ /\\ /g
rpm-build 0a0c83
s/\(.*\)/'"$tab"'\1 \\/p
rpm-build 0a0c83
s/.\(.*\) \\/\1:/
rpm-build 0a0c83
H
rpm-build 0a0c83
$ {
rpm-build 0a0c83
  s/.*/'"$tab"'/
rpm-build 0a0c83
  G
rpm-build 0a0c83
  p
rpm-build 0a0c83
}' >> "$depfile"
rpm-build 0a0c83
  echo >> "$depfile" # make sure the fragment doesn't end with a backslash
rpm-build 0a0c83
  rm -f "$tmpdepfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
msvc7msys)
rpm-build 0a0c83
  # This case exists only to let depend.m4 do its work.  It works by
rpm-build 0a0c83
  # looking at the text of this script.  This case will never be run,
rpm-build 0a0c83
  # since it is checked for above.
rpm-build 0a0c83
  exit 1
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
#nosideeffect)
rpm-build 0a0c83
  # This comment above is used by automake to tell side-effect
rpm-build 0a0c83
  # dependency tracking mechanisms from slower ones.
rpm-build 0a0c83
rpm-build 0a0c83
dashmstdout)
rpm-build 0a0c83
  # Important note: in order to support this mode, a compiler *must*
rpm-build 0a0c83
  # always write the preprocessed file to stdout, regardless of -o.
rpm-build 0a0c83
  "$@" || exit $?
rpm-build 0a0c83
rpm-build 0a0c83
  # Remove the call to Libtool.
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    while test "X$1" != 'X--mode=compile'; do
rpm-build 0a0c83
      shift
rpm-build 0a0c83
    done
rpm-build 0a0c83
    shift
rpm-build 0a0c83
  fi
rpm-build 0a0c83
rpm-build 0a0c83
  # Remove '-o $object'.
rpm-build 0a0c83
  IFS=" "
rpm-build 0a0c83
  for arg
rpm-build 0a0c83
  do
rpm-build 0a0c83
    case $arg in
rpm-build 0a0c83
    -o)
rpm-build 0a0c83
      shift
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    $object)
rpm-build 0a0c83
      shift
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    *)
rpm-build 0a0c83
      set fnord "$@" "$arg"
rpm-build 0a0c83
      shift # fnord
rpm-build 0a0c83
      shift # $arg
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    esac
rpm-build 0a0c83
  done
rpm-build 0a0c83
rpm-build 0a0c83
  test -z "$dashmflag" && dashmflag=-M
rpm-build 0a0c83
  # Require at least two characters before searching for ':'
rpm-build 0a0c83
  # in the target name.  This is to cope with DOS-style filenames:
rpm-build 0a0c83
  # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
rpm-build 0a0c83
  "$@" $dashmflag |
rpm-build 0a0c83
    sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
  cat < "$tmpdepfile" > "$depfile"
rpm-build 0a0c83
  # Some versions of the HPUX 10.20 sed can't process this sed invocation
rpm-build 0a0c83
  # correctly.  Breaking it into two sed invocations is a workaround.
rpm-build 0a0c83
  tr ' ' "$nl" < "$tmpdepfile" \
rpm-build 0a0c83
    | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
rpm-build 0a0c83
    | sed -e 's/$/ :/' >> "$depfile"
rpm-build 0a0c83
  rm -f "$tmpdepfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
dashXmstdout)
rpm-build 0a0c83
  # This case only exists to satisfy depend.m4.  It is never actually
rpm-build 0a0c83
  # run, as this mode is specially recognized in the preamble.
rpm-build 0a0c83
  exit 1
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
makedepend)
rpm-build 0a0c83
  "$@" || exit $?
rpm-build 0a0c83
  # Remove any Libtool call
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    while test "X$1" != 'X--mode=compile'; do
rpm-build 0a0c83
      shift
rpm-build 0a0c83
    done
rpm-build 0a0c83
    shift
rpm-build 0a0c83
  fi
rpm-build 0a0c83
  # X makedepend
rpm-build 0a0c83
  shift
rpm-build 0a0c83
  cleared=no eat=no
rpm-build 0a0c83
  for arg
rpm-build 0a0c83
  do
rpm-build 0a0c83
    case $cleared in
rpm-build 0a0c83
    no)
rpm-build 0a0c83
      set ""; shift
rpm-build 0a0c83
      cleared=yes ;;
rpm-build 0a0c83
    esac
rpm-build 0a0c83
    if test $eat = yes; then
rpm-build 0a0c83
      eat=no
rpm-build 0a0c83
      continue
rpm-build 0a0c83
    fi
rpm-build 0a0c83
    case "$arg" in
rpm-build 0a0c83
    -D*|-I*)
rpm-build 0a0c83
      set fnord "$@" "$arg"; shift ;;
rpm-build 0a0c83
    # Strip any option that makedepend may not understand.  Remove
rpm-build 0a0c83
    # the object too, otherwise makedepend will parse it as a source file.
rpm-build 0a0c83
    -arch)
rpm-build 0a0c83
      eat=yes ;;
rpm-build 0a0c83
    -*|$object)
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    *)
rpm-build 0a0c83
      set fnord "$@" "$arg"; shift ;;
rpm-build 0a0c83
    esac
rpm-build 0a0c83
  done
rpm-build 0a0c83
  obj_suffix=`echo "$object" | sed 's/^.*\././'`
rpm-build 0a0c83
  touch "$tmpdepfile"
rpm-build 0a0c83
  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
  # makedepend may prepend the VPATH from the source file name to the object.
rpm-build 0a0c83
  # No need to regex-escape $object, excess matching of '.' is harmless.
rpm-build 0a0c83
  sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
rpm-build 0a0c83
  # Some versions of the HPUX 10.20 sed can't process the last invocation
rpm-build 0a0c83
  # correctly.  Breaking it into two sed invocations is a workaround.
rpm-build 0a0c83
  sed '1,2d' "$tmpdepfile" \
rpm-build 0a0c83
    | tr ' ' "$nl" \
rpm-build 0a0c83
    | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
rpm-build 0a0c83
    | sed -e 's/$/ :/' >> "$depfile"
rpm-build 0a0c83
  rm -f "$tmpdepfile" "$tmpdepfile".bak
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
cpp)
rpm-build 0a0c83
  # Important note: in order to support this mode, a compiler *must*
rpm-build 0a0c83
  # always write the preprocessed file to stdout.
rpm-build 0a0c83
  "$@" || exit $?
rpm-build 0a0c83
rpm-build 0a0c83
  # Remove the call to Libtool.
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    while test "X$1" != 'X--mode=compile'; do
rpm-build 0a0c83
      shift
rpm-build 0a0c83
    done
rpm-build 0a0c83
    shift
rpm-build 0a0c83
  fi
rpm-build 0a0c83
rpm-build 0a0c83
  # Remove '-o $object'.
rpm-build 0a0c83
  IFS=" "
rpm-build 0a0c83
  for arg
rpm-build 0a0c83
  do
rpm-build 0a0c83
    case $arg in
rpm-build 0a0c83
    -o)
rpm-build 0a0c83
      shift
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    $object)
rpm-build 0a0c83
      shift
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    *)
rpm-build 0a0c83
      set fnord "$@" "$arg"
rpm-build 0a0c83
      shift # fnord
rpm-build 0a0c83
      shift # $arg
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    esac
rpm-build 0a0c83
  done
rpm-build 0a0c83
rpm-build 0a0c83
  "$@" -E \
rpm-build 0a0c83
    | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
rpm-build 0a0c83
             -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
rpm-build 0a0c83
    | sed '$ s: \\$::' > "$tmpdepfile"
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
  echo "$object : \\" > "$depfile"
rpm-build 0a0c83
  cat < "$tmpdepfile" >> "$depfile"
rpm-build 0a0c83
  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
rpm-build 0a0c83
  rm -f "$tmpdepfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
msvisualcpp)
rpm-build 0a0c83
  # Important note: in order to support this mode, a compiler *must*
rpm-build 0a0c83
  # always write the preprocessed file to stdout.
rpm-build 0a0c83
  "$@" || exit $?
rpm-build 0a0c83
rpm-build 0a0c83
  # Remove the call to Libtool.
rpm-build 0a0c83
  if test "$libtool" = yes; then
rpm-build 0a0c83
    while test "X$1" != 'X--mode=compile'; do
rpm-build 0a0c83
      shift
rpm-build 0a0c83
    done
rpm-build 0a0c83
    shift
rpm-build 0a0c83
  fi
rpm-build 0a0c83
rpm-build 0a0c83
  IFS=" "
rpm-build 0a0c83
  for arg
rpm-build 0a0c83
  do
rpm-build 0a0c83
    case "$arg" in
rpm-build 0a0c83
    -o)
rpm-build 0a0c83
      shift
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    $object)
rpm-build 0a0c83
      shift
rpm-build 0a0c83
      ;;
rpm-build 0a0c83
    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
rpm-build 0a0c83
        set fnord "$@"
rpm-build 0a0c83
        shift
rpm-build 0a0c83
        shift
rpm-build 0a0c83
        ;;
rpm-build 0a0c83
    *)
rpm-build 0a0c83
        set fnord "$@" "$arg"
rpm-build 0a0c83
        shift
rpm-build 0a0c83
        shift
rpm-build 0a0c83
        ;;
rpm-build 0a0c83
    esac
rpm-build 0a0c83
  done
rpm-build 0a0c83
  "$@" -E 2>/dev/null |
rpm-build 0a0c83
  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
rpm-build 0a0c83
  rm -f "$depfile"
rpm-build 0a0c83
  echo "$object : \\" > "$depfile"
rpm-build 0a0c83
  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
rpm-build 0a0c83
  echo "$tab" >> "$depfile"
rpm-build 0a0c83
  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
rpm-build 0a0c83
  rm -f "$tmpdepfile"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
msvcmsys)
rpm-build 0a0c83
  # This case exists only to let depend.m4 do its work.  It works by
rpm-build 0a0c83
  # looking at the text of this script.  This case will never be run,
rpm-build 0a0c83
  # since it is checked for above.
rpm-build 0a0c83
  exit 1
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
none)
rpm-build 0a0c83
  exec "$@"
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
rpm-build 0a0c83
*)
rpm-build 0a0c83
  echo "Unknown depmode $depmode" 1>&2
rpm-build 0a0c83
  exit 1
rpm-build 0a0c83
  ;;
rpm-build 0a0c83
esac
rpm-build 0a0c83
rpm-build 0a0c83
exit 0
rpm-build 0a0c83
rpm-build 0a0c83
# Local Variables:
rpm-build 0a0c83
# mode: shell-script
rpm-build 0a0c83
# sh-indentation: 2
rpm-build 0a0c83
# eval: (add-hook 'write-file-hooks 'time-stamp)
rpm-build 0a0c83
# time-stamp-start: "scriptversion="
rpm-build 0a0c83
# time-stamp-format: "%:y-%02m-%02d.%02H"
rpm-build 0a0c83
# time-stamp-time-zone: "UTC0"
rpm-build 0a0c83
# time-stamp-end: "; # UTC"
rpm-build 0a0c83
# End: