Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/makefile-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
Roelof Roos committed Sep 29, 2018
2 parents eb67416 + 440c9b8 commit 491d373
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions gumbo-millennium/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,18 @@ gumbo-millennium.zip:
src/ \
vendor/ \
LICENSE.md \
README.md \
plugin.php
README.md

# Copy plugin.php to temporary dir
cp plugin.php temp/plugin.php

# Update version in temporary plugin copy
# Update version and write to temporary plugin file
sed -i -r \
"s/^( \* Version:\s+).+$$/\1$(shell git log -n1 --pretty='%h')/" \
temp/plugin.php
plugin.php > temp/plugin.php

# Force the modified time to update
touch temp/plugin.php

# Add plugin file
zip -f --junk-paths \
zip -u --junk-paths \
temp/new.zip \
temp/plugin.php

Expand Down

0 comments on commit 491d373

Please sign in to comment.