Skip to content

Commit

Permalink
Add lectura automation sripts
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne committed Sep 20, 2024
1 parent 012043a commit 26b8702
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .example.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UA_NET_ID=your_net_id # first initial + last name
LECTURA_PASSWORD=your_password
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
tests/**/skip*.sm*

**repo-link.txt
Expand Down
20 changes: 20 additions & 0 deletions connect-lectura
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

source ./.env

if [ -z $UA_NET_ID ]; then
echo "Set UA_NET_ID in .env"
exit 1
fi

if [ -z $LECTURA_PASSWORD ]; then
echo "Set LECTURA_PASSWORD in .env"
exit 1
fi

# Copy lectura password to clipboard
echo $LECTURA_PASSWORD | clipboard

echo -e "\nPassword copied to clipboard"
echo "Connecting to lectura..."
ssh $UA_NET_ID@lectura.cs.arizona.edu
Empty file modified install
100644 → 100755
Empty file.
Empty file modified start-wiki
100644 → 100755
Empty file.
25 changes: 25 additions & 0 deletions submit-lectura
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

source ./.env

if [ -z $1 ]; then
echo "No file provided"
exit 1
fi

if [ ! -f $1 ]; then
echo "File does not exist"
exit 1
fi

if [ -z $LECTURA_PASSWORD ]; then
echo "Set LECTURA_PASSWORD in .env"
exit 1
fi

# Copy lectura password to clipboard
echo $LECTURA_PASSWORD | clipboard

echo -e "\nPassword copied to clipboard"

scp $1 $UA_NET_ID@lectura.cs.arizona.edu:~/submit-lectura
Empty file modified test-compile
100644 → 100755
Empty file.

0 comments on commit 26b8702

Please sign in to comment.