From d0ab96cffd37b3c142c1d0359bcb86916398597d Mon Sep 17 00:00:00 2001 From: "Igor Zalatov (from Citadel PC)" Date: Wed, 31 Aug 2022 18:32:11 +0300 Subject: [PATCH] Update stapler --- .gitignore | 3 ++- stapler | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 62baa91..faa5f54 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ # Learn more about .gitignore: # https://www.atlassian.com/git/tutorials/saving-changes/gitignore -# Assembly folder +# Assembly folders Firmware/ +Output/ diff --git a/stapler b/stapler index 01abb83..377812c 100755 --- a/stapler +++ b/stapler @@ -1,6 +1,6 @@ #!/bin/bash # -# OpenIPC (c) | 2022.08.28 +# OpenIPC (c) | version 2022.08.31 # Autoupdate COMPOSER repo # Remove old building folder (full rebuild) @@ -22,13 +22,13 @@ echo_c() { } 2tftp() { - echo_c 32 "\nStart transferring files to the TFTP server...\n" + echo_c 32 "\nStart transferring files to the TFTP server ...\n" scp -r $@ ${TFTPSRV} } -echo_c 32 "\nAttention, let's start working on the ${PROJECT} project...\n" +echo_c 32 "\nAttention, let's start working on the ${PROJECT} project ...\n" git pull rm -rf Firmware git clone --depth=1 https://github.com/OpenIPC/firmware.git Firmware @@ -38,4 +38,7 @@ cd Firmware echo_c 35 "\nYou can get the new assembled firmware components here:\n" tree -C output/images 2tftp output/images/rootfs.squashfs.* output/images/uImage.* +mkdir ../Output/${Project}_$(date +"%Y%m%d") +cp -av output/images/rootfs.squashfs.* output/images/uImage.* +echo_c 35 "\nRollback to home ...\n" cd -