Revision: 7548
http://svn.sourceforge.net/supercollider/?rev=7548&view=revAuthor: alexnorman
Date: 2008-05-07 16:41:01 -0700 (Wed, 07 May 2008)
Log Message:
-----------
installing the sc classes with this [hopefully soon to be replaced by scons]
install script
Modified Paths:
--------------
trunk/editors/scvim/INSTALL
Modified: trunk/editors/scvim/INSTALL
===================================================================
--- trunk/editors/scvim/INSTALL 2008-05-07 09:24:28 UTC (rev 7547)
+++ trunk/editors/scvim/INSTALL 2008-05-07 23:41:01 UTC (rev 7548)
@@ -1,17 +1,33 @@
#!/bin/sh
+
VIM_FILES_DEST=$HOME/.vim
BIN_DEST=/usr/local/bin/
-SCCLASS_DEST=/usr/local/share/SuperCollider/Extensions/scvim
+SCEXTENSION_DIR=/usr/local/share/SuperCollider/Extensions
+SCCLASS_DEST=$SCEXTENSION_DIR/scvim
CACHE_DIR=$HOME/.scvim
cp -r indent ftplugin syntax $VIM_FILES_DEST
cp bin/* $BIN_DEST
-cp -r scclasses/ $SCCLASS_DEST
+#make sure the Extensions directory exists
+if [ ! -d $SCEXTENSION_DIR ]
+then
+ mkdir $SCEXTENSION_DIR
+fi
+
+#make sure the Extensions/scvim dir exists
+if [ ! -d $SCCLASS_DEST ]
+then
+ mkdir $SCCLASS_DEST
+fi
+
+cp -r scclasses/* $SCCLASS_DEST/
+
#create the cache dir if it doesn't exist.
if [ ! -d $CACHE_DIR ]
then
mkdir $CACHE_DIR
+ #change ownership
if [ $SUDO_USER ]
then
chown $SUDO_USER $CACHE_DIR
@@ -22,11 +38,13 @@
if [ ! -d $CACHE_DIR/doc ]
then
mkdir $CACHE_DIR/doc
+ #change ownership
if [ $SUDO_USER ]
then
chown $SUDO_USER $CACHE_DIR/doc
fi
fi
+
#copy the help file
cp SCVim.scd $CACHE_DIR/doc/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
_______________________________________________
sc-dev mailing list
sc-dev@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev