-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an activestate.yaml to simplify build/launch
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
project: https://platform.activestate.com/chromatic/ModernPerl4e-5.34-Linux?branch=main&commitID=aff573b8-824b-4844-a29e-7b0f0fc979e3 | ||
|
||
scripts: | ||
- name: activationMessage | ||
language: perl | ||
value: | | ||
print <<~EOT; | ||
You are now in an activated state, which is like a virtual environment to work | ||
in that doesn't affect the rest of your system. To leave, run `exit`. | ||
What's next? | ||
- To learn more about what you can do, run → `state run modern-perl-book [chapter-number]` | ||
EOT | ||
exec( $^X, $ENV{ACTIVESTATE_ACTIVATED} . '/build/tools/build_html_book.pl' ); | ||
- name: modern-perl-book | ||
description: Open the Modern Perl book in your web browser. With no arguments provided, opens the table of contents. Otherwise pass the chapter number (0, 1, ... 15) to read that chapter. | ||
language: perl | ||
value: | | ||
exec( $^X, $ENV{ACTIVESTATE_ACTIVATED} . '/build/tools/open_browser.pl', @ARGV ); | ||
events: | ||
- name: ACTIVATE | ||
value: activationMessage |