move devel scripts

- moved bin/helpers to bin/devel/helpers
- moved bin/update-formats.sh bin/devel/update-formats.sh
This commit is contained in:
Doug Bird 2018-06-21 18:06:57 -07:00
parent 9a1f4697c4
commit 6779448cb8
14 changed files with 26 additions and 26 deletions

View File

@ -19,8 +19,8 @@ const tmp = require('tmp');
//tmp.setGracefulCleanup(); //tmp.setGracefulCleanup();
const fileTldDescJs = path.dirname(require.main.filename) + '/../../formats/js/tld-enum/desc.js'; const fileTldDescJs = path.dirname(require.main.filename) + '/../../../formats/js/tld-enum/desc.js';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
program program
.option('-q, --quiet', 'Quiet Mode') .option('-q, --quiet', 'Quiet Mode')

View File

@ -19,8 +19,8 @@ const tmp = require('tmp');
//tmp.setGracefulCleanup(); //tmp.setGracefulCleanup();
const fileTldInfoJs = path.dirname(require.main.filename) + '/../../formats/js/tld-enum/info.js'; const fileTldInfoJs = path.dirname(require.main.filename) + '/../../../formats/js/tld-enum/info.js';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
program program
.option('-q, --quiet', 'Quiet Mode') .option('-q, --quiet', 'Quiet Mode')

View File

@ -17,8 +17,8 @@ const pathinfo = require('pathinfo');
const program = require('commander'); const program = require('commander');
const tmp = require('tmp'); const tmp = require('tmp');
const fileTldListJs = path.dirname(require.main.filename) + '/../../formats/js/tld-enum/list.js'; const fileTldListJs = path.dirname(require.main.filename) + '/../../../formats/js/tld-enum/list.js';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
program program
.option('-q, --quiet', 'Quiet Mode') .option('-q, --quiet', 'Quiet Mode')

View File

@ -19,8 +19,8 @@ const tmp = require('tmp');
//tmp.setGracefulCleanup(); //tmp.setGracefulCleanup();
const fileTldTypeJs = path.dirname(require.main.filename) + '/../../formats/js/tld-enum/type.js'; const fileTldTypeJs = path.dirname(require.main.filename) + '/../../../formats/js/tld-enum/type.js';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
program program
.option('-q, --quiet', 'Quiet Mode') .option('-q, --quiet', 'Quiet Mode')

View File

@ -19,8 +19,8 @@ const tmp = require('tmp');
//tmp.setGracefulCleanup(); //tmp.setGracefulCleanup();
const fileTldDescJs = path.dirname(require.main.filename) + '/../../formats/json/tld-desc.json'; const fileTldDescJs = path.dirname(require.main.filename) + '/../../../formats/json/tld-desc.json';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
program program
.option('-q, --quiet', 'Quiet Mode') .option('-q, --quiet', 'Quiet Mode')

View File

@ -19,8 +19,8 @@ const tmp = require('tmp');
//tmp.setGracefulCleanup(); //tmp.setGracefulCleanup();
const fileTldInfoJs = path.dirname(require.main.filename) + '/../../formats/json/tld-info.json'; const fileTldInfoJs = path.dirname(require.main.filename) + '/../../../formats/json/tld-info.json';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
program program
.option('-q, --quiet', 'Quiet Mode') .option('-q, --quiet', 'Quiet Mode')

View File

@ -19,8 +19,8 @@ const tmp = require('tmp');
tmp.setGracefulCleanup(); tmp.setGracefulCleanup();
const fileTldListJson = path.dirname(require.main.filename) + '/../../formats/json/tld-list.json'; const fileTldListJson = path.dirname(require.main.filename) + '/../../../formats/json/tld-list.json';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
program program
.option('-q, --quiet', 'Quiet Mode') .option('-q, --quiet', 'Quiet Mode')

View File

@ -19,8 +19,8 @@ const tmp = require('tmp');
//tmp.setGracefulCleanup(); //tmp.setGracefulCleanup();
const fileTldTypeJs = path.dirname(require.main.filename) + '/../../formats/json/tld-type.json'; const fileTldTypeJs = path.dirname(require.main.filename) + '/../../../formats/json/tld-type.json';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
program program
.option('-q, --quiet', 'Quiet Mode') .option('-q, --quiet', 'Quiet Mode')

