[PC-BSD Commits] r829 - in pbibuild/modules/xchat: . overlay-dir

svn at pcbsd.org svn at pcbsd.org
Mon Nov 5 13:44:52 PST 2007


Author: gonzalo
Date: 2007-11-05 13:44:51 -0800 (Mon, 05 Nov 2007)
New Revision: 829

Modified:
   pbibuild/modules/xchat/copy-files
   pbibuild/modules/xchat/overlay-dir/PBI.FirstRun.sh
   pbibuild/modules/xchat/overlay-dir/PBI.RemoveScript.sh
   pbibuild/modules/xchat/overlay-dir/PBI.SetupScript.sh
Log:


Modified: pbibuild/modules/xchat/copy-files
===================================================================
--- pbibuild/modules/xchat/copy-files	2007-11-05 19:41:30 UTC (rev 828)
+++ pbibuild/modules/xchat/copy-files	2007-11-05 21:44:51 UTC (rev 829)
@@ -1 +1,31 @@
 /usr/local/bin/xchat bin/
+/usr/local/lib/xchat/plugins/* lib/xchat/plugins/
+/usr/local/share/applications/xchat.desktop share/applications/xchat.desktop
+/usr/local/share/dbus-1/services/org.xchat.service.service share/dbus-1/services/org.xchat.service.service
+/usr/local/share/locale/be/LC_MESSAGES/xchat.mo share/locale/be/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/ca/LC_MESSAGES/xchat.mo share/locale/ca/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/cs/LC_MESSAGES/xchat.mo share/locale/cs/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/de/LC_MESSAGES/xchat.mo share/locale/de/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/el/LC_MESSAGES/xchat.mo share/locale/el/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/es/LC_MESSAGES/xchat.mo share/locale/es/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/fi/LC_MESSAGES/xchat.mo share/locale/fi/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/fr/LC_MESSAGES/xchat.mo share/locale/fr/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/gl/LC_MESSAGES/xchat.mo share/locale/gl/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/hu/LC_MESSAGES/xchat.mo share/locale/hu/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/it/LC_MESSAGES/xchat.mo share/locale/it/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/ja/LC_MESSAGES/xchat.mo share/locale/ja/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/ko/LC_MESSAGES/xchat.mo share/locale/ko/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/lt/LC_MESSAGES/xchat.mo share/locale/lt/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/mk/LC_MESSAGES/xchat.mo share/locale/mk/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/nl/LC_MESSAGES/xchat.mo share/locale/nl/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/pa/LC_MESSAGES/xchat.mo share/locale/pa/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/pt/LC_MESSAGES/xchat.mo share/locale/pt/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/ru/LC_MESSAGES/xchat.mo share/locale/ru/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/sq/LC_MESSAGES/xchat.mo share/locale/sq/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/sr/LC_MESSAGES/xchat.mo share/locale/sr/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/sv/LC_MESSAGES/xchat.mo share/locale/sv/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/uk/LC_MESSAGES/xchat.mo share/locale/uk/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/vi/LC_MESSAGES/xchat.mo share/locale/vi/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/zh_CN/LC_MESSAGES/xchat.mo share/locale/zh_CN/LC_MESSAGES/xchat.mo
+/usr/local/share/locale/zh_TW/LC_MESSAGES/xchat.mo share/locale/zh_TW/LC_MESSAGES/xchat.mo
+/usr/local/share/pixmaps/xchat.png share/pixmaps/xchat.png
\ No newline at end of file

Modified: pbibuild/modules/xchat/overlay-dir/PBI.FirstRun.sh
===================================================================
--- pbibuild/modules/xchat/overlay-dir/PBI.FirstRun.sh	2007-11-05 19:41:30 UTC (rev 828)
+++ pbibuild/modules/xchat/overlay-dir/PBI.FirstRun.sh	2007-11-05 21:44:51 UTC (rev 829)
@@ -16,8 +16,33 @@
 # echo 'MSG: <text>' # Display this text above progress bar
 #########################################
 
+
 if [ -e "/usr/local/bin/xchat" ]
 then
-	kdialog --sorry "XChat is already installed, it must be uninstalled before loading this PBI"
-	return 2
+    # Looks like FF is installed, ask if they want to remove the old one
+    ls -al /usr/local/bin/xchat | grep Programs 2>/dev/null
+    if [ "$?" = "0" ]
+    then
+      kdialog --yesno "XChat is already installed, do you wish to uninstall it?" 
+      if [ "$?" = "0" ]
+      then
+        FF="`ls -al /usr/local/bin/xchat | cut -d '>' -f 2 | cut -d "/" -f 3`"
+        echo $FF | grep Firefox 2>/dev/null
+        if [ "$?" = "0" ]
+        then
+          PBIdelete --remove ${FF}
+        else
+          kdialog --sorry "XChat could not be automatically removed... Please remove it in Add / Remove Programs and try again."
+          return 2
+        fi
+      else
+        kdialog --sorry "XChat is already installed, it must be uninstalled before loading this PBI"
+        return 2
+      fi
+      
+    else
+      # Could not find a link to PBI folder
+      kdialog --sorry "XChat is already installed, it must be uninstalled before loading this PBI"
+      return 2
+    fi
 fi 

Modified: pbibuild/modules/xchat/overlay-dir/PBI.RemoveScript.sh
===================================================================
--- pbibuild/modules/xchat/overlay-dir/PBI.RemoveScript.sh	2007-11-05 19:41:30 UTC (rev 828)
+++ pbibuild/modules/xchat/overlay-dir/PBI.RemoveScript.sh	2007-11-05 21:44:51 UTC (rev 829)
@@ -7,7 +7,34 @@
 # TIP: 'kdialog' should be used for user interaction. 
 #########################################
 
-rm /usr/local/bin/xchat
+rm -fR /usr/local/share/locale/be/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/ca/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/cs/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/de/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/el/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/es/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/fi/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/fr/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/gl/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/hu/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/it/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/ja/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/ko/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/lt/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/mk/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/nl/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/pa/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/pt/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/ru/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/sq/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/sr/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/sv/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/uk/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/vi/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/zh_CN/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/share/locale/zh_TW/LC_MESSAGES/xchat.mo
+rm -fR /usr/local/bin/xchat
+
 cd /home 
  for i in `ls` 
  do 

Modified: pbibuild/modules/xchat/overlay-dir/PBI.SetupScript.sh
===================================================================
--- pbibuild/modules/xchat/overlay-dir/PBI.SetupScript.sh	2007-11-05 19:41:30 UTC (rev 828)
+++ pbibuild/modules/xchat/overlay-dir/PBI.SetupScript.sh	2007-11-05 21:44:51 UTC (rev 829)
@@ -14,4 +14,31 @@
 
 ln -s /Programs/${PROGDIR}/.sbin/xchat /usr/local/bin/xchat
 
+ln -s /Programs/${PROGDIR}/share/locale/be/LC_MESSAGES/xchat.mo /usr/local/share/locale/be/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/ca/LC_MESSAGES/xchat.mo /usr/local/share/locale/ca/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/cs/LC_MESSAGES/xchat.mo /usr/local/share/locale/cs/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/de/LC_MESSAGES/xchat.mo /usr/local/share/locale/de/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/el/LC_MESSAGES/xchat.mo /usr/local/share/locale/el/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/es/LC_MESSAGES/xchat.mo /usr/local/share/locale/es/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/fi/LC_MESSAGES/xchat.mo /usr/local/share/locale/fi/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/fr/LC_MESSAGES/xchat.mo /usr/local/share/locale/fr/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/gl/LC_MESSAGES/xchat.mo /usr/local/share/locale/gl/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/hu/LC_MESSAGES/xchat.mo /usr/local/share/locale/hu/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/it/LC_MESSAGES/xchat.mo /usr/local/share/locale/it/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/ja/LC_MESSAGES/xchat.mo /usr/local/share/locale/ja/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/ko/LC_MESSAGES/xchat.mo /usr/local/share/locale/ko/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/lt/LC_MESSAGES/xchat.mo /usr/local/share/locale/lt/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/mk/LC_MESSAGES/xchat.mo /usr/local/share/locale/mk/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/nl/LC_MESSAGES/xchat.mo /usr/local/share/locale/nl/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/pa/LC_MESSAGES/xchat.mo /usr/local/share/locale/pa/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/pt/LC_MESSAGES/xchat.mo /usr/local/share/locale/pt/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/ru/LC_MESSAGES/xchat.mo /usr/local/share/locale/ru/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/sq/LC_MESSAGES/xchat.mo /usr/local/share/locale/sq/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/sr/LC_MESSAGES/xchat.mo /usr/local/share/locale/sr/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/sv/LC_MESSAGES/xchat.mo /usr/local/share/locale/sv/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/uk/LC_MESSAGES/xchat.mo /usr/local/share/locale/uk/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/vi/LC_MESSAGES/xchat.mo /usr/local/share/locale/vi/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/zh_CN/LC_MESSAGES/xchat.mo /usr/local/share/locale/zh_CN/LC_MESSAGES/xchat.mo
+ln -s /Programs/${PROGDIR}/share/locale/zh_TW/LC_MESSAGES/xchat.mo /usr/local/share/locale/zh_TW/LC_MESSAGES/xchat.mo
+
 echo "LAUNCHCLOSE: /usr/local/bin/xchat"
\ No newline at end of file



More information about the Commits mailing list