convert to new system
authorx2000habouzit <x2000habouzit>
Thu, 14 Oct 2004 22:02:30 +0000 (22:02 +0000)
committerx2000habouzit <x2000habouzit>
Thu, 14 Oct 2004 22:02:30 +0000 (22:02 +0000)
scripts/migration/0.0.0_to_0.9.0/new_newsletter.sh [new file with mode: 0755]

diff --git a/scripts/migration/0.0.0_to_0.9.0/new_newsletter.sh b/scripts/migration/0.0.0_to_0.9.0/new_newsletter.sh
new file mode 100755 (executable)
index 0000000..ad2f24e
--- /dev/null
@@ -0,0 +1,6 @@
+#! /bin/sh
+mysql x4dat < newsleter.sql
+
+list_members polytechnique.org-newsletter | \
+    sed -e 's!^\(.*\)@polytechnique.org!INSERT INTO newsletter_ins SELECT id FROM aliases WHERE alias="\1";!' | \
+    mysql x4dat