Commit d0add998 authored by Guido Gunther's avatar Guido Gunther

Make publish script handle the kernel deb

parent 8fdc3d2c
......@@ -5,22 +5,19 @@
# SPDX-License-Identifier: GPL-3.0+
#
DATE=`date +"%Y-%m-%d"`
set -e
ssh -p 3376 librem5@storage.puri.sm "mkdir ~/librem5/binaries/unstable/$DATE"
if [ -e kernel.tgz ]; then
scp -P 3376 kernel_git.txt librem5@storage.puri.sm:~/librem5/binaries/unstable/$DATE
scp -P 3376 kernel.tgz librem5@storage.puri.sm:~/librem5/binaries/unstable/$DATE
ssh -p 3376 librem5@storage.puri.sm "cd ~/librem5/binaries/unstable/; ln -fs $DATE/kernel.tgz latest_kernel.tgz "
if [ -z "$1" ];then
echo "Please specify kernel deb to upload"
exit 1
else
DEB="$1"
fi
UBOOTS=`ls u-boot-*.imx`
DATE=$(date --iso)
TARGET="librem5/binaries/unstable/$DATE"
for UBOOT in ${UBOOTS}; do
NAME=`basename ${UBOOT} .imx`
scp -P 3376 ${NAME}-git.txt librem5@storage.puri.sm:~/librem5/binaries/unstable/$DATE
scp -P 3376 ${UBOOT} librem5@storage.puri.sm:~/librem5/binaries/unstable/$DATE
ssh -p 3376 librem5@storage.puri.sm "cd ~/librem5/binaries/unstable/; ln -fs $DATE/${UBOOT} latest-${UBOOT} "
done
ssh -p 3376 librem5@storage.puri.sm "mkdir -p ${TARGET}"
scp -P 3376 "${DEB}" "librem5@storage.puri.sm:${TARGET}/"
ssh -p 3376 librem5@storage.puri.sm "ln -nsf ${DATE} ${TARGET}/../latest"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment