Add .gitignore and .git_monitor_after.sh files

This commit is contained in:
2025-09-21 02:18:57 +02:00
parent 75b5093574
commit 8d60c25751
2 changed files with 27 additions and 0 deletions

26
.git-monitor_after.sh Executable file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.git-monitor-last-commit