From ae0401e07ebb39c168a83066ea1c09af34b3fcb7 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 15 Oct 2001 22:46:13 +0000 Subject: [PATCH] We can more easily just echo the single line that is in sversionrc than copy & sed it. --- editors/staroffice60/Makefile | 7 +++---- editors/staroffice60/files/sversionrc | 3 --- editors/staroffice70/Makefile | 7 +++---- editors/staroffice70/files/sversionrc | 3 --- german/staroffice70/Makefile | 7 +++---- german/staroffice70/files/sversionrc | 3 --- 6 files changed, 9 insertions(+), 21 deletions(-) delete mode 100644 editors/staroffice60/files/sversionrc delete mode 100644 editors/staroffice70/files/sversionrc delete mode 100644 german/staroffice70/files/sversionrc diff --git a/editors/staroffice60/Makefile b/editors/staroffice60/Makefile index 3a640542d6e1..578756d199db 100644 --- a/editors/staroffice60/Makefile +++ b/editors/staroffice60/Makefile @@ -143,11 +143,10 @@ post-install: install-user: .if !exists(/home/mb/staroffice6.0/setup) -.if exists(${HOME}/.sversionrc) - @${ECHO} "StarOffice 6.0=${HOME}/${SOVERSION}" >> "${HOME}/.sversionrc" -.else - @${SED} -e 's|%%HOME%%|${HOME}|' < "${FILESDIR}/sversionrc" > "${HOME}/.sversionrc" +.if !exists(${HOME}/.sversionrc) + @${ECHO} "[Versions]" >> "${HOME}/.sversionrc" .endif + @${ECHO} "StarOffice 6.0=${HOME}/${SOVERSION}" >> "${HOME}/.sversionrc" @${MKDIR} "${HOME}/${SOVERSION}/user/autotext" @${MKDIR} "${HOME}/${SOVERSION}/user/temp" @${MKDIR} "${HOME}/${SOVERSION}/user/autocorr" diff --git a/editors/staroffice60/files/sversionrc b/editors/staroffice60/files/sversionrc deleted file mode 100644 index 6cc054c61cbf..000000000000 --- a/editors/staroffice60/files/sversionrc +++ /dev/null @@ -1,3 +0,0 @@ -[Versions] -StarOffice 6.0=%%HOME%%/staroffice6.0 - diff --git a/editors/staroffice70/Makefile b/editors/staroffice70/Makefile index 3a640542d6e1..578756d199db 100644 --- a/editors/staroffice70/Makefile +++ b/editors/staroffice70/Makefile @@ -143,11 +143,10 @@ post-install: install-user: .if !exists(/home/mb/staroffice6.0/setup) -.if exists(${HOME}/.sversionrc) - @${ECHO} "StarOffice 6.0=${HOME}/${SOVERSION}" >> "${HOME}/.sversionrc" -.else - @${SED} -e 's|%%HOME%%|${HOME}|' < "${FILESDIR}/sversionrc" > "${HOME}/.sversionrc" +.if !exists(${HOME}/.sversionrc) + @${ECHO} "[Versions]" >> "${HOME}/.sversionrc" .endif + @${ECHO} "StarOffice 6.0=${HOME}/${SOVERSION}" >> "${HOME}/.sversionrc" @${MKDIR} "${HOME}/${SOVERSION}/user/autotext" @${MKDIR} "${HOME}/${SOVERSION}/user/temp" @${MKDIR} "${HOME}/${SOVERSION}/user/autocorr" diff --git a/editors/staroffice70/files/sversionrc b/editors/staroffice70/files/sversionrc deleted file mode 100644 index 6cc054c61cbf..000000000000 --- a/editors/staroffice70/files/sversionrc +++ /dev/null @@ -1,3 +0,0 @@ -[Versions] -StarOffice 6.0=%%HOME%%/staroffice6.0 - diff --git a/german/staroffice70/Makefile b/german/staroffice70/Makefile index 3a640542d6e1..578756d199db 100644 --- a/german/staroffice70/Makefile +++ b/german/staroffice70/Makefile @@ -143,11 +143,10 @@ post-install: install-user: .if !exists(/home/mb/staroffice6.0/setup) -.if exists(${HOME}/.sversionrc) - @${ECHO} "StarOffice 6.0=${HOME}/${SOVERSION}" >> "${HOME}/.sversionrc" -.else - @${SED} -e 's|%%HOME%%|${HOME}|' < "${FILESDIR}/sversionrc" > "${HOME}/.sversionrc" +.if !exists(${HOME}/.sversionrc) + @${ECHO} "[Versions]" >> "${HOME}/.sversionrc" .endif + @${ECHO} "StarOffice 6.0=${HOME}/${SOVERSION}" >> "${HOME}/.sversionrc" @${MKDIR} "${HOME}/${SOVERSION}/user/autotext" @${MKDIR} "${HOME}/${SOVERSION}/user/temp" @${MKDIR} "${HOME}/${SOVERSION}/user/autocorr" diff --git a/german/staroffice70/files/sversionrc b/german/staroffice70/files/sversionrc deleted file mode 100644 index 6cc054c61cbf..000000000000 --- a/german/staroffice70/files/sversionrc +++ /dev/null @@ -1,3 +0,0 @@ -[Versions] -StarOffice 6.0=%%HOME%%/staroffice6.0 -