app-admin/pulse2-web-core: initial version of the new pulse2 web package
(Portage version: 2.2.0_alpha19-r1/svn/Linux x86_64, RepoMan options: --force) git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@2820 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
diff -uNr pulse2-1.3.0.orig//web/Makefile pulse2-1.3.0/web/Makefile
|
||||
--- pulse2-1.3.0.orig//web/Makefile 1970-01-01 01:00:00.000000000 +0100
|
||||
+++ pulse2-1.3.0/web/Makefile 2011-01-29 09:25:31.000000000 +0100
|
||||
@@ -0,0 +1,60 @@
|
||||
+# Copyright (C) 2006, Adam Cecile for Linbox FAS
|
||||
+# Copyright (C) 2006, Jerome Wax for Linbox FAS
|
||||
+# Copyright (C) 2006, Cedric Delfosse for Linbox FAS
|
||||
+#
|
||||
+# This program is free software; you can redistribute it and/or modify
|
||||
+# it under the terms of the GNU General Public License as published by
|
||||
+# the Free Software Foundation; either version 2 of the License, or
|
||||
+# (at your option) any later version.
|
||||
+#
|
||||
+# This program is distributed in the hope that it will be useful,
|
||||
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+# GNU General Public License for more details.
|
||||
+#
|
||||
+# You should have received a copy of the GNU General Public License
|
||||
+# along with this program; if not, write to the Free Software
|
||||
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
+
|
||||
+
|
||||
+
|
||||
+# General Makefile variables
|
||||
+DESTDIR =
|
||||
+PREFIX = /usr/local
|
||||
+DATADIR = $(PREFIX)/share/mmc
|
||||
+INSTALL = $(shell which install)
|
||||
+CP = $(shell which cp)
|
||||
+CHOWN = $(shell which chown)
|
||||
+CHGRP = $(shell which chgrp)
|
||||
+SED = $(shell which sed)
|
||||
+RM = $(shell which rm)
|
||||
+
|
||||
+FILESTOINSTALL = modules
|
||||
+
|
||||
+# Default target
|
||||
+all:
|
||||
+
|
||||
+clean_mo:
|
||||
+ sh scripts/clean_mo.sh
|
||||
+
|
||||
+build_mo:
|
||||
+ sh scripts/build_mo.sh
|
||||
+
|
||||
+build_pot:
|
||||
+ sh scripts/build_pot.sh
|
||||
+
|
||||
+clean: clean_mo
|
||||
+
|
||||
+install: build_mo
|
||||
+ @echo ""
|
||||
+ @echo "Installing pulse2-web in $(DESTDIR)$(DATADIR)"
|
||||
+ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(DATADIR)
|
||||
+ $(CP) -R $(FILESTOINSTALL) $(DESTDIR)$(DATADIR)
|
||||
+ $(CHOWN) -R root $(DESTDIR)$(DATADIR)
|
||||
+ $(CHGRP) -R root $(DESTDIR)$(DATADIR)
|
||||
+ find $(DESTDIR)$(DATADIR) -type f -name *.po[t] -exec rm -f {} \;
|
||||
+
|
||||
+$(RELEASES_DIR)/$(TARBALL_GZ):
|
||||
+ mkdir -p $(RELEASES_DIR)/$(TARBALL)
|
||||
+ $(CPA) $(FILESTOINSTALL) $(RELEASES_DIR)/$(TARBALL)
|
||||
+ cd $(RELEASES_DIR) && tar -czf $(TARBALL_GZ) $(EXCLUDE_FILES) $(TARBALL); rm -rf $(TARBALL);
|
||||
diff -uNr pulse2-1.3.0.orig//web/scripts/build_pot.sh pulse2-1.3.0/web/scripts/build_pot.sh
|
||||
--- pulse2-1.3.0.orig//web/scripts/build_pot.sh 2011-01-29 09:09:53.000000000 +0100
|
||||
+++ pulse2-1.3.0/web/scripts/build_pot.sh 2011-01-29 09:46:25.000000000 +0100
|
||||
@@ -16,17 +16,17 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
-
|
||||
-POT="pulse2/locale/pulse2.pot"
|
||||
-
|
||||
-rm ${POT}
|
||||
-touch ${POT}
|
||||
-find . -iname "*.php" -exec xgettext -C -j -o ${POT} --language=PHP --keyword=_T {} \;
|
||||
-
|
||||
-for name in `find ${1} -type f -name *.po`; do
|
||||
- echo -n "updating ${name}..."
|
||||
- msgmerge --update --add-location --sort-output ${name} ${POT}
|
||||
- echo "done"
|
||||
+for module in dyngroup glpi imaging inventory msc pkgs pulse2; do
|
||||
+ POT="modules/$module/locale/$module.pot"
|
||||
+ rm -f ${POT}
|
||||
+ touch ${POT}
|
||||
+ find modules/$module -iname "*.php" -exec xgettext -C -j -o ${POT} --language=PHP --keyword=_T {} \;
|
||||
+ for name in `find modules/$module/locale -type f -name *.po`; do
|
||||
+ echo -n "updating ${name}..."
|
||||
+ msgmerge --update --add-location --sort-output ${name} ${POT}
|
||||
+ echo "done"
|
||||
+ done
|
||||
+
|
||||
done
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user