Skip to content

Commit

Permalink
專案介紹 - 新增演示圖片
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed Apr 26, 2017
1 parent d54a7e8 commit 6b443bc
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.png filter=lfs diff=lfs merge=lfs -text
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Pictures/Demonstration - EXIT Trap and Terminal Pausing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Pictures/Demonstration - Runtime Dependency Checking.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Pictures/Template Selection Menu in Dolphin FM(KDE).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Pictures/Unsafe Path Friendly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 19 additions & 6 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,26 @@
本專案設計易於重複使用的 GNU Bash Shell Script,方便使用者設計新的 shell script
<https://github.com/Lin-Buo-Ren/GNU-Bash-Shell-Script-Template>

![Template Selection Menu in Dolphin FM(KDE)](Pictures/Template%20Selection%20Menu%20in%20Dolphin%20FM%28KDE%29.png)

## 特色<br>Features
* 引進了 [Unofficial Bash Strict Mode](http://redsymbol.net/articles/unofficial-bash-strict-mode/)[Defensive BASH programming](http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/),make debugger happy ;)
* 內建執行時期依賴軟體檢查、ERR/EXIT traps、命令列參數分析等功能可以快速套用
* 空白字元、CJK 路徑友善,不會換個目錄程式就爆掉
* 附有安裝到使用者範本目錄的安裝程式
* 如果不需要超過 500 行的輔助功能另外還提供了少於 50 行的基本款,方便撰寫較簡單的 script
* 每個版本都通過 [ShellCheck](http://www.shellcheck.net/) 驗證,穩定有保障
### 引進了 [Unofficial Bash Strict Mode](http://redsymbol.net/articles/unofficial-bash-strict-mode/)[Defensive BASH programming](http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/),地方的 debugger 需要新鮮的肝

### 內建執行時期依賴軟體檢查、ERR/EXIT traps、命令列參數分析、印出幫助訊息等功能可以快速套用
![Demonstration - Runtime Dependency Checking.png](Pictures/Demonstration%20-%20Runtime%20Dependency%20Checking.png)

![Demonstration - Command-line Argument Parsing and Help Message](Pictures/Demonstration%20-%20Command-line%20Argument%20Parsing%20and%20Help%20Message.png)

![Demonstration - EXIT Trap and Terminal Pausing](Pictures/Demonstration%20-%20EXIT%20Trap%20and%20Terminal%20Pausing.png)

### 空白字元、CJK 路徑友善,不會換個目錄程式就爆掉
![Unsafe Path Friendly](Pictures/Unsafe%20Path%20Friendly.png)

### 附有安裝到使用者範本目錄的安裝程式,支援 GNOME Files/DolphinFM 與任何遵從 XDG 規範的軟體

### 如果不需要超過 500 行的輔助功能另外還提供了少於 50 行的基本款,方便撰寫較簡單的 script

### 每個版本都通過 [ShellCheck](http://www.shellcheck.net/) 驗證,品質有保障

## 遵從規範<br>Conforming Specifications
* Use the Unofficial Bash Strict Mode (Unless You Looove Debugging)
Expand Down
2 changes: 1 addition & 1 deletion build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ init(){
if [ ! -d "${SDC_RELEASE_DIR}" ]; then
mkdir --parents "${SDC_RELEASE_DIR}"
fi
tar --create --verbose --bzip2 --directory "${SHC_PREFIX_DIR}" --file "${SDC_RELEASE_DIR}/${APPLICATION_IDENTIFIER}-$(determine_package_revision).tar.bz2" -- *.source "install.bash" "README.markdown" "Source Code" "Template Setup for KDE"
tar --create --verbose --bzip2 --directory "${SHC_PREFIX_DIR}" --file "${SDC_RELEASE_DIR}/${APPLICATION_IDENTIFIER}-$(determine_package_revision).tar.bz2" -- *.source "install.bash" "README.markdown" "Source Code" "Template Setup for KDE" "Pictures"

exit 0
}
Expand Down

0 comments on commit 6b443bc

Please sign in to comment.