Changeset 3447674
- Timestamp:
- 01/27/2026 09:29:10 AM (2 months ago)
- Location:
- simple-block-animations/trunk
- Files:
-
- 3 edited
-
bin/deploy-to-svn.sh (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
simple-block-animations.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-block-animations/trunk/bin/deploy-to-svn.sh
r3447666 r3447674 142 142 echo "---" 143 143 echo "" 144 145 # Function to update changelog in readme.txt 146 update_readme_changelog() { 147 local readme_file="$1" 148 local version="$2" 149 local changelog="$3" 150 151 if [ ! -f "$readme_file" ]; then 152 echo "⚠️ readme.txt not found, skipping changelog update" 153 return 154 fi 155 156 # Check if changelog section exists 157 if ! grep -q "== Changelog ==" "$readme_file"; then 158 echo "⚠️ Changelog section not found in readme.txt" 159 return 160 fi 161 162 # Format the changelog entry 163 local changelog_entry="= $version =\n" 164 165 # Process each line of the commit message 166 while IFS= read -r line; do 167 # If line doesn't start with * or -, add it 168 if [[ "$line" =~ ^[*-] ]]; then 169 changelog_entry+="$line\n" 170 else 171 # Add * prefix if not empty 172 if [ -n "$line" ]; then 173 changelog_entry+="* $line\n" 174 fi 175 fi 176 done <<< "$changelog" 177 178 # Create a temporary file 179 local temp_file=$(mktemp) 180 181 # Insert new changelog entry after "== Changelog ==" 182 awk -v entry="$changelog_entry" ' 183 /^== Changelog ==/ { 184 print $0 185 print "" 186 printf "%s", entry 187 print "" 188 next 189 } 190 { print } 191 ' "$readme_file" > "$temp_file" 192 193 # Replace original file 194 mv "$temp_file" "$readme_file" 195 196 echo "✅ Updated Changelog section in readme.txt" 197 } 198 199 # Update readme.txt with changelog 200 if [ -f "$PLUGIN_DIR/readme.txt" ]; then 201 update_readme_changelog "$PLUGIN_DIR/readme.txt" "$VERSION" "$COMMIT_MESSAGE" 202 fi 144 203 145 204 # Build the project -
simple-block-animations/trunk/readme.txt
r3447666 r3447674 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1. 2.07 Stable tag: 1.1.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 71 71 == Changelog == 72 72 73 = 1.1.2 = 74 - Added support for all block types 75 76 77 = 1.1.1 = 78 * Update to version 1.1.1 79 80 73 81 = 1.0.0 = 74 82 * Initial release -
simple-block-animations/trunk/simple-block-animations.php
r3447666 r3447674 5 5 * Plugin URI: https://github.com/valentin-grenier/simple-animations-for-gutenberg 6 6 * Description: Easily add animations to your Gutenberg blocks without coding. 7 * Version: 1. 2.07 * Version: 1.1.2 8 8 * Requires at least: 9 9 * Requires PHP: … … 22 22 } 23 23 24 define( 'SIMPBLAN_VERSION', '1. 2.0' );24 define( 'SIMPBLAN_VERSION', '1.1.2' ); 25 25 define( 'SIMPBLAN_PATH', plugin_dir_path( __FILE__ ) ); 26 26 define( 'SIMPBLAN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.