Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove 'samples' folder, move them to undeaD #20665

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ else
install: $(BUILD_EXE)
$(BUILD_EXE) man
$(BUILD_EXE) install INSTALL_DIR='$(if $(findstring $(OS),windows),$(shell cygpath -w '$(INSTALL_DIR)'),$(INSTALL_DIR))'
cp -r compiler/samples '$(INSTALL_DIR)'
mkdir -p '$(INSTALL_DIR)'/man
cp -r $(GENERATED)/docs/man/* '$(INSTALL_DIR)'/man/
$(QUIET)$(MAKE) -C druntime install INSTALL_DIR='$(INSTALL_DIR)'
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Refer to their respective `README.md` for more in-depth information.
| [compiler/test](compiler/test) | tests and testing infrastructure |
| [compiler/docs](compiler/docs) | man pages and internal documentation |
| [compiler/ini](compiler/ini) | predefined `dmd.conf` files |
| [compiler/samples](compiler/samples) | Various code examples |
| [druntime](druntime) | root of all runtime related code |

With a D compiler and dub installed, dmd can be built with:
Expand Down
8 changes: 8 additions & 0 deletions changelog/dmd.remove-samples.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The 'samples' folder has been removed from DMD installations

Every DMD release would include a 'samples' folder with small D code examples.
These examples are quite old, and not a good representation of modern D.
They're also hard to discover, since D compilers are often installed through an installer or package manager.

Since there are better resources available online nowadays, these samples have
been moved to the [undeaD](https://github.com/dlang/undeaD) repository.
15 changes: 0 additions & 15 deletions compiler/samples/.gitignore

This file was deleted.

49 changes: 0 additions & 49 deletions compiler/samples/all.sh

This file was deleted.

1 change: 0 additions & 1 deletion compiler/samples/build.bat

This file was deleted.

124 changes: 0 additions & 124 deletions compiler/samples/chello.d

This file was deleted.

4 changes: 0 additions & 4 deletions compiler/samples/clean.bat

This file was deleted.

Loading
Loading