Files
i2p.firefox/buildscripts/clean.sh

36 lines
867 B
Bash
Raw Normal View History

#! /usr/bin/env bash
2021-04-03 16:39:26 -04:00
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)/..
cd "$SCRIPT_DIR" || exit 1
. "$SCRIPT_DIR/config.sh"
2022-09-08 10:49:20 -04:00
. "$SCRIPT_DIR/i2pversion"
if [ -f config_overide.sh ]; then
. "$SCRIPT_DIR/config_override.sh"
fi
cd ../i2p.i2p.jpackage-build/
ant distclean
2022-09-08 10:49:20 -04:00
git clean -fd
2022-05-08 19:39:44 -04:00
git checkout .
2022-09-08 10:49:20 -04:00
tar --exclude="$SCRIPT_DIR/../i2p.i2p.jpackage-build/.git" -cvzf "$SCRIPT_DIR/../i2p.i2p.jpackage-build.tar.gz" "$SCRIPT_DIR/../i2p.i2p.jpackage-build/"
2022-07-12 02:08:09 -04:00
cd "$SCRIPT_DIR" || exit 1
2021-04-03 16:39:26 -04:00
rm -rf \
build \
eventlog.txt \
hostsdb.blockfile \
I2P \
i2p_1.0-1_amd64.deb \
libjbigi.so \
libjcpuid.so \
logs \
peerProfiles \
prngseed.rnd \
wrapper.log \
*.jar \
*.exe \
2022-09-08 10:49:20 -04:00
*.dmg
rm -rf build app-profile-*.tgz profile-*.tgz I2P-Easy-Install-Bundle-*.exe *.deb src/I2P/config *.su3 .version *.url make.log
git clean -fdx src build onionkeys tlskeys i2pkeys