Skip to content

Commit

Permalink
mint a new release of fortunes-shlomif (use xz)
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomif committed Aug 27, 2020
1 parent 1f59cfc commit b05fce8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@
/src/humour/fortunes/arcs-list.mak
/src/humour/fortunes/bbt
/src/humour/fortunes/bbt.html.tt2
/src/humour/fortunes/fortunes-shlomif-*.tar.gz
/src/humour/fortunes/fortunes-shlomif-*.tar.xz
/src/humour/fortunes/fortunes-shlomif-all.atom
/src/humour/fortunes/fortunes-shlomif-all.rss
/src/humour/fortunes/fortunes-shlomif-lookup.sqlite3
Expand Down
16 changes: 16 additions & 0 deletions bin/mint-new-fortunes-shlomif-version-release-tarball.pl
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,19 @@ BEGIN
my $package_base = ShlomifFortunesMake->package_base();
my $full_path = sprintf( "%s/%s", $DIR, $package_base );
my_system( [ "ls", $full_path ] );
use Shlomif::Homepage::Git ();
my $git_obj = Shlomif::Homepage::Git->new;
my $repos = 'shlomif-humour-fortunes-archives-assets';
$git_obj->github_shlomif_clone( 'lib/repos', $repos );
my $full_r = "lib/repos/$repos";
my $dest_pkg = "humour/fortunes/$package_base";
my $full_dest_pkg = "$full_r/$dest_pkg";
path($full_path)->copy($full_dest_pkg);
my_system(
[
"bash",
"-c",
"set -e -x ; cd $full_r && git add \"$dest_pkg\" && git commit -m \"add version @{[ShlomifFortunesMake->ver()]}\" && git push"
]
);

2 changes: 1 addition & 1 deletion lib/hunspell/whitelist1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2832,7 +2832,6 @@ Volovic
XML-based
borg
ch
gz
kernelnewbies
org's
py
Expand All @@ -2841,6 +2840,7 @@ shlomif-email-signature
shlomif-factoids-lists
splitbrain
xml
xz

==== In: dest/post-incs/t2/humour/fortunes/joel-on-software.html

Expand Down
2 changes: 1 addition & 1 deletion src/humour/fortunes/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ $(PACKAGE_BASE): $(PACKAGE_DEPS)
fi
@make distdir
touch -t 202006241200.00 $(DIST_DIR)
tar --group=user:1000 --owner=user:1000 --sort=name -caf $@ $(DIST_DIR)
XZ_OPT="-9 --extreme" tar --group=user:1000 --owner=user:1000 --sort=name -caf $@ $(DIST_DIR)
rm -fr $(DIST_DIR)

print_package_base:
Expand Down
2 changes: 1 addition & 1 deletion src/humour/fortunes/ShlomifFortunesMake.pm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sub package_base
{
my ($class) = @_;

return $class->dist_dir . '.tar.gz';
return $class->dist_dir . '.tar.xz';
}

1;
2 changes: 1 addition & 1 deletion src/humour/fortunes/index.xhtml.tt2
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ They have been converted to a custom XML-based grammar, based on

<li>
<p>
<a href="[% fortunes__package_base() %]"><b>These fortunes in a tar.gz file</b></a>
<a href="[% fortunes__package_base() %]"><b>These fortunes in a tar.xz file</b></a>
</p>
</li>

Expand Down

0 comments on commit b05fce8

Please sign in to comment.