1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/scripts/link.sh
Andreas Olofsson c3b83621e0 Reorg cleanup
2016-03-22 08:27:59 -04:00

18 lines
342 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 ../../src/*/hdl/*.{v,vh} .
cd ../dv
ln -s ../../src/*/dv/*.v .
popd > /dev/null