The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/scripts/merge-new-release.sh

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #!/bin/bash
    2 
    3 case $1 in
    4     v*-dts) ;;
    5     '')
    6         echo >&2 "No version given"
    7         exit 1
    8         ;;
    9     *)
   10         echo >&2 "Unexpected version: $1"
   11         exit 1
   12         ;;
   13 esac
   14 
   15 v=$1
   16 
   17 set -e
   18 
   19 # Use the date of Linus' originally tagged commit for the merge. This might
   20 # differ from what the commit that the rewritten tag points to, since the
   21 # orignal commit may have been discarded.
   22 export GIT_AUTHOR_DATE=$(git log -1 --format=%ad "${v%-dts}")
   23 if [ ! "${GIT_AUTHOR_DATE}" ] ; then
   24     echo >&2 "Unable to determine commit date for merge"
   25     exit 1
   26 fi
   27 if [ "${v}" = "v2.6.12-rc2-dts" ] ; then
   28     auh="--allow-unrelated-histories"
   29 fi
   30 git merge $auh --no-edit "${v}-raw"
   31 git clean -fdqx
   32 # Use the date of Linus' original tag for the tag.
   33 case "${v%-dts}" in
   34     v2.6.12*|v2.6.13-rc[123])
   35         # Commits from v2.6.12-rc2..v2.6.13-rc3 lacked the date. So use the commit's
   36         # date.
   37         export GIT_COMMITTER_DATE="${GIT_AUTHOR_DATE}"
   38         ;;
   39     *)
   40         export GIT_COMMITTER_DATE="$(git for-each-ref --format='%(taggerdate)' "refs/tags/${v%-dts}")"
   41         ;;
   42 esac
   43 if [ ! "${GIT_COMMITTER_DATE}" ] ; then
   44     echo >&2 "Unable to determine date for tag"
   45     exit 1
   46 fi
   47 git tag -s -m "Tagging ${v}" -u 695A46C6 "${v}"
   48 make -k -j12 -s

Cache object: 8fc704bae7f38dd3ec9115da27a5c969


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.