1
0
Fork 0
privacybadger/release-utils/make-eff-zip.sh
Daniel Baumann 51333c7ef4
Adding upstream version 2020.10.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 23:00:13 +02:00

32 lines
765 B
Bash
Executable file

#!/usr/bin/env bash
# make a release zip of Privacy Badger for opera and firefox
# chrome releases happen in chromium-release.sh
# this script takes a mandatory argument which is the git tag to build
if [ -n "$1" ]; then
SUBDIR=checkout
[ -d $SUBDIR ] && rm -rf $SUBDIR
mkdir $SUBDIR
cp -r -f -a .git $SUBDIR
cd $SUBDIR
git reset --hard "$1"
# clean up
# TODO duplicated in chromium-release.sh
rm -rf src/tests # remove unit tests
rm src/data/dnt-policy.txt # only used by unit tests
cp LICENSE src/ # include LICENSE in build
else
echo "Please supply a tag name for the release you are zipping"
exit 1
fi
echo "Building zip version" "$1"
(cd src && zip -q -r ../privacy_badger-"$TARGET".zip .)
mv privacy_badger*.zip ../pkg/
cd -