From 711fe4e4d69c8d75b2810201275f55c009868309 Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Fri, 6 Jun 2014 11:47:32 +0000
Subject: [PATCH] Settings for RadioHDL.

---
 tools/setup_radiohdl.sh | 44 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100755 tools/setup_radiohdl.sh

diff --git a/tools/setup_radiohdl.sh b/tools/setup_radiohdl.sh
new file mode 100755
index 0000000000..c30dd3a497
--- /dev/null
+++ b/tools/setup_radiohdl.sh
@@ -0,0 +1,44 @@
+#!/bin/bash
+###############################################################################
+#
+# Copyright (C) 2014
+# ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
+# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+###############################################################################
+
+# Only run this script once
+if [ -z "${RADIOHDL_SH}" ]; then
+export RADIOHDL_SH=true
+echo "Setup RadioHDL environment"
+
+# Define $SVN in .bashrc
+export UNB=${SVN}/UniBoard_FP7/UniBoard/trunk
+export RADIOHDL=${SVN}/UniBoard_FP7/RadioHDL/trunk
+export HDL_BUILD_DIR=${RADIOHDL}/build
+
+# Add search paths for executeables to $PATH
+PATH=${PATH}:\
+${RADIOHDL}/tools/quartus:\
+${RADIOHDL}/tools/modelsim
+export PATH
+
+#UniBoard Python Environment
+export UPE=${UNB}/Software/python
+export ONECLICK=${RADIOHDL}/tools/oneclick
+export PYTHONPATH=${UPE}/base:${UPE}/peripherals:${UPE}/reginfo:${ONECLICK}/base
+
+fi
\ No newline at end of file
-- 
GitLab