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 "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$DATE else
scp -P 3376 kernel.tgz$DATE DEB="$1"
ssh -p 3376 "cd ~/librem5/binaries/unstable/; ln -fs $DATE/kernel.tgz latest_kernel.tgz "
fi fi
UBOOTS=`ls u-boot-*.imx` DATE=$(date --iso)
for UBOOT in ${UBOOTS}; do ssh -p 3376 "mkdir -p ${TARGET}"
NAME=`basename ${UBOOT} .imx` scp -P 3376 "${DEB}" "${TARGET}/"
scp -P 3376 ${NAME}-git.txt$DATE ssh -p 3376 "ln -nsf ${DATE} ${TARGET}/../latest"
scp -P 3376 ${UBOOT}$DATE
ssh -p 3376 "cd ~/librem5/binaries/unstable/; ln -fs $DATE/${UBOOT} latest-${UBOOT} "
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment