From 8d60c25751b1bba40efa53b81c4ae8f7eea7cba5 Mon Sep 17 00:00:00 2001 From: Jali Date: Sun, 21 Sep 2025 02:18:57 +0200 Subject: [PATCH] Add .gitignore and .git_monitor_after.sh files --- .git-monitor_after.sh | 26 ++++++++++++++++++++++++++ .gitignore | 1 + 2 files changed, 27 insertions(+) create mode 100755 .git-monitor_after.sh create mode 100644 .gitignore diff --git a/.git-monitor_after.sh b/.git-monitor_after.sh new file mode 100755 index 0000000..042c40e --- /dev/null +++ b/.git-monitor_after.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# Copies the source files to the ITS system + +MLFTP="/opt/pidp10/bin/mlftp" + +SOURCEFILE="./src/SUDOKU.MID" +TARGETFILE="SUDOKU 1 JALI;" +PUZZLEFILE="./src/PUZZL1.SUDOKU" +PUZZLETARGET="PUZZL1 SUDOKU JALI;" + + +# Functions +log_message() { + local level=$1 + local message=$2 + timestamp=$(date +'%Y-%m-%d %H:%M:%S') + #echo "$timestamp [$level] $message" >> "$LOG_FILE" + echo "$timestamp [$level] $message" # Also print to console (optional) +} + +# Main execution +log_message "INFO" "Uploading $SOURCEFILE to $TARGETFILE on ITS" +$MLFTP -w its "$TARGETFILE" $SOURCEFILE + +log_message "INFO" "Uploading $PUZZLEFILE to $PUZZLETARGET on ITS" +$MLFTP -w its "$PUZZLETARGET" $PUZZLEFILE diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e013480 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.git-monitor-last-commit