diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/EdSy.py | 72 | ||||
-rwxr-xr-x | scripts/activity-install.sh | 5 | ||||
-rw-r--r-- | scripts/clean_trailing_whitespace.py | 25 | ||||
-rwxr-xr-x | scripts/create_symlinks.sh | 7 | ||||
-rwxr-xr-x | scripts/genpolist.py | 9 | ||||
-rw-r--r-- | scripts/install-extra-rpms.sh | 11 | ||||
-rwxr-xr-x | scripts/olpc_get_stuff.sh | 25 | ||||
-rw-r--r-- | scripts/pull_aclient.sh | 2 | ||||
-rw-r--r-- | scripts/pull_make.sh | 4 | ||||
-rw-r--r-- | scripts/rmext.py | 11 | ||||
-rwxr-xr-x | scripts/update-activity.sh | 20 | ||||
-rwxr-xr-x | scripts/update-index-all.sh | 5 |
12 files changed, 0 insertions, 196 deletions
diff --git a/scripts/EdSy.py b/scripts/EdSy.py deleted file mode 100644 index f778232..0000000 --- a/scripts/EdSy.py +++ /dev/null @@ -1,72 +0,0 @@ -import shelve - -class EdSy: - def __init__(self): - self.types =[] - self.controls = [] - self.sources = [] - self.fxs = [] - self.envelope = [] - self.locations = [] - self.connections = [] - self.duration = 0. - - def load(self, file): - self.fullPath = "/home/olpc/tamtam/Resources/SynthFiles/" + file - f = shelve.open( self.fullPath, 'r') - self.loadState(f) - f.close() - - def process(self): - for i in range(len(self.locations)): - if i < 4: - if self.locations[i][1] >= 700: - self.locations[i] = [450,710] - else: - self.locations[i][0] -= 150 - elif i < 8: - if self.locations[i][1] >= 700: - self.locations[i] = [225,710] - else: - self.locations[i][0] -= 150 - elif i < 12: - if self.locations[i][1] >= 700: - self.locations[i] = [675,710] - else: - self.locations[i][0] -= 150 - elif i == 12: - self.locations[i] = [450,625] - - def save(self): - f = shelve.open(self.fullPath, 'n') - self.saveState(f) - f.close() - - def saveState( self, state ): - state['types'] = self.types - state['controls'] = self.controls - state['sources'] = self.sources - state['fxs'] = self.fxs - state['envelope'] = self.envelope - state['locations'] = self.locations - state['connections'] = self.connections - state['duration'] = self.duration - - def loadState( self, state ): - self.types = state['types'] - self.controls = state['controls'] - self.sources = state['sources'] - self.fxs = state['fxs'] - self.envelope = state['envelope'] - self.locations = state['locations'] - self.connections = state['connections'] - self.duration = state['duration'] - - print "types: ", self.types - print "controls: ", self.controls - print "sources: ", self.sources - print "fxs: ", self.fxs - print "envelope: ", self.envelope - print "locations: ", self.locations - print "connections: ", self.connections - print "duration: ", self.duration diff --git a/scripts/activity-install.sh b/scripts/activity-install.sh deleted file mode 100755 index 0296f18..0000000 --- a/scripts/activity-install.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -rm -R /usr/share/activities/TamTam.activity -rm -R /home/olpc/.sugar/default/tamtam -python setup.py install /usr -rm TamTam-*.xo diff --git a/scripts/clean_trailing_whitespace.py b/scripts/clean_trailing_whitespace.py deleted file mode 100644 index 57e793c..0000000 --- a/scripts/clean_trailing_whitespace.py +++ /dev/null @@ -1,25 +0,0 @@ - -import sys -import os -import shutil - -fName = sys.argv[1] - -i = 0 -while os.path.exists( fName + ".bak%d" % i ): i += 1 -bakName = fName + ".bak%d" % i - -shutil.move( fName, bakName ) - -r = open(bakName) -w = open(fName, "w" ) -for line in r: - line = line[:-1] - while len(line) and (line[-1] == " " or line[-1] == " "): - line = line[:-1] - w.write(line+"\n") - -w.close() -r.close() - - diff --git a/scripts/create_symlinks.sh b/scripts/create_symlinks.sh deleted file mode 100755 index 702b23b..0000000 --- a/scripts/create_symlinks.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -rm -rf /usr/share/activities/TamTam* - -ln -s /home/olpc/tamtam/TamTamEdit.activity /usr/share/activities/TamTamEdit.activity -ln -s /home/olpc/tamtam/TamTamJam.activity /usr/share/activities/TamTamJam.activity -ln -s /home/olpc/tamtam/TamTamSynthLab.activity /usr/share/activities/TamTamSynthLab.activity -ln -s /home/olpc/tamtam/TamTamMini.activity /usr/share/activities/TamTamMini.activity diff --git a/scripts/genpolist.py b/scripts/genpolist.py deleted file mode 100755 index 9f23272..0000000 --- a/scripts/genpolist.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python - -import os - -activities = ['../' + rep for rep in os.listdir('../') if rep.endswith('activity')] -for activity in activities: - print activity - for f in sorted(os.listdir(os.path.join(activity,'po'))): - print 'po/' + f
\ No newline at end of file diff --git a/scripts/install-extra-rpms.sh b/scripts/install-extra-rpms.sh deleted file mode 100644 index 11c325a..0000000 --- a/scripts/install-extra-rpms.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -mkdir tmp -cd tmp -wget http://www.studioimaginaire.com/~tamtam/rpm/rpms-olpc-gcc-stuff.zip -wget http://www.studioimaginaire.com/~tamtam/rpm/rpms-olpc-vim-git.zip -unzip rpms-olpc-gcc-stuff.zip -unzip rpms-olpc-vim-git.zip -mv rpms-olpc-gcc-stuff/*.rpm . -mv rpms-olpc-vim-git/*.rpm . -rpm -i *.rpm - diff --git a/scripts/olpc_get_stuff.sh b/scripts/olpc_get_stuff.sh deleted file mode 100755 index be55b1b..0000000 --- a/scripts/olpc_get_stuff.sh +++ /dev/null @@ -1,25 +0,0 @@ - -#NEED_FOR_SURE='vim-common vim-enhanced screen git-core ctags sox irssi diffutils' -#ALTERNATE_WM='xterm fluxbox' -GCC_STUFF='gcc make python-devel gcc-c++ csound-devel swig alsa-lib-devel' - -yum install $NEED_FOR_SURE $ALTERNATE_WM $GCC_STUFF - -if [ ! -f ~/.Xdefaults ] ; then - #use a legible xterm font - echo 'xterm*font: -*-*-*-*-*-*-20-*-*-*-*-*-*-*' > ~/.Xdefaults -fi - -echo 'please ensure your ssh key is in place, then type your git-repo username: ' -echo 'copy over .vim* from somewhere' -echo 'export GIT_AUTHOR_NAME GIT_COMMITTER_NAME in .bashrc' -echo 'edit olpc's .xinitrc file to change the window-manager' - - -echo 'this might help you get your git repo back up:' -echo 'read USER' -echo 'mkdir cvs' -echo 'cd cvs' -echo 'git-clone "git+ssh://$USER@dev.laptop.org/git/projects/tamtam" tamtam' - - diff --git a/scripts/pull_aclient.sh b/scripts/pull_aclient.sh deleted file mode 100644 index c6edac1..0000000 --- a/scripts/pull_aclient.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -wget http://www-etud.iro.umontreal.ca/~bergstrj/tamtam/aclient.so -o Util/Clooper/aclient.so diff --git a/scripts/pull_make.sh b/scripts/pull_make.sh deleted file mode 100644 index 533958a..0000000 --- a/scripts/pull_make.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -git-pull -cd Util/Clooper -make aclient.so diff --git a/scripts/rmext.py b/scripts/rmext.py deleted file mode 100644 index 91373e5..0000000 --- a/scripts/rmext.py +++ /dev/null @@ -1,11 +0,0 @@ -import os -import sys - -if len(sys.argv) > 1: - path = sys.argv[1] - l = os.listdir(path) - - for elem in l: - os.rename(path + elem , path + os.path.splitext(elem)[0]) -else: - print 'Please input a path' diff --git a/scripts/update-activity.sh b/scripts/update-activity.sh deleted file mode 100755 index 624ad45..0000000 --- a/scripts/update-activity.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -DEST=/usr/share/activities/TamTam.activity -SRC=. -PYTHON_DIR=" . Jam Edit miniTamTam Util SynthLab Generation Resources " -OTHER_DIRS=" " -FILES="Util/Clooper/aclient.so Resources/crop.csd Resources/univorc.csd " -for DIR in $PYTHON_DIR ; do - echo cp $SRC/$DIR/*.py $DEST/$DIR - cp $SRC/$DIR/*.py $DEST/$DIR -done - -for DIR in $OTHER_DIRS ; do - echo cp -R $SRC/$DIR/* $DEST/$DIR - cp -R $SRC/$DIR/* $DEST/$DIR -done - -for F in $FILES ; do - echo cp $F $DEST/$F - cp $F $DEST/$F -done diff --git a/scripts/update-index-all.sh b/scripts/update-index-all.sh deleted file mode 100755 index 30dd058..0000000 --- a/scripts/update-index-all.sh +++ /dev/null @@ -1,5 +0,0 @@ - #!/bin/sh - -for F in $( git-status | grep modified | cut -f 2 | cut -d ' ' -f 4 ) ; do - git-update-index $F -done |