Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
78f0fccb
Commit
78f0fccb
authored
5 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
add init_hdl.sh
parent
dcc4efc1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
init_hdl.sh
+42
-0
42 additions, 0 deletions
init_hdl.sh
with
42 additions
and
0 deletions
init_hdl.sh
0 → 100644
+
42
−
0
View file @
78f0fccb
#!/usr/bin/env bash -e
###############################################################################
#
# Copyright (C) 2018
# 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/>.
#
# $Id$
#
###############################################################################
#
# Initialisation script to setup the environment variables for this branch
#
#
# Make sure it is sourced and no one accidentally gave the script execution rights and just executes it.
if
[
"
${
0
}
"
!=
"bash"
]
;
then
echo
"ERROR: Use this command with '. ' or 'source '"
exit
fi
# Figure out where this script is located and set environment variables accordingly
export
RADIOHDL_WORK
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
# setup paths to build and config dir if not already defined by the user.
export
HDL_BUILD_DIR
=
${
HDL_BUILD_DIR
:-${
RADIOHDL_WORK
}
/build
}
echo
"RadioHDL environment will be setup for"
$RADIOHDL_WORK
.
../radiohdl/init_radiohdl.sh
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment