Changeset 35

Show
Ignore:
Timestamp:
08/30/06 11:25:00 (2 years ago)
Author:
verbosus
Message:

Added initial stub of django-mode.el, moved wget path in a variable in repubblica-iliad.sh, added Growl calls to clean_iliad.py

Location:
hacks/trunk
Files:
1 added
2 modified

Legend:

Unmodified
Added
Removed
  • hacks/trunk/clean_iliad.py

    r33 r35  
    1717REMOVABLES = ('.DS_Store', '._*') 
    1818ILIAD_PATH = os.path.normcase('/Volumes/iLiad') 
     19GROWLNOTIFY_PATH = os.path.normcase("/usr/local/bin/growlnotify") 
     20 
     21def growlnotify(msg): 
     22    os.popen('%s -m "%s"' % (GROWLNOTIFY_PATH, msg))  
    1923 
    2024def remove_files_by_pattern(dir, pattern): 
     
    2832        else: 
    2933            os.remove(filename) 
    30     print "Removed %d %s files" % (count, pattern) 
     34    growlnotify("Removed %d %s files" % (count, pattern)) 
    3135 
    3236def clean_iliad(): 
  • hacks/trunk/repubblica-iliad/repubblica-iliad.sh

    r34 r35  
    66ICON_NAME=repubblica-flash.png 
    77GROWLNOTIFY=/usr/local/bin/growlnotify 
     8WGET=/usr/local/bin/wget 
    89 
    910# notify start of operations 
     
    1516 
    1617# fetch the news 
    17 wget -r -np -nH -E -l2 -k -p "http://www.repubblica.it/mobile/"; 
     18$WGET -r -np -nH -E -l2 -k -p "http://www.repubblica.it/mobile/"; 
    1819 
    1920# fix the encoding declaration