-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# テーマのzip化 | ||
|
||
``` | ||
bash ./bin/zip.sh 1-0-0 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
version=$1 | ||
version=${version//-/.} | ||
|
||
# style.css のバージョン書き換え | ||
# sed -i '' -e "s/Version: .*/Version: ${version}/g" style.css; | ||
|
||
# readme.txt のバージョン書き換え | ||
# sed -i '' -e "s/Stable tag: .*/Stable tag: ${version}/g" readme.txt; | ||
|
||
#上の階層へ | ||
cd ../ | ||
|
||
# 不要なファイルを除いてzip化 | ||
zip -r custom_css_for_fe.zip custom-css-for-fe -x "*/.*" "*/__*" "*bin*" "*node_modules*" "*vendor*" "*package.json" "*package-lock.json" "*composer.json" "*composer.lock" "*gulpfile.js" "*webpack.config.js" "*phpcs.xml" | ||
|
||
# zipから不要なファイルを削除#設定ファイル系削除 | ||
# zip --delete arkhe.zip "arkhe/.*" "arkhe/README.md" "arkhe/phpcs.xml" | ||
|
||
mv custom_css_for_fe.zip _versions/custom_css_for_fe-${1}.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters