Changeset 35
- Timestamp:
- 08/30/06 11:25:00 (2 years ago)
- Location:
- hacks/trunk
- Files:
-
- 1 added
- 2 modified
-
clean_iliad.py (modified) (2 diffs)
-
django-mode.el (added)
-
repubblica-iliad/repubblica-iliad.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hacks/trunk/clean_iliad.py
r33 r35 17 17 REMOVABLES = ('.DS_Store', '._*') 18 18 ILIAD_PATH = os.path.normcase('/Volumes/iLiad') 19 GROWLNOTIFY_PATH = os.path.normcase("/usr/local/bin/growlnotify") 20 21 def growlnotify(msg): 22 os.popen('%s -m "%s"' % (GROWLNOTIFY_PATH, msg)) 19 23 20 24 def remove_files_by_pattern(dir, pattern): … … 28 32 else: 29 33 os.remove(filename) 30 print "Removed %d %s files" % (count, pattern)34 growlnotify("Removed %d %s files" % (count, pattern)) 31 35 32 36 def clean_iliad(): -
hacks/trunk/repubblica-iliad/repubblica-iliad.sh
r34 r35 6 6 ICON_NAME=repubblica-flash.png 7 7 GROWLNOTIFY=/usr/local/bin/growlnotify 8 WGET=/usr/local/bin/wget 8 9 9 10 # notify start of operations … … 15 16 16 17 # 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/"; 18 19 19 20 # fix the encoding declaration