Last change
on this file since 3753 was 1682, checked in by Bruno Cornec, 17 years ago |
Remove DOCDIR usage in mindi + various build fixes
|
-
Property svn:executable
set to
*
|
File size:
741 bytes
|
Rev | Line | |
---|
[1674] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
[1676] | 3 | (
|
---|
[1674] | 4 | if [ _"$1" == _"" ]; then
|
---|
[1682] | 5 | echo "Syntax: setupqemu VM|all"
|
---|
[1674] | 6 | exit -1
|
---|
| 7 | fi
|
---|
| 8 | cat /users/bruno/pb/svn/devel/pb/contrib/pbsetupqemu /users/bruno/pb/svn/devel/pb/lib/ProjectBuilder/Distribution.pm > /tmp/pbscript
|
---|
[1682] | 9 | if [ _"$1" == "all" ]; then
|
---|
| 10 | pb -r `pwd` -p mondorescue -a root -s /tmp/pbscript script2vm
|
---|
[1679] | 11 | ssh -p 2222 root@localhost halt
|
---|
| 12 | sleep 120
|
---|
[1682] | 13 | ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill
|
---|
| 14 | else
|
---|
| 15 | for m in $*; do
|
---|
| 16 | pb -r `pwd` -p mondorescue -m $m -a root -s /tmp/pbscript script2vm ; pb -p mondorescue -m $m build2vm
|
---|
| 17 | #ssh -p 2222 root@localhost halt
|
---|
| 18 | #sleep 120
|
---|
| 19 | #ps auhxww | grep qemu | grep -Ev 'grep|setupqemu' | awk '{print $2}' | xargs kill -9
|
---|
| 20 | done
|
---|
| 21 | fi
|
---|
[1676] | 22 | ) 2>&1 | tee /tmp/setupqemu.log
|
---|
Note:
See
TracBrowser
for help on using the repository browser.