Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
59bcb2ac
Commit
59bcb2ac
authored
Mar 13, 2002
by
Mike Hibler
Browse files
Don't download/install if already there
Clean up afterward
parent
86d6b225
Changes
1
Hide whitespace changes
Inline
Side-by-side
event/trafgen/tg-install
View file @
59bcb2ac
#!/bin/sh
# cd from <builddir>/event/trafgen to testbed/event/trafgen
cd
$1
fetch http://www.emulab.net/tg2.0.tar.gz
#fetch http://www.postel.org/tg/tg2.0.tar.gz
tar
xzf tg2.0.tar.gz
patch
-p0
< tg.patch
if
[
!
-d
$1
/tg2.0/src
]
;
then
echo
"Downloading tg2.0 source to
$1
..."
cd
$1
fetch http://www.emulab.net/tg2.0.tar.gz
#fetch http://www.postel.org/tg/tg2.0.tar.gz
echo
"Unpacking/patching tg2.0 source ..."
tar
xzf tg2.0.tar.gz
patch
-p0
< tg.patch
rm
-f
tg2.0.tar.gz tg2.0/
*
/
*
/
*
.orig
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment