Commit d0add998 authored by Guido Gunther's avatar Guido Gunther

Make publish script handle the kernel deb

parent 8fdc3d2c
...@@ -5,22 +5,19 @@ ...@@ -5,22 +5,19 @@
# SPDX-License-Identifier: GPL-3.0+ # 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 [ -z "$1" ];then
echo "Please specify kernel deb to upload"
if [ -e kernel.tgz ]; then exit 1
scp -P 3376 kernel_git.txt librem5@storage.puri.sm:~/librem5/binaries/unstable/$DATE else
scp -P 3376 kernel.tgz librem5@storage.puri.sm:~/librem5/binaries/unstable/$DATE DEB="$1"
ssh -p 3376 librem5@storage.puri.sm "cd ~/librem5/binaries/unstable/; ln -fs $DATE/kernel.tgz latest_kernel.tgz "
fi fi
UBOOTS=`ls u-boot-*.imx` DATE=$(date --iso)
TARGET="librem5/binaries/unstable/$DATE"
for UBOOT in ${UBOOTS}; do ssh -p 3376 librem5@storage.puri.sm "mkdir -p ${TARGET}"
NAME=`basename ${UBOOT} .imx` scp -P 3376 "${DEB}" "librem5@storage.puri.sm:${TARGET}/"
scp -P 3376 ${NAME}-git.txt librem5@storage.puri.sm:~/librem5/binaries/unstable/$DATE ssh -p 3376 librem5@storage.puri.sm "ln -nsf ${DATE} ${TARGET}/../latest"
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
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