Changeset 101

Show
Ignore:
Timestamp:
05/11/07 11:14:47 (1 year ago)
Author:
free
Message:

* Don't overwrite user configurations at upgrade (closes #296)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 64studio/trunk/debian/64studio-skel.postinst

    r1 r101  
    2020case "$1" in 
    2121    configure) 
    22         update-dpsyco-skel 
     22 
     23    # Only run on new installs 
     24    if [ "$2" == "" ]; then 
     25        update-dpsyco-skel 
     26    fi 
     27 
    2328    ;; 
    2429 
  • 64studio/trunk/debian/64studio-themes.postinst

    r93 r101  
    2020# 
    2121 
    22 case "$1" in 
    23     configure) 
     22tweak_desktop_files () { 
    2423 
    2524    # Place Bluefish in graphics 
     
    4544    sed -i -e 's/^NoDisplay=.*$/NoDisplay=false/g' $EVINCE 
    4645 
     46    # Add category to tagtool 
     47    TAGTOOL=/usr/share/applications/tagtool.desktop 
     48    if grep -q Categories $TAGTOOL; then 
     49        sed -i -e 's/^Categories=.*$/Categories=Application;AudioVideo;/g' $TAGTOOL 
     50    else 
     51        echo "Categories=Application;AudioVideo;" >> $TAGTOOL 
     52    fi 
     53 
     54    # Add timemachine icon 
     55    TM=/usr/share/gnome/apps/Multimedia/timemachine.desktop 
     56    if ! grep -q "Icon=" $TM; then 
     57        echo "Icon=/usr/share/timemachine/pixmaps/timemachine-icon.png" >> $TM 
     58    fi       
     59 
     60    # Add xpad icon 
     61    XPAD=/usr/share/applications/xpad.desktop 
     62    sed -i -e 's|^Icon=.*$|Icon=/usr/share/pixmaps/xpad/xpad.xpm|g' $XPAD 
     63 
     64} 
     65 
     66hide_menu_items () { 
     67 
    4768    # Get rid of unwanted menu entries 
    4869    GNOMEMEDIA="vumeter.desktop reclevel.desktop gnome-sound-recorder.desktop gnome-cd.desktop" 
     
    5576    done 
    5677 
    57     # Add category to tagtool 
    58     TAGTOOL=/usr/share/applications/tagtool.desktop 
    59     if grep -q Categories $TAGTOOL; then 
    60         sed -i -e 's/^Categories=.*$/Categories=Application;AudioVideo;/g' $TAGTOOL 
    61     else 
    62         echo "Categories=Application;AudioVideo;" >> $TAGTOOL 
    63     fi 
     78
    6479 
    65     # Make rosegarden4 appear in GNOME menus 
    66     RG=/usr/share/applnk/Multimedia/rosegarden.desktop 
    67     if ! [ -e /usr/share/applications/rosegarden.desktop ]; then 
    68                 ln -s $RG /usr/share/applications/ 
    69     fi 
    70  
    71     # Add timemachine icon 
    72     TM=/usr/share/gnome/apps/Multimedia/timemachine.desktop 
    73     if ! grep -q "Icon=" $TM; then 
    74         echo "Icon=/usr/share/timemachine/pixmaps/timemachine-icon.png" >> $TM 
    75     fi       
     80remove_debian_menu () { 
    7681 
    7782    # Remove Debian menu hierarchy from the Gnome menu 
     
    7984    sed -i -e '/<MergeFile>debian-menu/ d' $GNOME 
    8085 
    81     # Add xpad icon 
    82     XPAD=/usr/share/applications/xpad.desktop 
    83     sed -i -e 's|^Icon=.*$|Icon=/usr/share/pixmaps/xpad/xpad.xpm|g' $XPAD 
     86
     87 
     88tweak_grub () { 
    8489 
    8590    # Grub timeout and directory 
     
    8792    sed -i -e "s|^timeout.*|timeout     $GRUB_TIMEOUT|g" /usr/sbin/update-grub 
    8893    mkdir -p /boot/grub 
     94} 
    8995 
    90     # Fix Gimp icon path 
    91     GIMP=/usr/share/applications/gimp-2.2.desktop 
    92     sed -i -e 's|^Icon=.*$|Icon=/usr/share/gimp/2.0/images/wilber-icon.png|g' $GIMP 
     96fix_linux_kbuild () { 
    9397 
    9498    # Fix broken modpost script in linux-kbuild-2.6.19 
     
    104108        ln -sf  ../../linux-headers-2.6.19-1-multimedia/include/asm-x86_64 ${HEADERS}-486/include/asm-x86_64 
    105109    fi 
     110 
     111} 
     112 
     113case "$1" in 
     114    configure) 
     115 
     116    # Only run these on new installs 
     117    if [ "$2" == "" ]; then 
     118        remove_debian_menu       
     119        tweak_grub 
     120        fix_linux_kbuild 
     121    fi 
     122    tweak_desktop_files 
     123    hide_menu_items 
     124 
    106125    ;; 
    107126 
  • 64studio/trunk/debian/changelog

    r100 r101  
    44  * Replaced ardour-gtk and ardour-session-exchange with ardour 
    55  * Added 915resolution (closes #257) 
     6  * Don't overwrite user configurations at upgrade (closes #296) 
    67 
    78 -- Free Ekanayaka <freee@debian.org>  Fri, 11 May 2007 02:11:04 +0200