9 alert
--warning "$*" "Ok"
13 alert
--stop "$*" "Ok"
22 if [ ! -d "$DESTVOL" ]; then
23 error
"$DESTVOL not mounted"
28 find_current_revision
() {
29 log
"Getting url of latest revision..."
30 tf
=/tmp
/haiku-files.org_raw_$$
31 wget
-O $tf http
://haiku-files.org
/raw
/ >/dev
/null
2>&1 || error
"wget error"
32 url
="$(grep -m1 'http:.*nightly-.*gcc2hybrid-raw.zip' "$tf" | sed 's/.*href="//;s
/".*//')"
33 test -n "$url" || error
"cannot find latest build"
39 download_current_revision
() {
40 #if [ ! -e "$file" ]; then
41 log
"Downloading latest revision: $file"
42 wget
-c "$url" || error
"cannot download latest revision"
47 unzip_current_revision
() {
48 if [ ! -e "haiku-nightly.image" ]; then
55 install_current_revision
() {
58 mount
-ro "$PWD/haiku-nightly.image" "$LOOPVOL" || error
"mount"
61 copyattr
-r -d "$LOOPVOL"/* "$DESTVOL/"
67 makebootable_install
() {
68 log
"Making the partition bootable..."
69 makebootable
"$DESTVOL/"
73 customize_install
() {
74 log
"Copying files..."
75 copyattr
-r -d files
/* "$DESTVOL/"
81 download_current_revision
82 #file=haiku-nightly-r37641-x86gcc2hybrid-raw.zip
83 unzip_current_revision
84 install_current_revision