mirror of
https://github.com/hanzoai/mail.git
synced 2026-09-23 23:53:02 +00:00
Fork of github.com/mjl-/mox at 5656ca6d1b
(upstream v0.0.15 plus 55 commits).
Rename the module path in go.mod and the import paths in 268 Go files. Also
update the five scripts that "go install" the module (genwebsite.sh,
docker-release.sh, apidiff.sh, test-upgrade.sh, Dockerfile.release), which
would otherwise build upstream rather than this fork.
Add NOTICE recording the upstream project, author, license, and fork point,
and stating which license covers which files: MIT for the mox source and our
changes, MPL-2.0 for publicsuffix/public_suffix_list.txt alone, and the
vendored dependencies' own licenses under licenses/. Embed NOTICE so
"mail licenses" prints the lineage from the running binary. LICENSE.MIT,
LICENSE.MPLv2.0 and the licenses/ tree are preserved verbatim; no code is
relicensed.
The mox command name, config keys, data directory layout and website content
are unchanged. LLM.md records the fork point, the rename, what was left alone,
and the steps to stand the server up.
Co-authored-by: Hanzo Dev <[email protected]>
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
prevversion=$(go list -mod=readonly -m -f '{{ .Version }}' github.com/hanzoai/mail@latest)
|
|
if ! test -d tmp/mox-$prevversion; then
|
|
mkdir -p tmp/mox-$prevversion
|
|
git archive --format=tar $prevversion | tar -C tmp/mox-$prevversion -xf -
|
|
fi
|
|
(rm -r tmp/apidiff || exit 0)
|
|
mkdir -p tmp/apidiff/$prevversion tmp/apidiff/next
|
|
(rm apidiff/next.txt.new 2>/dev/null || exit 0)
|
|
touch apidiff/next.txt.new
|
|
for p in $(cat apidiff/packages.txt); do
|
|
if ! test -d tmp/mox-$prevversion/$p; then
|
|
continue
|
|
fi
|
|
(cd tmp/mox-$prevversion && apidiff -w ../apidiff/$prevversion/$p.api ./$p)
|
|
apidiff -w tmp/apidiff/next/$p.api ./$p
|
|
apidiff -incompatible tmp/apidiff/$prevversion/$p.api tmp/apidiff/next/$p.api >$p.diff
|
|
if test -s $p.diff; then
|
|
(
|
|
echo '#' $p
|
|
cat $p.diff
|
|
echo
|
|
) >>apidiff/next.txt.new
|
|
fi
|
|
rm $p.diff
|
|
done
|
|
if test -s apidiff/next.txt.new; then
|
|
(
|
|
echo "Below are the incompatible changes between $prevversion and next, per package."
|
|
echo
|
|
cat apidiff/next.txt.new
|
|
) >apidiff/next.txt
|
|
rm apidiff/next.txt.new
|
|
else
|
|
mv apidiff/next.txt.new apidiff/next.txt
|
|
fi
|