[pkg-otr-team] [irssi-plugin-otr] 46/167: * packaging/windows/pidgin-otr.nsi: Install and uninstall the translation files
Holger Levsen
holger at moszumanska.debian.org
Mon Mar 3 21:55:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to tag 4.0.0
in repository irssi-plugin-otr.
commit 151016301a573784d9a7a30faf745c175a773a6a
Author: cypherpunk <cypherpunk>
Date: Sat Jul 28 17:58:08 2007 +0000
* packaging/windows/pidgin-otr.nsi: Install and uninstall the
translation files
---
ChangeLog | 3 ++
Makefile.mingw | 13 ++++-
packaging/windows/pidgin-otr.nsi | 110 +++++++++++++++++++++++----------------
3 files changed, 80 insertions(+), 46 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 69f2249..49cbf35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,9 @@
* po/Makefile.mingw: Cleaned up Makefile.mingw files, removed
"install" target, added "zip" target
+ * packaging/windows/pidgin-otr.nsi: Install and uninstall the
+ translation files
+
2007-07-26
* gtk-dialog.c:
diff --git a/Makefile.mingw b/Makefile.mingw
index c32593d..7f5a732 100644
--- a/Makefile.mingw
+++ b/Makefile.mingw
@@ -36,6 +36,9 @@ LIBOTRSRCDIR = ../libotr
# The target
TARGET = pidgin-otr.dll
+# The target zipfile
+ZIPFILE = pidgin-otr-$(PIDGIN_OTR_VERSION).zip
+
CC = i586-mingw32msvc-gcc
LDFLAGS = -Wl,--enable-auto-image-base
LDLIBS = $(LIBOTRLIBDIR)/libotr.a -lgtk-win32-2.0 -lglib-2.0 -lgdk_pixbuf-2.0 \
@@ -77,12 +80,18 @@ zip: all
cp -a $(TARGET) win32_export/
cp -a README win32_export/README.txt
cp -a packaging/windows/pidgin-otr.nsi win32_export/
+ for i in po/*.gmo; do \
+ l=`basename $$i .gmo`; \
+ mkdir -p win32_export/locale/$$l/LC_MESSAGES; \
+ cp -a $$i win32_export/locale/$$l/LC_MESSAGES/pidgin-otr.mo; \
+ done
cp -a po/*.gmo win32_export/
cd win32_export; \
i586-mingw32msvc-strip *.exe *.dll; \
perl -pi -e 's/$$/\r/' README.Toolkit.txt Protocol-v2.html \
COPYING.txt COPYING.LIB.txt README.txt; \
- zip ../pidgin-otr-$(PIDGIN_OTR_VERSION).zip README.txt \
+ rm -f ../$(ZIPFILE); \
+ zip -r ../$(ZIPFILE) README.txt \
README.Toolkit.txt Protocol-v2.html COPYING.txt \
- COPYING.LIB.txt *.exe *.dll *.gmo *.nsi
+ COPYING.LIB.txt *.exe *.dll *.nsi locale
rm -rf win32_export
diff --git a/packaging/windows/pidgin-otr.nsi b/packaging/windows/pidgin-otr.nsi
index 2d03558..3911d9b 100644
--- a/packaging/windows/pidgin-otr.nsi
+++ b/packaging/windows/pidgin-otr.nsi
@@ -1,9 +1,10 @@
; Script based on generated HM NIS Edit Script Wizard.
-; Forgive me, i am new at this. -- {paul,iang}@cypherpunks.ca
+; Forgive me, i am new at this. -- {paul,ian}@cypherpunks.ca
;
-; known issue. installer induced uninstaller abortion causes overwrite by installer without
-; uninstall.
-; v3.0.0 - Version for pidgin-2.0.0
+; known issue. installer induced uninstaller abortion causes overwrite
+; by installer without uninstall.
+; v3.1.0 - New source version. Install and uninstall i18n files.
+; v3.0.0 - Version for pidgin-2.0.0
; v3.0.0 - Bump version number.
; v2.0.2 - Bump version number.
; v2.0.1 - Bump version number.
@@ -23,7 +24,7 @@
; todo: SetBrandingImage
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "pidgin-otr"
-!define PRODUCT_VERSION "3.0.0"
+!define PRODUCT_VERSION "3.1.0-preview3"
!define PRODUCT_PUBLISHER "Cypherpunks CA"
!define PRODUCT_WEB_SITE "http://otr.cypherpunks.ca/"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
@@ -69,33 +70,39 @@ ShowInstDetails show
ShowUnInstDetails show
Section "MainSection" SEC01
-;InstallDir "$PROGRAMFILES\Pidgin\plugins"
-
-; uninstall previous pidgin-otr install if found.
-Call UnInstOld
- ;Check for pidgin installation
-Call GetPidginInstPath
-WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "SOFTWARE\pidgin-otr" "pidgindir" "$PidginDir"
-
- SetOutPath "$INSTDIR"
- SetOverwrite on
- File "c:\otr\pidgin-otr.dll"
- ; move to pidgin plugin directory, check if not busy (pidgin is running)
- call CopyDLL
- ; hard part is done, do the rest now.
- SetOverwrite on
- File "c:\otr\README.Toolkit.txt"
- File "c:\otr\README.txt"
- File "c:\otr\Protocol-v2.html"
- File "c:\otr\COPYING.txt"
- File "c:\otr\COPYING.LIB.txt"
- File "c:\otr\otr_mackey.exe"
- File "c:\otr\otr_modify.exe"
- File "c:\otr\otr_parse.exe"
- File "c:\otr\otr_readforge.exe"
- File "c:\otr\otr_remac.exe"
- File "c:\otr\otr_sesskeys.exe"
- File "c:\otr\pidgin-otr.nsi"
+ ;InstallDir "$PROGRAMFILES\Pidgin\plugins"
+
+ ; uninstall previous pidgin-otr install if found.
+ Call UnInstOld
+ ;Check for pidgin installation
+ Call GetPidginInstPath
+ WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "SOFTWARE\pidgin-otr" "pidgindir" "$PidginDir"
+
+ SetOutPath "$PidginDir\locale"
+ SetOverwrite on
+ ; What the next line means is to recursively search c:\otr\locale
+ ; and install all files under there named pidgin-otr.mo
+ File /r "c:\otr\locale\pidgin-otr.mo"
+
+ SetOutPath "$INSTDIR"
+ SetOverwrite on
+ File "c:\otr\pidgin-otr.dll"
+ ; move to pidgin plugin directory, check if not busy (pidgin is running)
+ call CopyDLL
+ ; hard part is done, do the rest now.
+ SetOverwrite on
+ File "c:\otr\README.Toolkit.txt"
+ File "c:\otr\README.txt"
+ File "c:\otr\Protocol-v2.html"
+ File "c:\otr\COPYING.txt"
+ File "c:\otr\COPYING.LIB.txt"
+ File "c:\otr\otr_mackey.exe"
+ File "c:\otr\otr_modify.exe"
+ File "c:\otr\otr_parse.exe"
+ File "c:\otr\otr_readforge.exe"
+ File "c:\otr\otr_remac.exe"
+ File "c:\otr\otr_sesskeys.exe"
+ File "c:\otr\pidgin-otr.nsi"
SectionEnd
Section -AdditionalIcons
@@ -125,18 +132,18 @@ FunctionEnd
Section Uninstall
Delete "$INSTDIR\pidgin-otr-uninst.exe"
- Delete "$INSTDIR\README.Toolkit.txt"
- Delete "$INSTDIR\README.txt"
- Delete "$INSTDIR\Protocol-v2.txt"
- Delete "$INSTDIR\COPYING.txt"
- Delete "$INSTDIR\COPYING.LIB.txt"
- Delete "$INSTDIR\otr_mackey.exe"
- Delete "$INSTDIR\otr_modify.exe"
- Delete "$INSTDIR\otr_parse.exe"
- Delete "$INSTDIR\otr_readforge.exe"
- Delete "$INSTDIR\otr_remac.exe"
- Delete "$INSTDIR\otr_sesskeys.exe"
- Delete "$INSTDIR\pidgin-otr.nsi"
+ Delete "$INSTDIR\README.Toolkit.txt"
+ Delete "$INSTDIR\README.txt"
+ Delete "$INSTDIR\Protocol-v2.txt"
+ Delete "$INSTDIR\COPYING.txt"
+ Delete "$INSTDIR\COPYING.LIB.txt"
+ Delete "$INSTDIR\otr_mackey.exe"
+ Delete "$INSTDIR\otr_modify.exe"
+ Delete "$INSTDIR\otr_parse.exe"
+ Delete "$INSTDIR\otr_readforge.exe"
+ Delete "$INSTDIR\otr_remac.exe"
+ Delete "$INSTDIR\otr_sesskeys.exe"
+ Delete "$INSTDIR\pidgin-otr.nsi"
Delete "$SMPROGRAMS\pidgin-otr\Uninstall.lnk"
RMDir "$SMPROGRAMS\pidgin-otr"
RMDir "$INSTDIR"
@@ -153,14 +160,29 @@ Section Uninstall
MessageBox MB_OK|MB_ICONINFORMATION "Could not find pidgin plugin directory, pidgin-otr.dll not uninstalled!" IDOK ok
dodelete:
Delete "$PidginDir\plugins\pidgin-otr.dll"
+
+ ; Find all the language dirs and delete pidgin-otr.mo in all of them
+ Push $0
+ Push $1
+ FindFirst $0 $1 $PidginDir\locale\*
+ loop:
+ StrCmp $1 "" loopdone
+ Delete $PidginDir\locale\$1\LC_MESSAGES\pidgin-otr.mo
+ FindNext $0 $1
+ Goto loop
+ loopdone:
+ Pop $1
+ Pop $0
IfFileExists "$PidginDir\plugins\pidgin-otr.dll" 0 +2
MessageBox MB_OK|MB_ICONINFORMATION "pidgin-otr.dll is busy. Probably Pidgin is still running. Please delete $PidginDir\plugins\pidgin-otr.dll manually."
+
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "SOFTWARE\pidgin-otr\pidgindir"
ok:
SetAutoClose true
SectionEnd
+
Function GetPidginInstPath
Push $0
ReadRegStr $0 HKLM "Software\pidgin" ""
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-otr/packages/irssi-plugin-otr.git
More information about the Pkg-otr-team
mailing list