OpenCores
URL https://opencores.org/ocsvn/radiohdl/radiohdl/trunk

Subversion Repositories radiohdl

[/] [radiohdl/] [trunk/] [set_hdllib_variable] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 danv
#!/bin/bash
2
###############################################################################
3
#
4
# Copyright (C) 2018
5
# ASTRON (Netherlands Institute for Radio Astronomy) 
6
# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
7
#
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, either version 3 of the License, or
11
# (at your option) any later version.
12
#
13
# This program is distributed in the hope that it will be useful,
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
# GNU General Public License for more details.
17
#
18
# You should have received a copy of the GNU General Public License
19
# along with this program.  If not, see .
20
#
21
# $Id$
22
#
23
###############################################################################
24
#
25
# Script for adopting RadioHDL configuration parameters as envrionment variables.
26
# See config_variable.py for syntax.
27
#
28
if [ "${1:-}" == "--verbose" ]; then
29
    verbose=$1
30
    shift
31
else
32
    verbose=""
33
fi
34
 
35
_VAR_ASSIGNMENTS=`${RADIOHDL_GEAR}/core/export_hdllib_variables.py $@`
36
if [ $? != 0 ]; then
37
    echo "Error occured during adoption of configuration settings."
38
    unset _VAR_ASSIGNMENTS
39
    exit 1
40
fi
41
 
42
if [ -n "$verbose" ]; then
43
    echo "Setting environment variables:" $_VAR_ASSIGNMENTS
44
fi
45
 
46
eval $_VAR_ASSIGNMENTS
47
unset _VAR_ASSIGNMENTS

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.