X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=patches%2F001_tinyos-sh.dpatch;fp=patches%2F001_tinyos-sh.dpatch;h=0000000000000000000000000000000000000000;hb=5834c9159ee2bcc18eca7c68c27d15a096c86e71;hp=2f5e73c0cc059b8f13b4922b45fb78d3350b42b9;hpb=22f8823563d79b5c84561c1bbfcd5ea4fd7b5668;p=tinyos-2.x.git diff --git a/patches/001_tinyos-sh.dpatch b/patches/001_tinyos-sh.dpatch deleted file mode 100755 index 2f5e73c0..00000000 --- a/patches/001_tinyos-sh.dpatch +++ /dev/null @@ -1,55 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 001_tinyos-sh.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Sourced file that sets up TinyOS environment, with per-user persistence - -@DPATCH@ - -diff -urN tinyos-2.1.0.orig/tinyos.sh tinyos-2.1.0/tinyos.sh ---- tinyos-2.1.0.orig/tinyos.sh 1969-12-31 17:00:00.000000000 -0700 -+++ tinyos-2.1.0/tinyos.sh 2008-08-27 13:28:48.000000000 -0600 -@@ -0,0 +1,43 @@ -+#! /usr/bin/env bash -+# Here we setup the environment -+# variables needed by the tinyos -+# make system -+ -+TOSBASE=/opt/tinyos -+ -+# $1 is a directory or tos version number -+# returns a fully rooted and valid TOSROOT -+getdir() -+{ -+ if [ -d "$1" -a -d "$1/tos" ]; then -+ echo "$1" -+ elif [ -d "$TOSBASE/$1" -a -d "$TOSBASE/$1/tos" ]; then -+ echo "$TOSBASE/$1" -+ fi -+} -+ -+# Clear TOS environment -+if [ -n "$TOSROOT" ]; then -+ CLASSPATH=$(echo $CLASSPATH | sed -e "s|:$TOSROOT/support/sdk/java||") -+fi -+unset TOSDIR MAKERULES -+ -+# Set TOS environment -+TOSROOT=$(getdir "$1") -+if [ -z "$TOSROOT" ]; then -+ TOSROOT=$(cat ~/.tosrc 2>/dev/null) -+fi -+ -+if [ -z "$TOSROOT" ]; then -+ echo "No TinyOS source directory found. Usage:" >&2 -+ echo "source /opt/tinyos/tinyos.sh [ | ]" >&2 -+ export TOSROOT TOSDIR MAKERULES -+else -+ echo "Setting up for TinyOS source in $TOSROOT" -+ echo "$TOSROOT" > ~/.tosrc -+ TOSDIR="$TOSROOT/tos" -+ CLASSPATH=$CLASSPATH:$TOSROOT/support/sdk/java -+ MAKERULES="$TOSROOT/support/make/Makerules" -+ export TOSROOT TOSDIR CLASSPATH MAKERULES -+fi -+unset TOSBASE tmp