#!/bin/bash # # Copyright (C) 2017 Wolfgang Wiedmeyer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . . $(dirname $0)/common.sh RELEASE="" if [ -z "${RELEASE}" ] ; then echo "You need to define the"\ "RELEASE variable in the releasevars.sh script." echo "This needs to reflect the Replicant version you are releasing." echo echo "For example," \ "if you are releasing Replicant 6.0 0004 RC2, you can use:" echo " RELEASE=\"6.0-0004-rc2\"" echo echo "Or if you just want to"\ "release a build from the replicant-6.0 branch:" echo " RELEASE=\"6.0\"" exit 1 fi RELEASE_DEVICES_REPLICANT_6="\ espresso3g \ espressowifi \ i9100 \ i9300 \ i9305 \ maguro \ n5100 \ n5110 \ n7000 \ n7100 \ " RELEASE_DEVICES_REPLICANT_11="\ i9300 \ i9305 \ " if is_replicant_11 ; then RELEASE_DEVICES="${RELEASE_DEVICES_REPLICANT_11}" elif is_replicant_6 ; then RELEASE_DEVICES="${RELEASE_DEVICES_REPLICANT_6}" fi # The files are in out/dist/${device}/ RELEASE_IMAGES="" for device in ${RELEASE_DEVICES} ; do RELEASE_IMAGES="${RELEASE_IMAGES} recovery-${device}.img" RELEASE_IMAGES="${RELEASE_IMAGES} replicant-${RELEASE}-${device}.zip" done RELEASE_KEY="" if [ -z "${RELEASE_KEY}" ] ; then echo "You need to"\ "define the RELEASE_KEY variable in the releasevars.sh script." echo "This variable"\ "contains the gpg key that will sign the images you are releasing." echo echo "For example:" echo " RELEASE_KEY=\"FB31DBA3AB8DB76A4157329F7651568F80374459\"" exit 1 fi REPO="repo" COLOR=1 METADATA="$RELEASE_DIR/metadata" SECURITY="$RELEASE_DIR/security" SCRIPTS="$RELEASE_DIR/scripts" TOOLS="$RELEASE_DIR/tools" IMAGES="$RELEASE_DIR/images"