View File

@ -2,8 +2,8 @@
<?php <?php
new class() { new class() {
const ME_NAME = 'generate-php-tld-desc.php'; const ME_NAME = 'generate-php-tld-desc.php';
const TLDS_CSV_PATH = __DIR__ . '/../../tlds.csv'; const TLDS_CSV_PATH = __DIR__ . '/../../../tlds.csv';
const TLD_DESC_PATH = __DIR__ . '/../../formats/php/TldEnum/TldDesc.php'; const TLD_DESC_PATH = __DIR__ . '/../../../formats/php/TldEnum/TldDesc.php';
private static $_quietMode = false; private static $_quietMode = false;
public function __construct() { public function __construct() {
$opt = getopt ( "q",['quiet']); $opt = getopt ( "q",['quiet']);

View File

@ -2,8 +2,8 @@
<?php <?php
new class() { new class() {
const ME_NAME = 'generate-php-tld-info.php'; const ME_NAME = 'generate-php-tld-info.php';
const TLDS_CSV_PATH = __DIR__ . '/../../tlds.csv'; const TLDS_CSV_PATH = __DIR__ . '/../../../tlds.csv';
const TLD_INFO_PATH = __DIR__ . '/../../formats/php/TldEnum/TldInfo.php'; const TLD_INFO_PATH = __DIR__ . '/../../../formats/php/TldEnum/TldInfo.php';
private static $_quietMode = false; private static $_quietMode = false;
public function __construct() { public function __construct() {
$opt = getopt ( "q",['quiet']); $opt = getopt ( "q",['quiet']);

View File

@ -2,8 +2,8 @@
<?php <?php
new class() { new class() {
const ME_NAME = 'generate-php-tld-list.php'; const ME_NAME = 'generate-php-tld-list.php';
const TLDS_CSV_PATH = __DIR__ . '/../../tlds.csv'; const TLDS_CSV_PATH = __DIR__ . '/../../../tlds.csv';
const TLD_ENUM_PATH = __DIR__ . '/../../formats/php/TldEnum/TldList.php'; const TLD_ENUM_PATH = __DIR__ . '/../../../formats/php/TldEnum/TldList.php';
private static $_quietMode = false; private static $_quietMode = false;
public function __construct() { public function __construct() {
$opt = getopt ( "q",['quiet']); $opt = getopt ( "q",['quiet']);

View File

@ -2,8 +2,8 @@
<?php <?php
new class() { new class() {
const ME_NAME = 'generate-php-tld-type.php'; const ME_NAME = 'generate-php-tld-type.php';
const TLDS_CSV_PATH = __DIR__ . '/../../tlds.csv'; const TLDS_CSV_PATH = __DIR__ . '/../../../tlds.csv';
const TLD_TYPE_PATH = __DIR__ . '/../../formats/php/TldEnum/TldType.php'; const TLD_TYPE_PATH = __DIR__ . '/../../../formats/php/TldEnum/TldType.php';
private static $_quietMode = false; private static $_quietMode = false;
public function __construct() { public function __construct() {
$opt = getopt ( "q",['quiet']); $opt = getopt ( "q",['quiet']);

View File

@ -22,8 +22,8 @@ const tmp = require('tmp');
tmp.setGracefulCleanup(); tmp.setGracefulCleanup();
const fileTldDescCsv = path.dirname(require.main.filename) + '/../../assets/tld-desc.csv'; const fileTldDescCsv = path.dirname(require.main.filename) + '/../../../assets/tld-desc.csv';
const fileTldsCsv = path.dirname(require.main.filename) + '/../../tlds.csv'; const fileTldsCsv = path.dirname(require.main.filename) + '/../../../tlds.csv';
const urlTldsAlpha = 'http://data.iana.org/TLD/tlds-alpha-by-domain.txt'; const urlTldsAlpha = 'http://data.iana.org/TLD/tlds-alpha-by-domain.txt';
const urlDomainsDb = 'https://www.iana.org/domains/root/db'; const urlDomainsDb = 'https://www.iana.org/domains/root/db';