Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hust-x86-simulator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yizhiran
hust-x86-simulator
Commits
70b3f4bd
There was an error fetching the commit references. Please try again later.
Verified
Commit
70b3f4bd
authored
5 years ago
by
Recolic Keghart
Browse files
Options
Downloads
Patches
Plain Diff
better script
parent
cf187cbe
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+0
-7
0 additions, 7 deletions
.gitignore
recover.sh
+1
-0
1 addition, 0 deletions
recover.sh
setup.sh
+1
-0
1 addition, 0 deletions
setup.sh
submit.sh
+1
-0
1 addition, 0 deletions
submit.sh
with
3 additions
and
7 deletions
.gitignore
+
0
−
7
View file @
70b3f4bd
*.*
*
!*/
!Makefile
!README.md
!.gitignore
!init.sh
This diff is collapsed.
Click to expand it.
recover.sh
+
1
−
0
View file @
70b3f4bd
...
@@ -11,6 +11,7 @@ function env_set() {
...
@@ -11,6 +11,7 @@ function env_set() {
[
-z
${
STUID
}
]
&&
echo
"STUID must be set (RTFM)"
&&
exit
[
-z
${
STUID
}
]
&&
echo
"STUID must be set (RTFM)"
&&
exit
[
-z
${
STUNAME
}
]
&&
echo
"STUNAME must be set (RTFM)"
&&
exit
[
-z
${
STUNAME
}
]
&&
echo
"STUNAME must be set (RTFM)"
&&
exit
echo
"uploading public key..."
echo
"uploading public key..."
echo
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/id_rsa.pub"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/id_rsa.pub"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/id_rsa.pub"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
sleep
2
sleep
2
echo
"recover from remote git..."
echo
"recover from remote git..."
...
...
This diff is collapsed.
Click to expand it.
setup.sh
+
1
−
0
View file @
70b3f4bd
...
@@ -11,6 +11,7 @@ function env_set() {
...
@@ -11,6 +11,7 @@ function env_set() {
[
-z
${
STUID
}
]
&&
echo
"STUID must be set (RTFM)"
&&
exit
[
-z
${
STUID
}
]
&&
echo
"STUID must be set (RTFM)"
&&
exit
[
-z
${
STUNAME
}
]
&&
echo
"STUNAME must be set (RTFM)"
&&
exit
[
-z
${
STUNAME
}
]
&&
echo
"STUNAME must be set (RTFM)"
&&
exit
echo
"uploading public key..."
echo
"uploading public key..."
echo
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/RecolicPC.pub"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/RecolicPC.pub"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/RecolicPC.pub"
"https://
$hust_submit_server_host
/teach/api/uploads/pasetup"
sleep
2
sleep
2
echo
"setup git-remote..."
echo
"setup git-remote..."
...
...
This diff is collapsed.
Click to expand it.
submit.sh
+
1
−
0
View file @
70b3f4bd
...
@@ -17,4 +17,5 @@ wiki="https://$hust_submit_server_host/teach/api/uploads/"
...
@@ -17,4 +17,5 @@ wiki="https://$hust_submit_server_host/teach/api/uploads/"
tarball
=
$(
mktemp
-q
)
.tar.bz2
tarball
=
$(
mktemp
-q
)
.tar.bz2
bash
-c
"cd .. && tar cj
${
cwd
}
>
${
tarball
}
"
bash
-c
"cd .. && tar cj
${
cwd
}
>
${
tarball
}
"
echo
curl
-F
"task=
${
task
}
"
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"submission=@
${
tarball
}
"
${
wiki
}
upload
curl
-F
"task=
${
task
}
"
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"submission=@
${
tarball
}
"
${
wiki
}
upload
curl
-F
"task=
${
task
}
"
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"submission=@
${
tarball
}
"
${
wiki
}
upload
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment