1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

remove "extras". it exists in it's own repo now.

This commit is contained in:
Henrik Hautakoski 2020-03-14 13:25:37 +01:00
parent 04ac59aeac
commit 2aaebdf5e2
9 changed files with 0 additions and 96848 deletions

View file

@ -11,8 +11,6 @@ set( PROJECT_MAINTAINER "Henrik Hautakoski <henrik@eossweden.org>")
# Options
option(USE_THREADS "Compile with support for threads (if available)." ON)
option(FORCE_ANSI "Force ANSI console colors even on windows" OFF)
option(EXTRAS "Include non essential (extra) files in the build. (only for *nix)" OFF)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
@ -47,10 +45,6 @@ endif()
add_subdirectory( cli )
add_subdirectory( docs )
if (UNIX AND EXTRAS)
add_subdirectory( extras )
endif()
# --------------------------------
# Additional install files
# --------------------------------

View file

@ -1,49 +0,0 @@
cmake_minimum_required(VERSION 3.4)
# Project name and version
project(eosio-keygen-extras VERSION 0.1.0)
# --------------------------------
# Package info
# --------------------------------
set( PACKAGE_NAME ${PROJECT_NAME} )
set( PACKAGE_DESCRIPTION "Extra files for eosio-keygen" )
set( PACKAGE_VERSION "${PROJECT_VERSION}" )
set( PACKAGE_URL "https://github.com/eosswedenorg/eosio-keygen" )
set( PACKAGE_MAINTAINER "Henrik Hautakoski <henrik@eossweden.org>")
# Debian specific
set( PACKAGE_DEB_RELEASE 1 CACHE STRING "Debian package release number")
set( PACKAGE_DEB_VERSION ${PACKAGE_VERSION}-${PACKAGE_DEB_RELEASE} )
set( PACKAGE_DEB_FILENAME ${PACKAGE_NAME}_${PACKAGE_DEB_VERSION}.deb )
# --------------------------------
# Debian package
# --------------------------------
set( DEB_ROOT "debroot" )
set( DEB_FULL_ROOT ${CMAKE_CURRENT_BINARY_DIR}/${DEB_ROOT} )
set( DEB_SHARE_DIR ${CMAKE_INSTALL_FULL_DATADIR}/${CMAKE_PROJECT_NAME} )
configure_file(debian_control.in ${DEB_ROOT}/DEBIAN/control @ONLY)
add_custom_target(deb_content
COMMAND ${CMAKE_COMMAND} -E copy_directory
dict
${DEB_FULL_ROOT}/${DEB_SHARE_DIR}/dict
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(deb_extras
COMMENT "dpkg: ${PROJECT_NAME} (${PACKAGE_DEB_FILENAME})"
COMMAND fakeroot dpkg-deb --build ${DEB_ROOT} ${PACKAGE_DEB_FILENAME} > /dev/null
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
DEPENDS deb_content
)
# --------------------------------
# Install target
# --------------------------------
install(
DIRECTORY dict
DESTINATION ${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}
)

View file

@ -1,8 +0,0 @@
Package: @PACKAGE_NAME@
Version: @PACKAGE_DEB_VERSION@
Description: @PACKAGE_DESCRIPTION@
Section: misc
Priority: optional
Architecture: all
Homepage: @PACKAGE_URL@
Maintainer: @PACKAGE_MAINTAINER@

View file

@ -1,8 +0,0 @@
{
"english": [
"/usr/share/dict/american-english",
"/usr/share/dict/british-english",
"english-custom"
],
"swedish": "/usr/share/dict/swedish"
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,8 +0,0 @@
bitcoin
bos
btc
dac
eos
eosio
swe
wax

View file

@ -1,15 +0,0 @@
#!/usr/bin/env bash
# Generates a dictionary file for usage with eosio-keygen
# - input is read from stdin and should have words separated by newline.
# - output is written to stdout.
BASE58_ALPHABET=123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz
# 1. Remove lines that are 2 or less characters long
# 2. Convert to lowercase
# 3. Remove any line that contains non base58 characters
# 4. Sort and remove duplicate lines.
LC_CTYPE=C sed -r '/^.{,2}$/d' < /dev/stdin 2> /dev/null \
| tr '[:upper:]' '[:lower:]' \
| awk "! /[^${BASE58_ALPHABET}]/" \
| sort | uniq

View file

@ -1,25 +0,0 @@
#!/usr/bin/env bash
# Updates the dictionary files defined in extras/dict.json.
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
EXTRAS_DIR=${BASE_DIR}/../extras
CONFIG=${EXTRAS_DIR}/dict.json
for lang in $(jq -r 'keys[]' $CONFIG); do
echo "- Generating: $lang"
files=()
for f in $(jq -r ".$lang | if type==\"array\" then .[] else . end" $CONFIG); do
if [ "${f:0:1}" != "/" ]; then
f="$EXTRAS_DIR/$f"
fi
files+=( "$f" )
done
grep -hs ^ ${files[@]} | $BASE_DIR/generate-dict.sh > $EXTRAS_DIR/dict/$lang
done
echo "Done"