appmenus: preserve file header

This commit is contained in:
Marek Marczykowski 2013-01-23 15:59:08 +01:00
parent fe2f66dfc7
commit 6be747cf6a

View File

@ -8,7 +8,8 @@ if ! grep -q ^Name $SRC ; then
exit 0 exit 0
fi fi
sed -n -e "s/^\(Name.*\)=\(.*\)/\1=%VMNAME%: \2/p" \ sed -n -e "/^\[Desktop Entry\]$/p" \
-e "s/^\(Name.*\)=\(.*\)/\1=%VMNAME%: \2/p" \
-e "s/^\(GenericName.*\)=\(.*\)/\1=%VMNAME%: \2/p" \ -e "s/^\(GenericName.*\)=\(.*\)/\1=%VMNAME%: \2/p" \
-e "s/^Exec=\(.*\)/Exec=qvm-run -q --tray -a %VMNAME% \'\1\'/p" \ -e "s/^Exec=\(.*\)/Exec=qvm-run -q --tray -a %VMNAME% \'\1\'/p" \
-e "/^Comment.*=/p" \ -e "/^Comment.*=/p" \