Blame build-aux/depcomp

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