From bbab169421c5368c60b2daeec9d652ecf29c2776 Mon Sep 17 00:00:00 2001
From: Sean Madsen <sean@seanmadsen.com>
Date: Thu, 26 Jan 2017 14:47:04 -0700
Subject: [PATCH] hooks migrate - adding script to print wiki redirects

---
 content-migration/hooks/print-nav-yaml  |  3 ---
 content-migration/hooks/print-redirects | 10 ++++++++++
 2 files changed, 10 insertions(+), 3 deletions(-)
 create mode 100755 content-migration/hooks/print-redirects

diff --git a/content-migration/hooks/print-nav-yaml b/content-migration/hooks/print-nav-yaml
index 6b07e9a8..643032e0 100755
--- a/content-migration/hooks/print-nav-yaml
+++ b/content-migration/hooks/print-nav-yaml
@@ -3,9 +3,6 @@
 
 include __DIR__ . '/hooks-by-category.php';
 
-$root_dir = dirname(dirname(__DIR__));
-$hooks_dir = "$root_dir/docs/hooks";
-
 foreach ($hooks_by_category as $category => $hooks) {
   echo "  - $category hooks:" . PHP_EOL;
   foreach ($hooks as $hook) {
diff --git a/content-migration/hooks/print-redirects b/content-migration/hooks/print-redirects
new file mode 100755
index 00000000..16596aea
--- /dev/null
+++ b/content-migration/hooks/print-redirects
@@ -0,0 +1,10 @@
+#!/usr/bin/env php
+<?php
+
+include __DIR__ . '/hooks-by-category.php';
+
+foreach ($hooks_by_category as $category => $hooks) {
+  foreach ($hooks as $hook) {
+    echo "$hook hooks/$hook" . PHP_EOL;
+  }
+}
-- 
GitLab