Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
a88ca9e5
Commit
a88ca9e5
authored
8 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
add csh setup file
parent
92a5fd5a
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.csh
+124
-0
124 additions, 0 deletions
setup.csh
src/python/dm/__init__.py
+1
-1
1 addition, 1 deletion
src/python/dm/__init__.py
with
125 additions
and
1 deletion
setup.csh
0 → 100644
+
124
−
0
View file @
a88ca9e5
#!/bin/csh
# DM setup script for C-type shells
set tmpFile=/tmp/setup.$$
lsof +p $$ >& $tmpFile
set myDir=`cat $tmpFile | grep setup.csh | grep -v dm.setup | sed 's?(.*??g' | awk '{print $NF}'`
set myDir=`dirname $myDir`
rm -f $tmpFile
set currentDir=`pwd`
cd $myDir
if ( $?DM_ROOT_DIR ) then
if ( "$DM_ROOT_DIR" != `pwd` ) then
echo "WARNING: Resetting DM_ROOT_DIR environment variable (old value: $DM_ROOT_DIR)"
endif
endif
setenv DM_ROOT_DIR `pwd`
setenv DM_HOST_ARCH `uname | tr \[A-Z\] \[a-z\]`-`uname -m`
if ( ! $?DM_INSTALL_DIR ) then
setenv DM_INSTALL_DIR $DM_ROOT_DIR/..
if ( -d $DM_INSTALL_DIR ) then
cd $DM_INSTALL_DIR
setenv DM_INSTALL_DIR `pwd`
endif
endif
if ( ! $?DM_VAR_DIR ) then
setenv DM_VAR_DIR $DM_ROOT_DIR/../var
if ( -d $DM_VAR_DIR ) then
cd $DM_VAR_DIR
setenv DM_VAR_DIR `pwd`
endif
endif
# Check support setup
if ( ! $?DM_SUPPORT_DIR ) then
setenv DM_SUPPORT_DIR $DM_ROOT_DIR/../support
if ( -d $DM_SUPPORT_DIR ) then
cd $DM_SUPPORT_DIR
setenv DM_SUPPORT_DIR `pwd`
endif
endif
if ( ! -d $DM_SUPPORT_DIR ) then
echo "ERROR: $DM_SUPPORT_DIR directory does not exist. Developers should point DM_SUPPORT_DIR to the desired area."
exit 1
endif
setenv DM_OPT_DIR $DM_SUPPORT_DIR/opt
setenv DM_GLASSFISH_DIR $DM_OPT_DIR/glassfish
# Setup path and other variables
setenv PATH ${DM_OPT_DIR}/node/bin:${PATH}
setenv PATH ${DM_OPT_DIR}/mongodb/${DM_HOST_ARCH}/bin:${PATH}
setenv PATH ${DM_OPT_DIR}/postgresql/${DM_HOST_ARCH}/bin:${PATH}
setenv PATH ${DM_OPT_DIR}/java/${DM_HOST_ARCH}/bin:${PATH}
setenv PATH ${DM_OPT_DIR}/ant/bin:${PATH}
setenv PATH ${DM_ROOT_DIR}/bin:${PATH}
if ( $?DM_STATION_NAME ) then
setenv PATH ${DM_ROOT_DIR}/bin/${DM_STATION_NAME}:${PATH}
endif
setenv PATH .:${PATH}
if ( ! $?LD_LIBRARY_PATH ) then
setenv LD_LIBRARY_PATH .
else
setenv LD_LIBRARY_PATH .:${LD_LIBRARY_PATH}
endif
# Setup python path.
# Check if we have local python
if ( ! $?DM_PYTHON_DIR ) then
set pythonDir=$DM_OPT_DIR/python/$DM_HOST_ARCH
else
set pythonDir=$DM_PYTHON_DIR
endif
if ( -d $pythonDir ) then
cd $pythonDir
set pythonDir=`pwd`
setenv PATH `pwd`/bin:${PATH}
setenv LD_LIBRARY_PATH `pwd`/lib:${LD_LIBRARY_PATH}
setenv DM_PYTHON_DIR $pythonDir
endif
if ( ! $?PYTHONPATH ) then
setenv PYTHONPATH $DM_ROOT_DIR/lib/python
else
setenv PYTHONPATH $DM_ROOT_DIR/lib/python:${PYTHONPATH}
endif
# Setup postgres.
if ( ! $?DM_POSTGRESQL_DIR ) then
set postgresqlDir=$DM_OPT_DIR/postgresql/$DM_HOST_ARCH
else
set postgresqlDir=$DM_POSTGRESQL_DIR
endif
if ( -d $postgresqlDir ) then
cd $postgresqlDir
set postgresqlDir=`pwd`
setenv PATH `pwd`/bin:${PATH}
setenv LD_LIBRARY_PATH `pwd`/lib:${LD_LIBRARY_PATH}
setenv DM_POSTGRESQL_DIR $postgresqlDir
endif
# Setup oracle libraries.
set oracleDir=$DM_OPT_DIR/oracle-client/$DM_HOST_ARCH
if ( -d $oracleDir ) then
setenv LD_LIBRARY_PATH $oracleDir:${LD_LIBRARY_PATH}
setenv PATH $oracleDir:${PATH}
endif
# Get back to where we were before invoking the setup script
cd $currentDir
# Print out user environment
echo
echo "Your DM environment is defined as follows:"
echo
env | grep DM_ | grep -v GDM_
echo
echo
This diff is collapsed.
Click to expand it.
src/python/dm/__init__.py
+
1
−
1
View file @
a88ca9e5
__version__
=
"
1.1 (2017.03.
06
)
"
__version__
=
"
1.1 (2017.03.
11
)
"
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