-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: include 'repositories' in samples
Also rename 'playground' to samples.
- Loading branch information
Showing
57 changed files
with
173 additions
and
97 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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,49 @@ | ||
#!/usr/bin/env sh | ||
|
||
# build-samples.sh | ||
# | ||
# This file builds the 'samples' folder. Means it will: | ||
# | ||
# 1. Copy all of the files from 'samples' | ||
# 2. Add the .version.txt file to the samples | ||
# 3. Clone the sample repositories, which are hosted at github.com/effective-shell | ||
# 4. Create a zip archive and tar.gz archive | ||
# | ||
# The samples will be created in the './artifacts' folder. | ||
|
||
# Fail on errors. | ||
set -e | ||
|
||
# Uncomment the line below to trace the script. | ||
set -x | ||
|
||
# First, trash the samples folder if it exists in the artifacts folder. Then | ||
# create a new folder based on the current samples. | ||
[ -d ./artifacts/samples ] && rm -rf ./artifacts/samples | ||
mkdir -p ./artifacts | ||
cp -r ./samples ./artifacts | ||
|
||
# Copy over the version identifier. | ||
cp version.txt ./artifacts/samples/.version.txt | ||
|
||
# Clone our sample repositories. If we have repositories that should not have | ||
# remotes (i.e. for the chapter on getting started with git, where we work with | ||
# a local repository only) we just remove the remote. | ||
mkdir -p ./artifacts/samples/repositories | ||
( cd ./artifacts/samples/repositories \ | ||
&& git clone git://github.com/effective-shell/chapter-27-dotfiles \ | ||
&& cd chapter-27-dotfiles \ | ||
&& git remote remove origin \ | ||
) | ||
( cd ./artifacts/samples/repositories \ | ||
&& git clone git://github.com/effective-shell/chapter-28-dotfiles \ | ||
&& cd chapter-28-dotfiles \ | ||
&& git remote remove origin \ | ||
) | ||
|
||
# Zip up and tar up the samples | ||
zip -r ./artifacts/samples.zip ./artifacts/samples | ||
tar czf ./artifacts/samples.tar.gz -C ./artifacts/samples . | ||
|
||
# mkdir -p website/static/downloads | ||
# cd website && hugo --minify |
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
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
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
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
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
Oops, something went wrong.