Permalink
Browse files

Move wrapper scripts to bin folder and add path detection for binary

So that we don't have the path to my development structure hard coded
into the wrappers. We discover the path from the zeroth argument and use
that to find the alembic-fs binary.
  • Loading branch information...
1 parent a50e792 commit e3edf0f1f0619cbf64a83d93e21de4cdbec0e408 @michaeljones committed Nov 21, 2011
Showing with 51 additions and 45 deletions.
  1. +1 −1 Makefile
  2. +0 −22 abcd
  3. +0 −22 abcdebug
  4. +25 −0 bin/abcd
  5. +25 −0 bin/abcdebug
View
@@ -3,5 +3,5 @@ all:
make -C src $@
clean:
- rm -rf bin obj
+ rm -rf bin/alembic-fs obj
View
22 abcd
@@ -1,22 +0,0 @@
-#!/bin/tcsh -f
-
-set abc=$1
-
-set dir=${abc}d
-
-mkdir -p $dir
-$HOME/root/projects/alembic-fs/bin/alembic-fs -s $dir $abc
-
-cd $dir
-
-tcsh
-
-cd -
-
-fusermount -u $dir
-
-rmdir $dir
-
-
-
-
View
@@ -1,22 +0,0 @@
-#!/bin/tcsh -f
-
-set abc=$1
-
-set dir=${abc}d
-
-mkdir -p $dir
-$HOME/root/projects/alembic-fs/bin/alembic-fs -d -s $dir $abc
-
-cd $dir
-
-tcsh
-
-cd -
-
-fusermount -u $dir
-
-rmdir $dir
-
-
-
-
View
@@ -0,0 +1,25 @@
+#!/bin/tcsh -f
+
+# Get directory where this script is living
+set afsbin=${0:h}
+
+# Get name of the Alembic file and directory we'll be creating
+set abc=$1
+set dir=${abc}d
+
+mkdir -p $dir
+$afsbin/alembic-fs -s $dir $abc
+
+cd $dir
+
+tcsh
+
+cd -
+
+fusermount -u $dir
+
+rmdir $dir
+
+
+
+
View
@@ -0,0 +1,25 @@
+#!/bin/tcsh -f
+
+# Get directory where this script is living
+set afsbin=${0:h}
+
+# Get name of the Alembic file and directory we'll be creating
+set abc=$1
+set dir=${abc}d
+
+mkdir -p $dir
+$afsbin/alembic-fs -d -s $dir $abc
+
+cd $dir
+
+tcsh
+
+cd -
+
+fusermount -u $dir
+
+rmdir $dir
+
+
+
+

0 comments on commit e3edf0f

Please sign in to comment.