Changeset c4ebcc1 in rtems-testing


Ignore:
Timestamp:
May 14, 2015, 8:30:03 PM (4 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
d355993
Parents:
a879868
Message:

release.sh: Add helper advice on clean up after an error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-helpers/release.sh

    ra879868 rc4ebcc1  
    5959
    6060An action of making a dot release or bumping the major must be specified.
     61
    6162EOF
     63
     64if [ ${repo} != "NOT_SET" ] ; then
     65  echo "An error has occurred and clean up may be needed. The following should"
     66  echo "help identify what may need to be done for cleanup."
     67
     68  if [ ${bump_dot_release} = "yes" ] ; then
     69    echo "  git checkout master"
     70    echo "  git branch -D ${MAJOR}"
     71    echo "  git tag -d ${VERSION}"
     72    echo "  rm -rf rtems-${VERSION}.tar.bz2 rtems-${VERSION}"
     73    case ${repo} in
     74      rtems)
     75        echo "  rm -rf b-doc b-doxy"
     76        echo "  rtems-doxygen-${VERSION}.tar.bz2 rtems-doxygen-${VERSION}"
     77        echo "  rtemsdocs-${VERSION}.tar.bz2 rtemsdocs-${VERSION}"
     78        ;;
     79    esac
     80  else
     81    echo "  git checkout master"
     82    echo "  git branch -D @WORKING@"
     83  fi
     84fi
    6285}
    6386
     
    86109#  Set up variables which control the scripts behavior
    87110verbose=yes
     111repo=NOT_SET
    88112VERSION=NOT_SET
    89113MAJOR=NOT_SET
Note: See TracChangeset for help on using the changeset viewer.