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
a8eb38e5
There was an error fetching the commit references. Please try again later.
Commit
a8eb38e5
authored
6 years ago
by
jie
Browse files
Options
Downloads
Patches
Plain Diff
added hust adaptions
parent
858c5d67
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+4
-1
4 additions, 1 deletion
Makefile
setup.sh
+23
-0
23 additions, 0 deletions
setup.sh
submit.sh
+15
-0
15 additions, 0 deletions
submit.sh
with
42 additions
and
1 deletion
Makefile
+
4
−
1
View file @
a8eb38e5
...
@@ -11,6 +11,9 @@ clean:
...
@@ -11,6 +11,9 @@ clean:
submit
:
clean
submit
:
clean
git gc
git gc
STUID
=
$(
STUID
)
STUNAME
=
$(
STUNAME
)
bash
-c
"
$$(
curl -s http://moon.nju.edu.cn/people/yyjiang/teach/submit.sh
)
"
STUID
=
$(
STUID
)
STUNAME
=
$(
STUNAME
)
bash submit.sh
setup
:
STUID
=
$(
STUID
)
STUNAME
=
$(
STUNAME
)
bash setup.sh
.PHONY
:
default clean submit
.PHONY
:
default clean submit
This diff is collapsed.
Click to expand it.
setup.sh
0 → 100644
+
23
−
0
View file @
a8eb38e5
set
-e
[
-z
${
STUID
}
]
&&
echo
"STUID must be set (RTFM)"
&&
exit
[
-z
${
STUNAME
}
]
&&
echo
"STUNAME must be set (RTFM)"
&&
exit
echo
"uploading public key..."
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/id_rsa.pub"
https://dssl.cun.io/teach/api/uploads/pasetup
sleep
2
echo
"setup git-remote..."
git remote add hustpa pa@dssl.cun.io:
${
STUID
}
-git
git branch pa0
git branch pa1
git branch pa2
git branch pa3
git push hustpa pa0
git push hustpa pa1
git push hustpa pa2
git push hustpa pa3
git branch
-u
hustpa/pa0 pa0
git branch
-u
hustpa/pa1 pa1
git branch
-u
hustpa/pa2 pa2
git branch
-u
hustpa/pa3 pa3
echo
"done!"
This diff is collapsed.
Click to expand it.
submit.sh
0 → 100644
+
15
−
0
View file @
a8eb38e5
set
-e
[
-z
${
STUID
}
]
&&
echo
"STUID must be set (RTFM)"
&&
exit
[
-z
${
STUNAME
}
]
&&
echo
"STUNAME must be set (RTFM)"
&&
exit
echo
-n
"The task to be submitted > "
read
task
cwd
=
${
PWD
##*/
}
echo
"
${
STUID
}
(
${
STUNAME
}
) submitting
${
task
}
..."
wiki
=
'https://dssl.cun.io/teach/api/uploads/'
tarball
=
$(
mktemp
-q
)
.tar.bz2
bash
-c
"cd .. && tar cj
${
cwd
}
>
${
tarball
}
"
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