aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-12-29 17:33:43 -0200
committerEuAndreh <eu@euandre.org>2018-12-29 17:33:43 -0200
commita466558ccfa8d5d14135e8b0010fb97a53e9052d (patch)
tree976902bf0de01cb543e6563100090c0435da5234
parentRun podchecker in Nix test step. (diff)
downloadeuandre.org-a466558ccfa8d5d14135e8b0010fb97a53e9052d.tar.gz
euandre.org-a466558ccfa8d5d14135e8b0010fb97a53e9052d.tar.xz
Print realpath of generated files.
-rwxr-xr-xpastebin/website-pastebin2
-rwxr-xr-xslides/website-slides2
-rwxr-xr-xwebsite3
3 files changed, 6 insertions, 1 deletions
diff --git a/pastebin/website-pastebin b/pastebin/website-pastebin
index 8512490..a964449 100755
--- a/pastebin/website-pastebin
+++ b/pastebin/website-pastebin
@@ -88,3 +88,5 @@ my $slug = slugify($title);
$out = "$dirname/../site/pastebin/$slug.org";
envsubst();
+
+print `realpath $out`;
diff --git a/slides/website-slides b/slides/website-slides
index a6a774c..8907333 100755
--- a/slides/website-slides
+++ b/slides/website-slides
@@ -64,3 +64,5 @@ chdir "reveal.js/";
chdir "../";
copy("base.org", "$name/index.org") or die "Failed to copy base.org file: $!";
+
+print `realpath $name/index.org`; \ No newline at end of file
diff --git a/website b/website
index 370b38c..d85d72a 100755
--- a/website
+++ b/website
@@ -60,7 +60,6 @@ sub escaped_cmd {
sub dispatch {
my $action = shift;
my @args = @_;
- my @sub_args = grep { $_ ne $action } @args;
if (!defined $action && $help) {
pod2usage(
-verbose => 2,
@@ -73,8 +72,10 @@ sub dispatch {
-exitval => 2
);
} elsif ($action eq 'pastebin') {
+ my @sub_args = grep { $_ ne $action } @args;
escaped_cmd("./pastebin/website-pastebin", @sub_args);
} elsif ($action eq 'slides') {
+ my @sub_args = grep { $_ ne $action } @args;
escaped_cmd("./slides/website-slides", @sub_args);
} elsif ($action eq 'test') {
test();