Permalink
Browse files

Handy script to avoid make dev

  • Loading branch information...
1 parent bca5baf commit 01b507a59a25e27b7084bf68d27ac383672faf33 @davisp davisp committed May 24, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 rel/link_dev.sh
View
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+mklinks() {
+ for node in `ls -d rel/dev?`; do
+ app=`basename $1`
+ apppath=`ls -d $node/lib/$app*`
+
+ rm -rf $apppath/ebin
+ rm -rf $apppath/include
+ rm -rf $apppath/priv
+
+ ln -s $PWD/$1/ebin $apppath/ebin 2>/dev/null
+ ln -s $PWD/$1/include $apppath/include 2>/dev/null
+ ln -s $PWD/$1/priv $apppath/priv 2>/dev/null
+ done
+}
+
+for dir in `ls -d deps/*`; do
+ mklinks $dir
+done
+
+mklinks apps/couch

0 comments on commit 01b507a

Please sign in to comment.