Skip to content
Snippets Groups Projects
Unverified Commit c20cb478 authored by Maxim Cournoyer's avatar Maxim Cournoyer Committed by Maxim Cournoyer
Browse files

maint: Fix typo in deploy script.

Via: sed 's/REPOSITOIRY/REPOSITORY/g'. scripts/deploy-packages.sh
Change-Id: I875ce951e7696f8778acea80b994e95435990f85
parent 1e59bef6
No related branches found
No related tags found
No related merge requests found
...@@ -44,14 +44,14 @@ function fetch_qt_deb() ...@@ -44,14 +44,14 @@ function fetch_qt_deb()
echo "Using RSYNC_RSH='${RSYNC_RSH}'" echo "Using RSYNC_RSH='${RSYNC_RSH}'"
rsync --archive --verbose \ rsync --archive --verbose \
${REMOTE_REPOSITORY_LOCATION}/${DISTRIBUTION}_qt/pool/main/libq/libqt-jami/*.deb \ ${REMOTE_REPOSITORY_LOCATION}/${DISTRIBUTION}_qt/pool/main/libq/libqt-jami/*.deb \
${DISTRIBUTION_REPOSITOIRY_FOLDER}_qt/ ${DISTRIBUTION_REPOSITORY_FOLDER}_qt/
} }
function package_deb() function package_deb()
{ {
DISTRIBUTION_REPOSITOIRY_FOLDER=$(realpath repositories)/${DISTRIBUTION} DISTRIBUTION_REPOSITORY_FOLDER=$(realpath repositories)/${DISTRIBUTION}
mkdir -p ${DISTRIBUTION_REPOSITOIRY_FOLDER} mkdir -p ${DISTRIBUTION_REPOSITORY_FOLDER}
mkdir -p ${DISTRIBUTION_REPOSITOIRY_FOLDER}_qt mkdir -p ${DISTRIBUTION_REPOSITORY_FOLDER}_qt
########################################################### ###########################################################
## fetch qt deb (if not currently building a qt package) ## ## fetch qt deb (if not currently building a qt package) ##
...@@ -70,10 +70,10 @@ function package_deb() ...@@ -70,10 +70,10 @@ function package_deb()
echo "## Creating repository ##" echo "## Creating repository ##"
echo "#########################" echo "#########################"
mkdir ${DISTRIBUTION_REPOSITOIRY_FOLDER}/conf mkdir ${DISTRIBUTION_REPOSITORY_FOLDER}/conf
# Distributions file # Distributions file
cat << EOF > ${DISTRIBUTION_REPOSITOIRY_FOLDER}/conf/distributions cat << EOF > ${DISTRIBUTION_REPOSITORY_FOLDER}/conf/distributions
Origin: jami Origin: jami
Label: Jami ${DISTRIBUTION} Repository Label: Jami ${DISTRIBUTION} Repository
Codename: jami Codename: jami
...@@ -99,7 +99,7 @@ EOF ...@@ -99,7 +99,7 @@ EOF
case "${DISTRIBUTION}" in case "${DISTRIBUTION}" in
*_qt) ;; *_qt) ;;
*) *)
packages="${packages} ${DISTRIBUTION_REPOSITOIRY_FOLDER}_qt/*.deb" packages="${packages} ${DISTRIBUTION_REPOSITORY_FOLDER}_qt/*.deb"
;; ;;
esac esac
for package in ${packages}; do for package in ${packages}; do
...@@ -114,24 +114,24 @@ EOF ...@@ -114,24 +114,24 @@ EOF
if [ ${package_arch} = "all" ]; then if [ ${package_arch} = "all" ]; then
# Removing to avoid the error of adding the same deb twice. # Removing to avoid the error of adding the same deb twice.
# This happens with arch all packages, which are generated in amd64 and i386. # This happens with arch all packages, which are generated in amd64 and i386.
reprepro --verbose --basedir ${DISTRIBUTION_REPOSITOIRY_FOLDER} remove jami ${package_name} reprepro --verbose --basedir ${DISTRIBUTION_REPOSITORY_FOLDER} remove jami ${package_name}
# TODO: Remove when April 2024 comes. # TODO: Remove when April 2024 comes.
reprepro --verbose --basedir ${DISTRIBUTION_REPOSITOIRY_FOLDER} remove ring ${package_name} reprepro --verbose --basedir ${DISTRIBUTION_REPOSITORY_FOLDER} remove ring ${package_name}
fi fi
reprepro --verbose --basedir ${DISTRIBUTION_REPOSITOIRY_FOLDER} includedeb jami ${package} reprepro --verbose --basedir ${DISTRIBUTION_REPOSITORY_FOLDER} includedeb jami ${package}
# TODO: Remove when April 2024 comes. # TODO: Remove when April 2024 comes.
reprepro --verbose --basedir ${DISTRIBUTION_REPOSITOIRY_FOLDER} includedeb ring ${package} reprepro --verbose --basedir ${DISTRIBUTION_REPOSITORY_FOLDER} includedeb ring ${package}
done done
# Rebuild the index # Rebuild the index
reprepro --verbose --basedir ${DISTRIBUTION_REPOSITOIRY_FOLDER} export jami reprepro --verbose --basedir ${DISTRIBUTION_REPOSITORY_FOLDER} export jami
# TODO: Remove when April 2024 comes. # TODO: Remove when April 2024 comes.
reprepro --verbose --basedir ${DISTRIBUTION_REPOSITOIRY_FOLDER} export ring reprepro --verbose --basedir ${DISTRIBUTION_REPOSITORY_FOLDER} export ring
# Show the contents # Show the contents
reprepro --verbose --basedir ${DISTRIBUTION_REPOSITOIRY_FOLDER} list jami reprepro --verbose --basedir ${DISTRIBUTION_REPOSITORY_FOLDER} list jami
# TODO: Remove when April 2024 comes. # TODO: Remove when April 2024 comes.
reprepro --verbose --basedir ${DISTRIBUTION_REPOSITOIRY_FOLDER} list ring reprepro --verbose --basedir ${DISTRIBUTION_REPOSITORY_FOLDER} list ring
####################################### #######################################
## create the manual download folder ## ## create the manual download folder ##
...@@ -170,8 +170,8 @@ function package_rpm() ...@@ -170,8 +170,8 @@ function package_rpm()
local name local name
local baseurl local baseurl
DISTRIBUTION_REPOSITOIRY_FOLDER=$(realpath repositories)/${DISTRIBUTION} DISTRIBUTION_REPOSITORY_FOLDER=$(realpath repositories)/${DISTRIBUTION}
mkdir -p ${DISTRIBUTION_REPOSITOIRY_FOLDER} mkdir -p ${DISTRIBUTION_REPOSITORY_FOLDER}
# .repo file # .repo file
if [ "${DISTRIBUTION:0:19}" == "opensuse-tumbleweed" ]; then if [ "${DISTRIBUTION:0:19}" == "opensuse-tumbleweed" ]; then
...@@ -182,7 +182,7 @@ function package_rpm() ...@@ -182,7 +182,7 @@ function package_rpm()
baseurl="https://dl.jami.net/nightly/${DISTRIBUTION%_*}_\$releasever" baseurl="https://dl.jami.net/nightly/${DISTRIBUTION%_*}_\$releasever"
fi fi
cat << EOF > ${DISTRIBUTION_REPOSITOIRY_FOLDER}/jami-nightly.repo cat << EOF > ${DISTRIBUTION_REPOSITORY_FOLDER}/jami-nightly.repo
[jami] [jami]
name=$name name=$name
baseurl=$baseurl baseurl=$baseurl
...@@ -209,11 +209,11 @@ EOF ...@@ -209,11 +209,11 @@ EOF
for package in packages/${DISTRIBUTION}*/*.rpm; do for package in packages/${DISTRIBUTION}*/*.rpm; do
rpmsign --resign --key-id=${KEYID} ${package} rpmsign --resign --key-id=${KEYID} ${package}
cp ${package} ${DISTRIBUTION_REPOSITOIRY_FOLDER} cp ${package} ${DISTRIBUTION_REPOSITORY_FOLDER}
done done
# Create the repo # Create the repo
createrepo --update ${DISTRIBUTION_REPOSITOIRY_FOLDER} createrepo --update ${DISTRIBUTION_REPOSITORY_FOLDER}
####################################### #######################################
## create the manual download folder ## ## create the manual download folder ##
...@@ -249,9 +249,9 @@ function package_snap() ...@@ -249,9 +249,9 @@ function package_snap()
echo "####################" echo "####################"
if [[ "${CHANNEL:0:19}" == "internal_experiment" ]]; then if [[ "${CHANNEL:0:19}" == "internal_experiment" ]]; then
DISTRIBUTION_REPOSITOIRY_FOLDER=$(realpath repositories)/${DISTRIBUTION} DISTRIBUTION_REPOSITORY_FOLDER=$(realpath repositories)/${DISTRIBUTION}
mkdir -p ${DISTRIBUTION_REPOSITOIRY_FOLDER} mkdir -p ${DISTRIBUTION_REPOSITORY_FOLDER}
cp packages/${DISTRIBUTION}*/*.snap ${DISTRIBUTION_REPOSITOIRY_FOLDER}/ cp packages/${DISTRIBUTION}*/*.snap ${DISTRIBUTION_REPOSITORY_FOLDER}/
elif [[ "${CHANNEL:0:7}" == "nightly" ]]; then elif [[ "${CHANNEL:0:7}" == "nightly" ]]; then
snapcraft login --with ${SNAPCRAFT_LOGIN} snapcraft login --with ${SNAPCRAFT_LOGIN}
snapcraft push packages/${DISTRIBUTION}*/*.snap --release edge snapcraft push packages/${DISTRIBUTION}*/*.snap --release edge
...@@ -278,7 +278,7 @@ function deploy() ...@@ -278,7 +278,7 @@ function deploy()
echo "##########################" echo "##########################"
echo "Using RSYNC_RSH='${RSYNC_RSH}'" echo "Using RSYNC_RSH='${RSYNC_RSH}'"
rsync --archive --recursive --verbose \ rsync --archive --recursive --verbose \
--delete ${DISTRIBUTION_REPOSITOIRY_FOLDER} \ --delete ${DISTRIBUTION_REPOSITORY_FOLDER} \
${REMOTE_REPOSITORY_LOCATION} ${REMOTE_REPOSITORY_LOCATION}
echo "#####################################" echo "#####################################"
...@@ -317,7 +317,7 @@ function remove-deployed-files() ...@@ -317,7 +317,7 @@ function remove-deployed-files()
# remove deployed files # remove deployed files
rm -rf manual-download rm -rf manual-download
rm -rf repositories rm -rf repositories
rm -rf ${DISTRIBUTION_REPOSITOIRY_FOLDER} rm -rf ${DISTRIBUTION_REPOSITORY_FOLDER}
} }
for i in "$@" for i in "$@"
...@@ -357,7 +357,7 @@ done ...@@ -357,7 +357,7 @@ done
if [ -z "${KEYID}" ]; if [ -z "${KEYID}" ];
then then
DISTRIBUTION_REPOSITOIRY_FOLDER=$(realpath repositories)/${DISTRIBUTION} DISTRIBUTION_REPOSITORY_FOLDER=$(realpath repositories)/${DISTRIBUTION}
DISTRIBUTION_MANUAL_DOWNLOAD_FOLDER=$(realpath manual-download)/${DISTRIBUTION} DISTRIBUTION_MANUAL_DOWNLOAD_FOLDER=$(realpath manual-download)/${DISTRIBUTION}
deploy deploy
remove-deployed-files remove-deployed-files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment