~much-devs/muchmuch/imap

« back to all changes in this revision

Viewing changes to docs/skel/generate-plugin-horseshit.sh

  • Committer: Paul Tagliamonte
  • Date: 2011-10-07 02:40:38 UTC
  • Revision ID: paultag@ubuntu.com-20111007024038-n3blhid83qbart23
This is what's known as a nuke.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
if [ "x$1" == "x" ]; then
4
 
        echo "Need a plugin name!"
5
 
        exit 1
6
 
fi
7
 
 
8
 
CRUFT=`echo $1 | tr "a-z" "A-Z"`
9
 
 
10
 
DESTFILE=../../notimap/protocol/$1.py
11
 
 
12
 
if [ -e $DESTFILE ]; then
13
 
        echo "$DESTFILE exists. Ctrl+C to stop, enter to remove and regenerate."
14
 
        read FOO
15
 
fi
16
 
 
17
 
cat ./plugin.py.example | sed s/XXX/$CRUFT/g > $DESTFILE