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 "mkdir ~/librem5/binaries/unstable/$DATE"
if [ -e kernel.tgz ]; then
scp -P 3376 kernel_git.txt$DATE
scp -P 3376 kernel.tgz$DATE
ssh -p 3376 "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
UBOOTS=`ls u-boot-*.imx`
DATE=$(date --iso)
for UBOOT in ${UBOOTS}; do
NAME=`basename ${UBOOT} .imx`
scp -P 3376 ${NAME}-git.txt$DATE
scp -P 3376 ${UBOOT}$DATE
ssh -p 3376 "cd ~/librem5/binaries/unstable/; ln -fs $DATE/${UBOOT} latest-${UBOOT} "
ssh -p 3376 "mkdir -p ${TARGET}"
scp -P 3376 "${DEB}" "${TARGET}/"
ssh -p 3376 "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