Add launchpad scripts
This commit is contained in:
3
dput.cf
3
dput.cf
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
[i2p-community]
|
[i2p-community]
|
||||||
fqdn = ppa.launchpad.net
|
fqdn = ppa.launchpad.net
|
||||||
method = ftp
|
method = ftp
|
||||||
incoming = ~i2p-community/i2p-community/ubuntu/
|
incoming = ~i2p-community/ppa
|
||||||
login = anonymous
|
login = anonymous
|
||||||
allow_unsigned_uploads = 0
|
allow_unsigned_uploads = 0
|
||||||
|
54
env.sh
54
env.sh
@ -381,47 +381,83 @@ git_tag() {
|
|||||||
home
|
home
|
||||||
}
|
}
|
||||||
|
|
||||||
debian_bionic() {
|
debian_orig() {
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
if [ ! -d "$I2P_REPOSITORY_DIR".bionic ]; then
|
||||||
git clone "$I2P_REPOSITORY_DIR" "$I2P_REPOSITORY_DIR".bionic
|
git clone "$I2P_REPOSITORY_DIR" "$I2P_REPOSITORY_DIR".bionic
|
||||||
cd "$I2P_REPOSITORY_DIR".bionic
|
cd "$I2P_REPOSITORY_DIR".bionic
|
||||||
cp -rv debian-alt/bionic/* debian/
|
cp -rv "debian-alt/$DISTRO/"* debian/
|
||||||
|
fi
|
||||||
|
if [ -f "i2p_$I2P_VERSION.orig.tar.bz2" ]; then
|
||||||
ant debian-release-tarball
|
ant debian-release-tarball
|
||||||
|
fi
|
||||||
home
|
home
|
||||||
|
}
|
||||||
|
|
||||||
|
debian_bionic() {
|
||||||
|
export TZ=UTC
|
||||||
|
export DISTRO=bionic
|
||||||
|
cp -rv "$I2P_REPOSITORY_DIR".bionic/debian-alt/$DISTRO/* "i2p-$I2P_VERSION-"*/debian/
|
||||||
cd "i2p-$I2P_VERSION-"* || return
|
cd "i2p-$I2P_VERSION-"* || return
|
||||||
cp -rv "$I2P_REPOSITORY_DIR".bionic/debian-alt/bionic/* debian/
|
# update the files in orig.tar.bz2
|
||||||
|
tar -jcvf "$WORK_HOME/i2p_$I2P_VERSION.orig.tar.bz2" .
|
||||||
debuild -S -sa -k"$PRIVKEY_SU3_ID"
|
debuild -S -sa -k"$PRIVKEY_SU3_ID"
|
||||||
home
|
home
|
||||||
}
|
}
|
||||||
|
|
||||||
debian_focal() {
|
debian_focal() {
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
export DISTRO=focal
|
||||||
|
cp -rv "$I2P_REPOSITORY_DIR".bionic/debian-alt/$$DISTRO/* "i2p-$I2P_VERSION-"*/debian/
|
||||||
cd "i2p-$I2P_VERSION-"* || return
|
cd "i2p-$I2P_VERSION-"* || return
|
||||||
cp -rv "$I2P_REPOSITORY_DIR".bionic/debian-alt/focal/* debian/
|
tar -jcvf "$WORK_HOME/i2p_$I2P_VERSION.orig.tar.bz2" .
|
||||||
debuild -S -sa -k"$PRIVKEY_SU3_ID"
|
debuild -S -sd -k"$PRIVKEY_SU3_ID"
|
||||||
home
|
home
|
||||||
}
|
}
|
||||||
|
|
||||||
debian_lunar() {
|
debian_lunar() {
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
export DISTRO=lunar
|
||||||
|
cp -rv "$I2P_REPOSITORY_DIR".bionic/debian-alt/$DISTRO/* "i2p-$I2P_VERSION-"*/debian/
|
||||||
cd "i2p-$I2P_VERSION-"* || return
|
cd "i2p-$I2P_VERSION-"* || return
|
||||||
cp -rv "$I2P_REPOSITORY_DIR".bionic/debian-alt/lunar/* debian/
|
tar -jcvf "$WORK_HOME/i2p_$I2P_VERSION.orig.tar.bz2" .
|
||||||
debuild -S -sa -k"$PRIVKEY_SU3_ID"
|
debuild -S -sd -k"$PRIVKEY_SU3_ID"
|
||||||
home
|
home
|
||||||
}
|
}
|
||||||
|
|
||||||
debian_all() {
|
bionic() {
|
||||||
debian_bionic
|
debian_bionic
|
||||||
debian_dput
|
debian_dput
|
||||||
|
}
|
||||||
|
|
||||||
|
focal() {
|
||||||
debian_focal
|
debian_focal
|
||||||
debian_dput
|
debian_dput
|
||||||
|
}
|
||||||
|
|
||||||
|
lunar() {
|
||||||
debian_lunar
|
debian_lunar
|
||||||
debian_dput
|
debian_dput
|
||||||
|
}
|
||||||
|
|
||||||
|
debian_all() {
|
||||||
|
bionic
|
||||||
|
focal
|
||||||
|
lunar
|
||||||
home
|
home
|
||||||
}
|
}
|
||||||
|
|
||||||
debian_dput() {
|
debian_dput() {
|
||||||
dput -c dput.cf "$LAUNCHPAD_ID" "i2p_$I2P_VERSION-1ubuntu1_source.changes"
|
if [ -z "$DISTRO" ]; then
|
||||||
|
DISTRO=ubuntu
|
||||||
|
fi
|
||||||
|
rm -f "i2p_$I2P_VERSION-1ubuntu1_source.i2p-community.upload"
|
||||||
|
dput -c dput.cf "$LAUNCHPAD_ID" "i2p_$I2P_VERSION"*"$DISTRO"*"_source.changes"
|
||||||
|
}
|
||||||
|
|
||||||
|
debian_clean() {
|
||||||
|
mkdir debian-bak
|
||||||
|
mv i2p_* debian-bak
|
||||||
}
|
}
|
||||||
|
|
||||||
run_all() {
|
run_all() {
|
||||||
|
Reference in New Issue
Block a user