-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_file_tree.sh
82 lines (62 loc) · 2.79 KB
/
create_file_tree.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
# Create the main directory
mkdir rust-Exploritorium
cd rust-advanced-roadmap
# Create the main README.md
cat <<EOL > README.md
# Rust Advanced Roadmap
This repository contains a comprehensive roadmap for studying advanced Rust programming. It is designed to help learners progress from basic to advanced topics in Rust.
## Roadmap Contents
- [Preliminary Concepts](#01-preliminary-concepts)
- [Intermediate Concepts](#02-intermediate-concepts)
- [Advanced Concepts](#03-advanced-concepts)
- [Advanced Language Features](#04-advanced-language-features)
- [Advanced Tooling and Ecosystem](#05-advanced-tooling-and-ecosystem)
- [Systems Programming](#06-systems-programming)
- [Web Development (Optional)](#07-web-development-optional)
- [Data Science and Machine Learning (Optional)](#08-data-science-and-machine-learning-optional)
- [Embedded and IoT (Optional)](#09-embedded-and-iot-optional)
- [Contributing to Open Source](#10-contributing-to-open-source)
- [Advanced Topics (Optional)](#11-advanced-topics-optional)
- [Continuous Learning](#12-continuous-learning)
...
## Contribution Guidelines
Feel free to contribute to this roadmap by opening issues or pull requests to suggest improvements or add resources.
EOL
# Create code and resources directories
mkdir code resources
# Create directories for each section
for i in {01..12}; do
section_name=""
case $i in
01) section_name="preliminary_concepts";;
02) section_name="intermediate_concepts";;
03) section_name="advanced_concepts";;
04) section_name="advanced_language_features";;
05) section_name="advanced_tooling_and_ecosystem";;
06) section_name="systems_programming";;
07) section_name="web_development_optional";;
08) section_name="data_science_and_ml_optional";;
09) section_name="embedded_and_iot_optional";;
10) section_name="contributing_to_open_source";;
11) section_name="advanced_topics_optional";;
12) section_name="continuous_learning";;
esac
mkdir -p "code/$section_name"
mkdir -p "resources/$section_name"
# Create README.md for each section
cat <<EOL > "code/$section_name/README.md"
# $section_name
This directory contains code examples and projects related to the "$section_name" section of the Rust Advanced Roadmap.
...
EOL
# Create README.md for each resources section
cat <<EOL > "resources/$section_name/README.md"
# $section_name Resources
This directory contains supplementary materials and resources related to the "$section_name" section of the Rust Advanced Roadmap.
...
EOL
done
# Create the remaining files and directories (LICENSE, CONTRIBUTING.md, etc.)
touch LICENSE CONTRIBUTING.md CHANGELOG.md ISSUE_TEMPLATE.md PULL_REQUEST_TEMPLATE.md
echo "Rust- Exploritorium created successfully!"