This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file gets "path, title" csv format of entries from node, menu_links, menu_router | |
* | |
* run from within drupal project root: drush scr generate_list.php | |
*/ | |
// Bootstrap Drupal | |
define('DRUPAL_ROOT', getcwd()); | |
require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
require 'yaml' | |
require 'json' | |
removed = Hash.new { |hash, key| hash[key] = 0 } | |
ARGV.each do |base| | |
Dir.glob(["**/*.html", "**/*.md"], base: base).each do |path| | |
file = File.join(base, path) |