Skip to content

Commit 3d82973

Browse files
authored
Add plain text description of the script.
1 parent c3a626e commit 3d82973

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

bin/since-unreleased.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
#!/bin/bash
22

3-
find ./ -type f \( -name "*.php" -o -name "*.js" -o -name "*.jsx" \) -not \( -path "./vendor/*" -o -path "./node_modules/*" \) -exec sed -i -e "s/@unreleased/@since $1/g" {} \;
3+
# Find files in the directory ./ (root)
4+
# find ./ -type f
5+
6+
# Include files with extensions .php, .js, or .jsx
7+
# \( -name "*.php" -o -name "*.js" -o -name "*.jsx" \)
8+
9+
# Exclude the directories vendor (composer) and node_modules (npm)
10+
# -not \( -path "./vendor/*" -o -path "./node_modules/*" \)
411

12+
# Replace the string @unreleased with the value of the first argument, prefixed with @since
13+
# -exec sed -i -e "s/@unreleased/@since $1/g" {} \;
14+
15+
find ./ -type f \( -name "*.php" -o -name "*.js" -o -name "*.jsx" \) -not \( -path "./vendor/*" -o -path "./node_modules/*" \) -exec sed -i -e "s/@unreleased/@since $1/g" {} \;

0 commit comments

Comments
 (0)