updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / archlinux-de-menus / archlinux-de-menus.install
blobf859a9c4f7ce6325141e667e5dc36044b399eea6
1 pre_install() {
2    pushd /etc/xdg/menus
3    echo "19a20,27" > arch-applications.menu.patch
4    echo '>     <Name>Archlinux-de</Name>' >> arch-applications.menu.patch
5    echo '>     <Directory>Archlinux-de.directory</Directory>' >> arch-applications.menu.patch
6    echo '>     <Include>' >> arch-applications.menu.patch
7    echo '>       <Category>Archlinux-de</Category>' >> arch-applications.menu.patch
8    echo '>     </Include>' >> arch-applications.menu.patch
9    echo '>   </Menu>' >> arch-applications.menu.patch
10    echo '> ' >> arch-applications.menu.patch
11    echo '>   <Menu>' >> arch-applications.menu.patch
12    patch arch-applications.menu arch-applications.menu.patch && echo "etc/xdg/menus/arch-applications.menu patched"
13    popd
16 pre_remove() {
17    pushd /etc/xdg/menus
18    echo '20,27d19' > revoke-arch-applications.menu.patch
19    echo '<     <Name>Archlinux-de</Name>' >> revoke-arch-applications.menu.patch
20    echo '<     <Directory>Archlinux-de.directory</Directory>' >> revoke-arch-applications.menu.patch
21    echo '<     <Include>' >> revoke-arch-applications.menu.patch
22    echo '<       <Category>Archlinux-de</Category>' >> revoke-arch-applications.menu.patch
23    echo '<     </Include>' >> revoke-arch-applications.menu.patch
24    echo '<   </Menu>' >> revoke-arch-applications.menu.patch
25    echo '< ' >> revoke-arch-applications.menu.patch
26    echo '<   <Menu>' >> revoke-arch-applications.menu.patch
27    patch arch-applications.menu revoke-arch-applications.menu.patch && echo "etc/xdg/menus/arch-applications.menu revoked"
28    rm arch-applications.menu.patch  revoke-arch-applications.menu.patch
29    popd