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
recolic-hust
hust-x86-simulator
Commits
141c9543
There was an error fetching the commit references. Please try again later.
Commit
141c9543
authored
6 years ago
by
jie
Browse files
Options
Downloads
Patches
Plain Diff
added necessary ENVs to bashrc
parent
bb184663
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recover.sh
+9
-0
9 additions, 0 deletions
recover.sh
setup.sh
+9
-1
9 additions, 1 deletion
setup.sh
with
18 additions
and
1 deletion
recover.sh
+
9
−
0
View file @
141c9543
function
env_set
()
{
sed
-i
-e
"/^export
$2
=.*/d"
~/.bashrc
echo
"export
$2
=
`
readlink
-e
$1
`
"
>>
~/.bashrc
}
[
-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
...
@@ -25,5 +29,10 @@ git checkout hustpa/pa4
...
@@ -25,5 +29,10 @@ git checkout hustpa/pa4
git checkout
-b
pa4 hustpa/pa4
git checkout
-b
pa4 hustpa/pa4
git checkout hustpa/pa5
git checkout hustpa/pa5
git checkout
-b
pa5 hustpa/pa5
git checkout
-b
pa5 hustpa/pa5
echo
"set ENV ..."
env_set nemu NEMU_HOME
env_set nexus-am AM_HOME
env_set navy-apps NAVY_HOME
source
~/.bashrc
echo
"done!"
echo
"done!"
This diff is collapsed.
Click to expand it.
setup.sh
+
9
−
1
View file @
141c9543
function
env_set
()
{
sed
-i
-e
"/^export
$2
=.*/d"
~/.bashrc
echo
"export
$2
=
`
readlink
-e
$1
`
"
>>
~/.bashrc
}
[
-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
...
@@ -24,5 +28,9 @@ git branch -u hustpa/pa2 pa2
...
@@ -24,5 +28,9 @@ git branch -u hustpa/pa2 pa2
git branch
-u
hustpa/pa3 pa3
git branch
-u
hustpa/pa3 pa3
git branch
-u
hustpa/pa4 pa4
git branch
-u
hustpa/pa4 pa4
git branch
-u
hustpa/pa5 pa5
git branch
-u
hustpa/pa5 pa5
echo
"set ENV ..."
env_set nemu NEMU_HOME
env_set nexus-am AM_HOME
env_set navy-apps NAVY_HOME
source
~/.bashrc
echo
"done!"
echo
"done!"
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