source: scripts/locker-update @ 5c81472

debianrelease-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 5c81472 was 5c81472, checked in by Nelson Elhage <nelhage@mit.edu>, 12 years ago
Import barnowl-locker-* from /mit/nelhage/bin/
  • Property mode set to 100755
File size: 631 bytes
Line 
1#!/bin/bash
2NEWVERSION="$1"
3
4if [ -z "$NEWVERSION" ]; then
5    echo "Usage: $0 new-version" 1>&2
6    exit -1;
7fi
8
9cd /mit/barnowl/arch/
10
11for i in *; do
12    if [ -L "$i" ]; then
13        echo "Skipping $i as a symbolic link..."
14    else
15        if [ "$i" = "common" ]; then
16            echo "Skipping 'common'..."
17        else
18            if ! [ -e "$i/bin/$NEWVERSION" ]; then
19                echo "New version $NEWVERSION not built for arch $i...";
20            else
21                ln -sf "../../common/bin/barnowl" "$i/bin/barnowl"
22                ln -sf "$NEWVERSION" "$i/bin/barnowl.real"
23            fi
24        fi
25    fi
26done;
Note: See TracBrowser for help on using the repository browser.