Skip to content

AOSC-Tracking/thunderbird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 

Repository files navigation

Tracking repository for Thunderbird

Standard Operation Procedure

  1. Download a source archive of Thunderbird from https://archive.mozilla.org/pub/thunderbird/. Normally the URL is https://archive.mozilla.org/pub/thunderbird/releases/$VER/source/thunderbird-$VER.source.tar.xz, replacing "$VER" with the version to be imported, like 128.0.1esr.
export VER='128.0.1esr'
  1. Switch to the tarball branch, then remove all files and directories in the working tree, including the hidden one, except the .git directory:
git checkout tarball
for f in $(find . -mindepth 1 -maxdepth 1); do name="$(basename "$f")"; if [ ! "$name" = '.git' ]; then rm -rf "$name"; fi done
  1. Extract all files from the archive, then move all files and directories, including the hidden one, from the thunderbird-$VER directory to the working tree.
tar --strip-component=1 -pxvf thunderbird-"$VER".source.tar.xz
  1. Recursively remove .gitattributes files, .gitignore files, .gitmodules files and .git directories except the one in the top-level.
find . \( -name .gitattributes -o -name .gitignore -o -name .gitmodules \) -delete
find . -mindepth 2 -type d -name .git -exec rm -rf {} +
  1. Update the index using all files in the entire working tree, then create a new commit with message of "chore: import v$VER".
git add -A
git commit -m "chore: import v$VER"
  1. Create a lightweight tag with name of "v$VER".
git tag "v$VER"
  1. Push the tarball branch and the tag just created to the remote.
git push
git push --tags
  1. Create a new branch with name of "aosc/v$VER", pointing to the current HEAD, then switch to it.
git checkout -b "aosc/v$VER"
  1. Apply all needed commits and/or patches.
  2. Create a lightweight tag with name of "aosc/v$PKGEPOCH%$PKGVER-$PKGREL". If any of these variables equals zero, omit the related section and the corresponding separator. For the definition of these variables, refer to autobuild4.
git tag "aosc/v$PKGEPOCH%$PKGVER-$PKGREL"
  1. Push the aosc/v$VER branch and the tag just created to the remote.
git -c 'push.autoSetupRemote=true' push
git push --tags
  1. Prepare patches for the ABBS tree.
git format-patch "tags/v$VER..tags/aosc/v$PKGEPOCH%$PKGVER-$PKGREL"

References

About

Tracking repository for Thunderbird (tarball imports)

Resources

Stars

Watchers

Forks

Contributors