Skip to content

Commit

Permalink
! remove legacy bin 🚮
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Apr 12, 2024
1 parent fda8453 commit a1104b3
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 359 deletions.
7 changes: 0 additions & 7 deletions README.md
Expand Up @@ -37,7 +37,6 @@
- [📚 使用文档](#-%E4%BD%BF%E7%94%A8%E6%96%87%E6%A1%A3)
- [`Java`相关脚本](#-java%E7%9B%B8%E5%85%B3%E8%84%9A%E6%9C%AC)
- [🐚 `Shell`相关脚本](#-shell%E7%9B%B8%E5%85%B3%E8%84%9A%E6%9C%AC)
- [`VCS`相关脚本](#-vcs%E7%9B%B8%E5%85%B3%E8%84%9A%E6%9C%AC)
- [🎓 Developer Guide](#-developer-guide)
- [🎯 面向开发者的目标](#-%E9%9D%A2%E5%90%91%E5%BC%80%E5%8F%91%E8%80%85%E7%9A%84%E7%9B%AE%E6%A0%87)
- [关于`Shell`脚本](#%E5%85%B3%E4%BA%8Eshell%E8%84%9A%E6%9C%AC)
Expand Down Expand Up @@ -99,12 +98,6 @@ source <(curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/r
1. [parseOpts.sh](docs/shell.md#-parseoptssh)
命令行选项解析库,加强支持选项有多个值(即数组)。

### [`VCS`相关脚本](docs/vcs.md)

目前`VCS`的脚本都是`svn`分支相关的操作。使用更现代的`Git`吧! 💥

因为不推荐使用`svn`,这里不再列出有哪些脚本了,如果你有兴趣可以点上面链接去看。

## 🎓 Developer Guide

为用户提供有用的功能,当然是这个库的首要的价值体现和存在理由。
Expand Down
11 changes: 0 additions & 11 deletions docs/install.md
Expand Up @@ -25,17 +25,6 @@ git pull
- `dev-3.x`:开发分支
- `release-3.x`:发布分支,功能稳定的脚本

当然如果你不想安装`git``github`是支持`svn`的:

```bash
svn co https://github.com/oldratlee/useful-scripts/branches/release-3.x

cd useful-scripts

# 更新脚本
svn up
```

PS:
我的做法是把`useful-scripts` checkout到`$HOME/bin`目录下,再把`$HOME/bin/useful-scripts/bin`配置到`PATH`变量上,这样方便我本地使用所有的脚本。

Expand Down
114 changes: 0 additions & 114 deletions docs/vcs.md

This file was deleted.

83 changes: 0 additions & 83 deletions legacy-bin/cp-svn-url

This file was deleted.

89 changes: 0 additions & 89 deletions legacy-bin/svn-merge-stop-on-copy

This file was deleted.

50 changes: 0 additions & 50 deletions legacy-bin/swtrunk

This file was deleted.

2 changes: 1 addition & 1 deletion test/bump-scripts-version.sh
Expand Up @@ -69,6 +69,6 @@ cd -P -- "$(dirname -- "$0")"/..

# Bash Pitfalls#1
# http://mywiki.wooledge.org/BashPitfalls#for_f_in_.24.28ls_.2A.mp3.29
logAndRun find -D exec bin legacy-bin lib -type f -exec \
logAndRun find -D exec bin lib -type f -exec \
sed -ri "s/^(.*\bPROG_VERSION\s*=\s*')\S*('.*)$/\1$bump_version\2/" -- \
{} +
2 changes: 1 addition & 1 deletion test/lint.sh
Expand Up @@ -8,7 +8,7 @@ realpath() {
# cd to the root of the project
cd "$(dirname -- "$(realpath "${BASH_SOURCE[0]}")")"/..

find bin lib legacy-bin -type f |
find bin lib -type f |
grep -Pv '/show-duplicate-java-classes$' |
grep -Pv '/\.editorconfig$' |
xargs --verbose shellcheck --shell=bash

0 comments on commit a1104b3

Please sign in to comment.