"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/reversion" between
exim-4.91.tar.xz and exim-4.92.tar.xz

About: Exim is a message transfer agent (MTA).

reversion  (exim-4.91.tar.xz):reversion  (exim-4.92.tar.xz)
skipping to change at line 32 skipping to change at line 32
fi fi
# Irix: # Irix:
_XPG=1 ; export _XPG _XPG=1 ; export _XPG
# #
exec "$SHELL" "$0" "$@" exec "$SHELL" "$0" "$@"
fi fi
# Read version information that was generated by a previous run of # Read version information that was generated by a previous run of
# this script, or during the release process. # this script, or during the release process.
if [ -f ./version.sh ] if [ -f ./version.sh ]; then
then . ./version.sh . ./version.sh
elif [ -f ../src/version.sh ] elif [ -f ../src/version.sh ]; then
then . ../src/version.sh . ../src/version.sh
fi elif [ -d ../../.git ] || [ -f ../../.git ] || [ "$1" = release ]; then
# Modify the output of git describe into separate parts for
# If this tree is a git working directory, use that to get version information. # the name "exim" and the release and variant versions.
# Put a dot in the version number and remove a spurious g.
if [ -d ../../.git ] || [ -f ../../.git ] || [ "$1" = "release" ] if [ "$2" ]
then then
# Modify the output of git describe into separate parts for description=$(git describe "$2")
# the name "exim" and the release and variant versions. else
# Put a dot in the version number and remove a spurious g. description=$(git describe --dirty=-XX --match 'exim-4*')
if [ "$2" ] fi
then set $(echo "$description" | sed 's/-/ /; s/-g/-/')
description=$(git describe "$2") # Only update if we need to
else if [ "$2 $3" != "$EXIM_RELEASE_VERSION $EXIM_VARIANT_VERSION" ]
description=$(git describe --dirty=-XX --match 'exim-4*') then
fi EXIM_RELEASE_VERSION="$2"
set $(echo "$description" | sed 's|-| |;s|_|.|;s|[-_]| _|;s|-g|-|') EXIM_VARIANT_VERSION="$3"
# Only update if we need to rm -f version.h
if [ "$2 $3" != "$EXIM_RELEASE_VERSION $EXIM_VARIANT_VERSION" ] fi
then else
EXIM_RELEASE_VERSION="$2" echo "Cannot determine the release number" >&2
EXIM_VARIANT_VERSION="$3" exit
rm -f version.h
fi
fi fi
# If you are maintaining a patched version of Exim, you can either # If you are maintaining a patched version of Exim, you can either
# create your own version.sh as part of your release process, or you # create your own version.sh as part of your release process, or you
# can modify EXIM_VARIANT_VERSION at this point in this script. # can modify EXIM_VARIANT_VERSION at this point in this script.
case "$EXIM_RELEASE_VERSION" in if test -z "$EXIM_RELEASE_VERSION"; then
'') echo "*** Your copy of Exim lacks any version information." echo "$0: Your copy of Exim lacks any version information." >&2
exit 1 exit 1
esac fi
EXIM_COMPILE_NUMBER=$(expr "${EXIM_COMPILE_NUMBER:-0}" + 1) EXIM_COMPILE_NUMBER=$(expr "${EXIM_COMPILE_NUMBER:-0}" + 1)
echo "$EXIM_COMPILE_NUMBER" >cnumber.h echo "$EXIM_COMPILE_NUMBER" >cnumber.h
# Reproducible builds, accept a build timestamp override from environ per # Reproducible builds, accept a build timestamp override from environ per
# <https://reproducible-builds.org/specs/source-date-epoch/>. # <https://reproducible-builds.org/specs/source-date-epoch/>.
# We require a fairly modern date(1) command here, which is not portable # We require a fairly modern date(1) command here, which is not portable
# to some of the systems Exim is built on. That's okay, because the scenarios # to some of the systems Exim is built on. That's okay, because the scenarios
# are: # are:
skipping to change at line 104 skipping to change at line 102
# more sense and the examples available use UTC without explicitly mandating # more sense and the examples available use UTC without explicitly mandating
# it. I think that we can switch behavior and use UTC for reproducible # it. I think that we can switch behavior and use UTC for reproducible
# builds without it causing any problems: nothing really cares about timezone. # builds without it causing any problems: nothing really cares about timezone.
# GNU date: "date -d @TS" # GNU date: "date -d @TS"
# BSD date: "date -r TS" # BSD date: "date -r TS"
exim_build_date_override="$(date -u -d "@${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/n ull || date -u -r "${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null)" exim_build_date_override="$(date -u -d "@${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/n ull || date -u -r "${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null)"
fi fi
( echo '# automatically generated file - see ../scripts/reversion' ( echo '# automatically generated file - see ../scripts/reversion'
echo EXIM_RELEASE_VERSION='"'"$EXIM_RELEASE_VERSION"'"' echo EXIM_RELEASE_VERSION='"'"$EXIM_RELEASE_VERSION"'"'
test -n "$EXIM_VARIANT_VERSION" && \
echo EXIM_VARIANT_VERSION='"'"$EXIM_VARIANT_VERSION"'"' echo EXIM_VARIANT_VERSION='"'"$EXIM_VARIANT_VERSION"'"'
echo EXIM_COMPILE_NUMBER='"'"$EXIM_COMPILE_NUMBER"'"' echo EXIM_COMPILE_NUMBER='"'"$EXIM_COMPILE_NUMBER"'"'
if [ ".${exim_build_date_override:-}" != "." ]; then if [ ".${exim_build_date_override:-}" != "." ]; then
echo EXIM_BUILD_DATE_OVERRIDE='"'"${exim_build_date_override}"'"' echo EXIM_BUILD_DATE_OVERRIDE='"'"${exim_build_date_override}"'"'
fi fi
) >version.sh ) >version.sh
if [ ! -f version.h ] if [ ! -f version.h ]
then then
( echo '/* automatically generated file - see ../scripts/reversion */' ( echo '/* automatically generated file - see ../scripts/reversion */'
echo '#define EXIM_RELEASE_VERSION "'"$EXIM_RELEASE_VERSION"'"' echo '#define EXIM_RELEASE_VERSION "'"$EXIM_RELEASE_VERSION"'"'
test -n "$EXIM_VARIANT_VERSION" && \
echo '#define EXIM_VARIANT_VERSION "'"$EXIM_VARIANT_VERSION"'"' echo '#define EXIM_VARIANT_VERSION "'"$EXIM_VARIANT_VERSION"'"'
echo '#define EXIM_VERSION_STR EXIM_RELEASE_VERSION EXIM_VARIANT_VERSION' echo '#ifdef EXIM_VARIANT_VERSION'
echo '#define EXIM_VERSION_STR EXIM_RELEASE_VERSION "-" EXIM_VARIANT_VERSION'
echo '#else'
echo '#define EXIM_VERSION_STR EXIM_RELEASE_VERSION'
echo '#endif'
if [ ".${exim_build_date_override:-}" != "." ]; then if [ ".${exim_build_date_override:-}" != "." ]; then
echo '#define EXIM_BUILD_DATE_OVERRIDE "'"${exim_build_date_override}"'"' echo '#define EXIM_BUILD_DATE_OVERRIDE "'"${exim_build_date_override}"'"'
fi fi
) >version.h ) >version.h
fi fi
echo ">>> version $EXIM_RELEASE_VERSION$EXIM_VARIANT_VERSION #$EXIM_COMPILE_NUMB ER" echo ">>> version $EXIM_RELEASE_VERSION $EXIM_VARIANT_VERSION #$EXIM_COMPILE_NUM BER"
echo echo
 End of changes. 6 change blocks. 
33 lines changed or deleted 37 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)