1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/link.sh
2016-03-13 09:31:45 -04:00

18 lines
334 B
Bash
Executable File

#!/bin/bash
##############################
#Create directory of all links
##############################
if [ -d "symlinks" ]
then
rm -r symlinks
fi
mkdir -p $OH_HOME/symlinks/hdl
mkdir -p $OH_HOME/symlinks/dv
pushd $OH_HOME/symlinks/hdl > /dev/null
ln -s ../../*/hdl/*.{v,vh} .
cd ../dv
ln -s ../../*/dv/*.v .
popd > /dev/null