[Git][noosfero/noosfero][master] 2 commits: vagrant: setup catch-all email alias for @localhost.localdomain
Antonio Terceiro
gitlab at gitlab.com
Mon Oct 5 14:14:14 BRT 2015
Antonio Terceiro pushed to branch master at Noosfero / noosfero
Commits:
e01744f2 by Antonio Terceiro at 2015-10-05T14:12:53Z
vagrant: setup catch-all email alias for @localhost.localdomain
this helps local tests, since one can use ANYTHING at localhost.localdomain
for registering users
- - - - -
a6178cf3 by Antonio Terceiro at 2015-10-05T14:12:53Z
remove obsolete script
plugin translations have already been moved to the plugin sub-trees
- - - - -
2 changed files:
- − script/move-translations-to-plugins.rb
- script/vagrant
Changes:
=====================================
script/move-translations-to-plugins.rb deleted
=====================================
--- a/script/move-translations-to-plugins.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-languages = Dir.glob('po/*').reject { |f| f =~ /pot$/ }.map { |f| File.basename(f) }
-
-core_files = `grep '#:' po/noosfero.pot | cut -d ':' -f 2 | sed 's/^\s*//' | grep -v '^plugins' | sort -u`.split.map { |f| [ '-N', f] }.flatten
-
-languages.each do |lang|
-
- lang_plugins_po = "tmp/#{lang}_plugins.po"
- system('msggrep', '-v', *core_files, '--output-file', lang_plugins_po, "po/#{lang}/noosfero.po")
-
- Dir.glob('plugins/*').each do |plugindir|
- plugin = File.basename(plugindir)
- po = File.join(plugindir, 'po', lang, plugin + '.po')
-
- files = []
- Dir.glob("#{plugindir}/**/*.{rb,html.erb}").each do |f|
- files << '-N' << f
- end
-
- system('mkdir', '-p', File.dirname(po))
- system('msggrep', *files, '--output-file', po, lang_plugins_po)
-
- if system("msgfmt --statistics -o /dev/null #{po} 2>&1 | grep -q '^0 translated message'")
- # empty .po
- system('rm', '-f', po)
- puts "[#{lang}] #{plugin}: PO file empty, deleted"
- else
- puts "[#{lang}] #{plugin}"
- end
-
- end
-
- system('rm', '-f', lang_plugins_po)
- system('find plugins/*/po -type d -empty -delete')
-end
=====================================
script/vagrant
=====================================
--- a/script/vagrant
+++ b/script/vagrant
@@ -12,5 +12,13 @@ for ip in 10.0.2.2 192.168.122.1; do
fi
done
+sudo apt-get install -qy postfix
+sudo postconf virtual_alias_maps=hash:/etc/postfix/virtual
+sudo tee /etc/postfix/virtual <<EOF
+ at localhost.localdomain vagrant
+EOF
+sudo postmap /etc/postfix/virtual
+sudo service postfix reload
+
cd /vagrant
./script/quick-start
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/7d617038d64d41cca34b1c36b4e2f99a3373e97a...a6178cf3b727efe1dc6988b5e8a7ed292343e9d7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151005/bcec3482/attachment.html>
More information about the Noosfero-dev
mailing list