Last change
on this file since 10612 was 10612, checked in by rick, 13 years ago |
Make port building whole bunch more stupid:
1) Bundle ports in the tree itself, instead of global shared banch.
2) Copy the local ports just in the /usr/ports tree to allow playing around
with just the ordenary tools.
|
-
Property svn:executable
set to
*
|
File size:
526 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # Rsync minimal changes directly to live image
|
---|
3 |
|
---|
4 | . $(dirname $0)/package-build.inc.sh
|
---|
5 |
|
---|
6 | HOST=$1
|
---|
7 | SLICE=${2:-''}
|
---|
8 |
|
---|
9 | if [ -z "$1" ]; then
|
---|
10 | echo "Usage $0: <host> [<p1|p2>]"
|
---|
11 | echo ""
|
---|
12 | echo "By default update the next available slice"
|
---|
13 | exit 128
|
---|
14 | fi
|
---|
15 |
|
---|
16 | # Find object directory
|
---|
17 | IMG=${OBJDIR}/_.disk.image
|
---|
18 |
|
---|
19 | if [ ! -r "${IMG}" ]; then
|
---|
20 | p_err Source ${IMG} does not exists
|
---|
21 | exit 1
|
---|
22 | fi
|
---|
23 |
|
---|
24 | echo "# Going to deploy $IMG to $HOST (slice:$SLICE)"
|
---|
25 | ssh $HOST mount || exit 1
|
---|
26 | cat $IMG | ssh $HOST /tools/update$SLICE || exit 1
|
---|
27 |
|
---|
28 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.