summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2010-06-23 12:09:02 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2010-06-23 12:09:02 +0300
commitba57c30719fa181a203d87ff780651a71dc70fa3 (patch)
tree1e25fa1534fbc75c97da9f52dc1a3bb01945546e
parent7a1dcb9b3a13d683e8a88fb9b742ffe10c4f7f58 (diff)
setup now sets up all projects
-rwxr-xr-xsetup38
1 files changed, 33 insertions, 5 deletions
diff --git a/setup b/setup
index ade5a78..4802fb9 100755
--- a/setup
+++ b/setup
@@ -7,12 +7,40 @@
# Extra setup to run
TOOLS_DIR=`dirname $0`
+# FIXME: proper usage message
+usage() {
+ echo >&2 "Usage: $0 <name>"
+}
+
+name="$1"
+case "$name" in
+ asterisk)
+ # Use the dummy menuselect:
+ mkdir -p menuselect
+ (cd menuselect; ln -s ../$TOOLS_DIR/menuselect/* .)
+ make -C menuselect dummies
+ ;;
+ dahdi-tools)
+ # A really-dummy menuselect
+ mkdir menuselect
+ cp $TOOLS_DIR/menuselect/Makefile menuselect
+ ln -s /bin/true menuselect/menuselect
+ ;;
+ dahdi-linux)
+ ln -s ../../../octapi/software drivers/dahdi/oct612x
+ if [ ! -d ../octapi ]; then
+ echo >&2 "$0: Warning: dahdi-linux was set up, but you still need to fetch octapi."
+ fi
+ ;;
+ libpri)
+ : # Nothing special to fix. Master already set to 1.4.
+ ;;
+ *)
+ usage; exit 1;;
+esac
+
# Just in case you'll use git-svn here as well:
ln -s $TOOLS_DIR/AUTHORS .
git config --add svn.authorsfile AUTHORS
-ln -s $TOOLS_DIR/asterisk_gitignore .gitignore
-
-mkdir -p menuselect
-(cd menuselect; ln -s ../$TOOLS_DIR/menuselect/* .)
-make -C menuselect dummies
+ln -s $TOOLS_DIR/${name}_gitignore .gitignore