mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
release and release-appcenter scripts for 17.1
This commit is contained in:
parent
600cf42270
commit
4a903aaead
47
doc/rpm-build/release
Executable file
47
doc/rpm-build/release
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
version=17.1
|
||||
if [ "$1" == "--packaging" ]
|
||||
then
|
||||
packaging=$2
|
||||
else
|
||||
packaging=`date +%Y%m%d`
|
||||
fi
|
||||
[ ! -f download/egroupware-epl-$version.$packaging.zip ] && {
|
||||
echo "No $version.$packaging packages found!"
|
||||
echo "You probably need to use --packaging <date>"
|
||||
exit 1
|
||||
}
|
||||
|
||||
echo "syncing to download.egroupware.org"
|
||||
~/sync-repos.sh stylite-epl
|
||||
|
||||
# update https://www.egroupware.org/currentversion
|
||||
# default for no security update
|
||||
last_security_update=`curl https://www.egroupware.org/currentversion|tail -n +2`
|
||||
# uncomment and therefore enable line below for a security update
|
||||
#last_security_update="$version.$packaging\n$(curl https://www.egroupware.org/currentversion|tail -n +3)"
|
||||
echo "Updating www.egroupware.org/currentversion to $version.$packaging"
|
||||
echo -e "$version.$packaging\n$last_security_update" | ssh root@wordpress.egroupware.org tee /var/www/egroupware.org/currentversion
|
||||
|
||||
# building CE packages on build.opensuse.org
|
||||
./checkout-build-archives.php --obs /home/stylite/obs/server\:eGroupWare --run 'obs release' $*
|
||||
|
||||
# disabled as we have now 19.1
|
||||
#echo "Copying $version debian.changes to master to satisfy update checker"
|
||||
#cd ~/epl-trunk/egroupware
|
||||
#./install-cli.php
|
||||
#cp ~/epl-17.1/egroupware/doc/rpm-build/debian.changes doc/rpm-build/
|
||||
#sed -i "s|'maintenance_release'] = '.*';|'maintenance_release'] = '$version.$packaging';|" api/setup/setup.inc.php
|
||||
#git commit -m "copy $version changelog to master to satisfy update checker" doc/rpm-build/debian.changes api/setup/setup.inc.php
|
||||
#git push
|
||||
|
||||
# Mail an Univention Appcenter
|
||||
cat - ~/.signature.egroupware <<EOF | mail -s "Neue EGroupware Version $version.$packaging" -r rb@egroupware.org -b info@egroupware.org appcenter@univention.de
|
||||
Hallo,
|
||||
|
||||
wir haben ein neues Maintenance-Release im TestAppCenter.
|
||||
|
||||
Ralf
|
||||
--
|
||||
EOF
|
69
doc/rpm-build/release-appcenter
Executable file
69
doc/rpm-build/release-appcenter
Executable file
@ -0,0 +1,69 @@
|
||||
#!/bin/bash
|
||||
|
||||
# To update univention-appcenter-control run:
|
||||
# curl https://provider-portal.software-univention.de/appcenter-selfservice/univention-appcenter-control > ~/bin/univention-appcenter-control
|
||||
|
||||
# copy Debian_7 packages to UCS
|
||||
|
||||
version=17.1
|
||||
packaging=`date +%Y%m%d`
|
||||
# default is now Docker!
|
||||
postfix='-docker-ucs43'
|
||||
project=stylite-epl
|
||||
|
||||
while [ $# -gt 0 ]
|
||||
do
|
||||
case "$1" in
|
||||
"--packaging")
|
||||
packaging=$2
|
||||
shift; shift
|
||||
;;
|
||||
"--postfix")
|
||||
postfix=$2
|
||||
shift; shift
|
||||
;;
|
||||
"--debug")
|
||||
debug=echo
|
||||
shift
|
||||
;;
|
||||
"--help")
|
||||
echo "Usage: release-appcenter [--packaging <YYYYmmdd>] [--postfix -docker] [--debug] [--help]"
|
||||
echo " --packaging specifiy packaging, default current date '$packaging'"
|
||||
echo " --postfix eg. '-docker' used to find old package to copy and appended to packaging"
|
||||
echo " --debug only echo out (modifying commands), does NOT execute them"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
#echo "version=$version, packaging=$packaging, postfix=$postfix, debug=$debug"
|
||||
|
||||
for ucs in 4.3
|
||||
do
|
||||
case $ucs in
|
||||
"4.1")
|
||||
repo=Debian_8.0
|
||||
;;
|
||||
"4.3")
|
||||
repo=Debian_9.0
|
||||
;;
|
||||
esac
|
||||
[ ! -f /srv/obs/repos/$project/$repo/all/egroupware-epl-core_$version.${packaging}_all.deb ] && {
|
||||
echo "No $version.$packaging packages found!"
|
||||
echo "You probably need to use --packaging <date>"
|
||||
exit 1
|
||||
}
|
||||
univention-appcenter-control list | tee /tmp/ucs-apps | egrep "$ucs/egroupware=$version.$packaging$postfix" || {
|
||||
copy_app=$(cat /tmp/ucs-apps | egrep "$ucs/egroupware=$version\.[0-9.]+$postfix$" | tail -1)
|
||||
[ -z "$copy_app" ] && copy_app=$ucs/egroupware
|
||||
$debug univention-appcenter-control new-version $copy_app $ucs/egroupware=$version.$packaging$postfix
|
||||
}
|
||||
# converting changelog to html with <h3>version</h3><ul><li>...</li></ul>
|
||||
sed -e 's/egroupware-epl (/<h3>/g' \
|
||||
-e 's/) hardy; urgency=low/<\/h3><ul>/g' \
|
||||
-e 's/^ -- .*/<\/ul>/g' \
|
||||
-e 's/^ \* \(.*\)/<li>\1<\/li>/g' $(dirname $0)/egroupware/doc/rpm-build/debian.changes > $(dirname $0)/README_UPDATE
|
||||
# no binary php-pecl-smb packages for docker, as they are php5 and stall UCS install with docker
|
||||
[ "$prefix" = "-docker" ] && extra="/srv/obs/repos/$project/$repo/{amd64,i386}/*"
|
||||
$debug univention-appcenter-control upload $ucs/egroupware=$version.$packaging$postfix /srv/obs/repos/$project/$repo/all/egroupware-epl*$version.$packaging* $extra $(dirname $0)/README_UPDATE
|
||||
done
|
Loading…
Reference in New Issue
Block a user