diff options
author | Chris Johns <chrisj@rtems.org> | 2022-11-17 15:18:41 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2022-11-17 15:20:03 +1100 |
commit | c6a281eaf030632b7da8d8084fb08ebe173ba6e7 (patch) | |
tree | ef61b00b4f9feeb69de28c90be9ef713334f6d9d /rtems-release-sources | |
parent | release/notes: Move release notes into a notes directory (diff) | |
download | rtems-release-c6a281eaf030632b7da8d8084fb08ebe173ba6e7.tar.bz2 |
release: Update to support the 5.2 release
- Add a new release notes generator
- Update and support the fixed RSB get sources
Diffstat (limited to 'rtems-release-sources')
-rwxr-xr-x | rtems-release-sources | 117 |
1 files changed, 49 insertions, 68 deletions
diff --git a/rtems-release-sources b/rtems-release-sources index 7b457a4..8fc60fa 100755 --- a/rtems-release-sources +++ b/rtems-release-sources @@ -85,7 +85,7 @@ fi cd ${release} rm -rf ${workspace} mkdir ${workspace} - cd ${workspace} +cd ${workspace} echo "tar ${comp_tar}xf ../${prefix}.tar.${comp_ext}" tar ${comp_tar}xf ../${prefix}.tar.${comp_ext} @@ -95,80 +95,60 @@ cd ${release} # actual sourced used. # cd ${prefix} - cd rtems - export_source=rtems - mkdir sources patches - # - # Copy in any source not present on the server. If these are not copied in - # the RSB does not find them. - # - for p in rtems-tools rtems - do - cp ${top}/${release}/${p}-${release}.tar.${comp_ext} sources/ - done - # - # Fetch the source for RTEMS tools. - # - if [ ${version} -lt 5 ]; then - echo "../source-builder/sb-set-builder --dry-run --with-download " \ - "--without-error-report --without-release-url " \ - "${rtems_pkgs}" - ../source-builder/sb-set-builder --dry-run --with-download \ - --without-error-report \ - --without-release-url \ - ${rtems_pkgs} - else - echo "../source-builder/sb-get-sources ${rtems_pkgs}" - ../source-builder/sb-get-sources ${rtems_pkgs} - fi - # - # Remove the top level packages because they do not have a VERSION file. - # - # These packages may or will be referencing git so remove those as well. - # - for p in rtems-tools rtems - do - rm sources/${p}-${release}.tar.${comp_ext} - rm -rf sources/git/${p}.git - done - # - # Remove the git, svn or cvs directory if empty. - # - for d in git svn cvs - do - if [ -e sources/${d} ]; then - find sources/${d} -type d -empty -delete - fi - done - # - # If git, svn or cvs exist the release fails. - # - if [ -d sources/git -o -d sources/svn -o -d sources/cvs ]; then - echo "error: ${release} contains repositories and cannot be released." - exit 1 - fi - cd .. # rtems - - # - # Fetch the source for 3rd party packages tools. - # - if [ -n "${bare_pkgs}" -a "${bare_pkgs}" != "None" ]; then - cd bare - export_source="${export_source} bare" + if [ ${version} -lt 5 ]; then + srcs="rtems bare" + else + srcs="rtems" + fi + export_source= + for src in ${srcs} + do + cd ${src} + export_source="${export_source} ${src}" mkdir sources patches + # + # Copy in any source not present on the server. If these are not copied in + # the RSB does not find them. + # + if [ ${src} = rtems ]; then + for p in rtems-tools rtems + do + cp ${top}/${release}/${p}-${release}.tar.${comp_ext} sources/ + done + fi + # + # Fetch the source for RTEMS tools. + # + # RTEMS 5 and later use the RSB's get source tool + # if [ ${version} -lt 5 ]; then + if [ ${src} = rtems ]; then + pkgs=${rtems_pkgs} + elif [ ${src} = base ]; then + pkgs=${base_pkgs} + fi echo "../source-builder/sb-set-builder --dry-run --with-download " \ "--without-error-report --without-release-url " \ - "${bare_pkgs}" + "${pkgs}" ../source-builder/sb-set-builder --dry-run --with-download \ --without-error-report \ --without-release-url \ - ${bare_pkgs} + ${pkgs} else - echo "../source-builder/sb-get-sources ${bare_pkgs}" - ../source-builder/sb-get-sources ${bare_pkgs} + echo "../source-builder/sb-get-sources " + ../source-builder/sb-get-sources --stop-on-error fi # + # Remove the top level packages because they do not have a VERSION file. + # + # These packages may or will be referencing git so remove those as well. + # + for p in rtems-kernel rtems-libbsd rtems-tools rtems + do + rm -f $(find sources -name ${p}-\*.tar.\*) + rm -rf sources/git/${p}.git + done + # # Remove the git, svn or cvs directory if empty. # for d in git svn cvs @@ -178,7 +158,7 @@ cd ${release} fi done # - # If svn or cvs exist the release fails. Git is ok. + # If svn or cvs exist the release fails. # if [ -d sources/svn -o -d sources/cvs ]; then echo "error: ${release} contains repositories and cannot be released." @@ -204,8 +184,9 @@ cd ${release} rm -rf git cd .. # source fi - cd .. # ${bare} - fi + cd .. # rtems + done + # # Export the sources and patches. # |