Add .gitignore and .git_monitor_after.sh files
This commit is contained in:
26
.git-monitor_after.sh
Executable file
26
.git-monitor_after.sh
Executable 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.git-monitor-last-commit
|
||||||
Reference in New Issue
Block a user