wok-stable rev 12066
git-gui: fix symlinks, remove pre/post install (was copying icons all over dirs really necessary?)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Fri Mar 09 02:23:14 2012 +0100 (2012-03-09) |
parents | bfe3b903a808 |
children | c9b2bd138153 |
files | git-gui/receipt |
line diff
1.1 --- a/git-gui/receipt Fri Mar 09 02:01:06 2012 +0100 1.2 +++ b/git-gui/receipt Fri Mar 09 02:23:14 2012 +0100 1.3 @@ -27,44 +27,7 @@ 1.4 # Extra icons, .desktop file etc.: 1.5 cp -a $stuff/* $fs/usr 1.6 1.7 - # We do not need to strip anything! 1.8 + mkdir -p $fs/usr/bin 1.9 + ln -s /usr/lib/git-core/git-gui /usr/bin/git-citool \ 1.10 + /usr/lib/git-core/git-gui--askpass $fs/usr/bin 1.11 } 1.12 - 1.13 -# Commands to executed before/after package is installed. 1.14 -post_install() 1.15 -{ 1.16 - echo "Processing post-install commands..." 1.17 - echo " - creating links... " 1.18 - ln -sf /usr/lib/git/git-core/git-gui /usr/bin/ 1.19 - ln -sf /usr/lib/git/git-core/git-citool /usr/bin/ 1.20 - ln -sf /usr/lib/git/git-core/git-gui--askpass /usr/bin/ 1.21 - echo " - installing icons... " 1.22 - # Loop through each icon directory, except 'default' 1.23 - for DIR in `ls -d1 /usr/share/icons/*/ | grep -v default` 1.24 - do 1.25 - cp -f /usr/share/icons/SliTaz/16x16/apps/git-gui.png \ 1.26 - $DIR/16x16/apps/git-gui.png 2> /dev/null 1.27 - cp -f /usr/share/icons/SliTaz/32x32/apps/git-gui.png \ 1.28 - $DIR/32x32/apps/git-gui.png 2> /dev/null 1.29 - done 1.30 - echo -n "Finished post-install commands." 1.31 - status 1.32 -} 1.33 - 1.34 -pre_remove() 1.35 -{ 1.36 - echo "Processing pre-remove commands..." 1.37 - echo -n " - removing icons... " 1.38 - for ICON in `find /usr/share/icons/ -iname git-gui.png` 1.39 - do 1.40 - rm $ICON 1.41 - done 1.42 - status 1.43 - echo -n " - removing links... " 1.44 - rm /usr/bin/git-gui 1.45 - rm /usr/bin/git-citool 1.46 - rm /usr/bin/git-gui--askpass 1.47 - status 1.48 - echo -n "Finished pre-remove commands." 1.49 - status 1.50 -}