FIXUPHACK 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #this template is devious, to handle the way debian has butchered the layout.
  2. #120321 ubuntu precise pangolin: screen out 'seamonkey-addons'...
  3. SMLIBDIR="`find usr/lib -maxdepth 1 -type d -name seamonkey\* | grep -v 'addons' | head -n 1`"
  4. if [ "$SMLIBDIR" != "" ];then
  5. BASESMLIB="`basename $SMLIBDIR`"
  6. if [ "$BASESMLIB" != "seamonkey" ];then
  7. ln -s $BASESMLIB usr/lib/seamonkey
  8. SMPARENT="`pwd | rev | cut -f 1 -d '/' | rev`"
  9. mkdir -p ../${SMPARENT}_DEV/usr/include
  10. ln -s $BASESMLIB ../${SMPARENT}_DEV/usr/include/seamonkey
  11. fi
  12. if [ -d usr/lib/${BASESMLIB} ];then
  13. rm -rf usr/lib/${BASESMLIB}/chrome/icons
  14. mv -f usr/share/seamonkey/chrome/icons usr/lib/${BASESMLIB}/chrome/
  15. rm -rf usr/lib/${BASESMLIB}/extensions/*
  16. rm -rf usr/share/seamonkey
  17. fi
  18. #test if sm 1.x or 2.x
  19. if [ -f usr/lib/seamonkey/platform.ini ];then
  20. #sm2 get rid of the sm1 config...
  21. rm -rf root/.mozilla/default
  22. rm -f root/.mozilla/appreg
  23. SMMILESTONE="`cat usr/lib/seamonkey/platform.ini | grep '^Milestone' | cut -f 2 -d '='`"
  24. SMPREFSJS="`find root/.mozilla/seamonkey -maxdepth 2 -type f -name prefs.js`"
  25. #this makes the puppy home page display at first run of sm...
  26. smPATTERN="s% "rv:.*"% "rv:${SMMILESTONE}"%"
  27. sed -e "$smPATTERN" $SMPREFSJS > /tmp/seamonkey-temp-prefsjs
  28. cp -f /tmp/seamonkey-temp-prefsjs $SMPREFSJS
  29. else
  30. #old sm 1.x
  31. rm -rf root/.mozilla/extensions
  32. rm -rf root/.mozilla/seamonkey
  33. #TODO need to update milestone entry in prefs.js so that the puppy home page displays on first run.
  34. fi
  35. fi
  36. #***NOTICE template needs to be updated for Ubuntu/debian SM2***
  37. #ubuntu... sm1...
  38. if [ -e usr/share/seamonkey/chrome/installed-chrome.txt ];then
  39. #have removed 'modern' and 'sroaming'...
  40. grep -v 'modern' usr/share/seamonkey/chrome/installed-chrome.txt >/tmp/installed-chrome.txt
  41. grep -v 'sroaming' /tmp/installed-chrome.txt >usr/share/seamonkey/chrome/installed-chrome.txt
  42. fi