Skip to content

Commit

Permalink
standardize LOGFILE definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
znmeb committed Oct 14, 2024
1 parent 0f6cbe1 commit 5c27a9c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 6 additions & 2 deletions CLAMS-devel/1_jammy_distrobox_setup/1_base_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ set -e

./unminimize.sh

echo "Defining LOGFILE"
export LOGFILE=$PWD/1_base_packages.log
rm --force $LOGFILE

echo "Installing base packages"
export DEBIAN_FRONTEND=noninteractive
sudo apt-get install --assume-yes \
/usr/bin/time sudo apt-get install --assume-yes \
apt-file \
autoconf \
automake \
Expand Down Expand Up @@ -59,6 +63,6 @@ sudo apt-get install --assume-yes \
xz-utils \
wget \
zsh \
> 1_base_packages.log 2>&1
>> $LOGFILE 2>&1

echo "Finished"
12 changes: 9 additions & 3 deletions CLAMS-devel/1_jammy_distrobox_setup/unminimize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

set -e

echo "Defining LOGFILE"
export LOGFILE=$PWD/unminimize.log
rm --force $LOGFILE

echo "Updating package cache"
export DEBIAN_FRONTEND=noninteractive
/usr/bin/time sudo apt-get update \
> unminimize.log 2>&1
>> $LOGFILE 2>&1

echo "Upgrading packages"
/usr/bin/time sudo apt-get upgrade --assume-yes \
>> unminimize.log 2>&1
>> $LOGFILE 2>&1

echo "Restoring missing 'man' pages"
sudo touch /etc/dpkg/dpkg.cfg.d/excludes
echo "Y" | /usr/bin/time sudo unminimize \
>> unminimize.log 2>&1
>> $LOGFILE 2>&1
2 changes: 1 addition & 1 deletion CLAMS-devel/cforth_platformio/test_board.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ source ../set_pico_envars
export PIO_ENVIRONMENT=${1-rpipico}
export BOARD_TAG=${2-""}
export LOGFILE="$PWD/${PIO_ENVIRONMENT}${BOARD_TAG}.log"
rm -f $LOGFILE
rm --force $LOGFILE

echo "Activating PlatformIO virtual environment"
source $ACTIVATE_PLATFORMIO_VENV
Expand Down

0 comments on commit 5c27a9c

Please sign in to comment.