Skip to content

Commit

Permalink
UTF8 support in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
telatin committed Feb 21, 2019
1 parent cf3e5e3 commit 1a1004e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A list of example files to start using the Linux Command Line interface (CLI). O
## Content


### phage
### 📁phage

#### A set of files to test parsing of bioinformatics format, mostly related to PhiX phage.

Expand All @@ -40,14 +40,14 @@ A list of example files to start using the Linux Command Line interface (CLI). O
- assembly_status.txt
- vir_assembly_report.txt

### archives
### 📁archives

#### Archives to test decompression tools

- archive.tar.gz
- archive.zip

### misc
### 📁misc

#### This is an extra subdirectory, it contains its own README file for details

Expand All @@ -56,7 +56,7 @@ A list of example files to start using the Linux Command Line interface (CLI). O
- test
- ecoli

### files
### 📁files

#### Common file formats, both binary (e.g. PNG image) and text files (e.g. CSV). A PDF document is included to see how `less` can also handle them.

Expand All @@ -68,7 +68,7 @@ A list of example files to start using the Linux Command Line interface (CLI). O
- cars.csv
- introduction.txt

### scripts
### 📁scripts
- N50.pl
- linkweb.sh

Expand Down
4 changes: 3 additions & 1 deletion _readme_maker/make_readme
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env perl
use utf8;

# Generates "../README.md" based on history.txt and subdir contents
# Each subdir can optionally have a ".content" file to describe the use of the files
Expand All @@ -23,7 +24,7 @@ opendir my $dir_content, "$rep_directory";

while (my $subdir = readdir $dir_content) {
next if (! -d "$rep_directory/$subdir" or $subdir=~/^[_\.]/);
$content .= "\n### $subdir\n";
$content .= "\n### 📁$subdir\n";
opendir my $d, "$rep_directory/$subdir";
if (-e "$rep_directory/$subdir/.content") {
my $dir_description = read_file("$rep_directory/$subdir/.content");
Expand All @@ -42,5 +43,6 @@ while (my $subdir = readdir $dir_content) {
$template=~s/{content}/$content/;

open my $output, '>', "$rep_directory/README.md";
binmode $output, ":utf8";
say {$output} $template;

0 comments on commit 1a1004e

Please sign in to comment.