Skip to content

Commit 8a38759

Browse files
committed
Remove deprecated projects and update script for checking deprecations
1 parent a50265b commit 8a38759

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

Diff for: check-for-deprecation.sh

+26-15
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,32 @@ EOF
1414
exit
1515
fi
1616

17-
APPS=$(cat readme.md | grep -e "- \[.\+\]\(.\+\)\s" | grep 'github.com' | awk -F "(" '{ print $2 }' | cut -d ")" -f1)
18-
19-
check_deprecation() {
20-
REPO="$1"
21-
if nice curl -SsL "$REPO" | grep "This repository has been archived by the owner. It is now read-only." >/dev/null; then
22-
echo "DEPRECATED $REPO" | tee -a $OUT_FILE
23-
else
24-
echo "CHECKED $REPO"
25-
fi
17+
check_if_archived_on_github() {
18+
APPS=$(grep -e "- \[.\+\]\(.\+\)\s" readme.md | grep 'github.com' | awk -F "(" '{ print $2 }' | cut -d ")" -f1)
19+
20+
check_deprecation() {
21+
REPO="$1"
22+
if nice curl -SsL "$REPO" | grep "This repository has been archived by the owner on" >/dev/null; then
23+
echo "DEPRECATED $REPO" | tee -a $OUT_FILE
24+
else
25+
echo "CHECKED $REPO"
26+
fi
27+
}
28+
29+
# parallel exec: https://unix.stackexchange.com/a/216475
30+
for app in $(echo $APPS); do
31+
((i=i%J)); ((i++==0)) && wait
32+
check_deprecation "$app" &
33+
done
2634
}
2735

28-
# parallel exec: https://unix.stackexchange.com/a/216475
29-
for app in $(echo $APPS); do
30-
((i=i%J)); ((i++==0)) && wait
31-
check_deprecation "$app" &
32-
done
36+
check_if_link_is_dead() {
37+
command -v deadlink >/dev/null || { echo "deadlink is not installed" 1>&2; exit 127; }
38+
39+
tmp=$(mktemp)
40+
grep -Po "http[^)]+" readme.md | grep -v "https://github.com" >$tmp
41+
deadlink check $tmp
42+
}
3343

34-
deadlink check readme
44+
check_if_archived_on_github
45+
check_if_link_is_dead

Diff for: readme.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
112112
### Social Media
113113

114114
- [facebook-cli](https://github.com/specious/facebook-cli) - Facebook command line interface.
115-
- [TTYtter](https://github.com/oysttyer/oysttyer) - Twitter client.
116115
- [Rainbowstream](https://github.com/DTVD/rainbowstream) - A smart and nice Twitter client on the terminal.
117116
- [tuir](https://gitlab.com/ajak/tuir) - Reddit TUI.
118117
- [WeeChat](https://weechat.org/) - Fast, light and extensible chat client.
@@ -203,8 +202,7 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
203202
- [s3cmd](https://github.com/s3tools/s3cmd) - Fully-Featured S3 client.
204203
- [pm2](https://github.com/Unitech/pm2) - Production Process Manager for Node.js.
205204
- [ops](https://github.com/nanovms/ops) - Unikernel compilation and orchestration tool.
206-
- [flog](http://github.com/mingrammer/flog) - A fake log generator for log formats such as apache-common, apache error and RFC3164 syslog.
207-
- [isitfit](http://github.com/autofitcloud/isitfit) - Manage AWS EC2 rightsizing.
205+
- [flog](https://github.com/mingrammer/flog) - A fake log generator for log formats such as apache-common, apache error and RFC3164 syslog.
208206
- [k9s](https://github.com/derailed/k9s) - Manage Kubernetes Clusters.
209207
- [PingMe](https://github.com/kha7iq/pingme) - Send messages/alerts to multiple messaging platforms & email.
210208
- [ipfs-deploy](https://github.com/agentofuser/ipfs-deploy) - Deploy static websites to [IPFS](https://github.com/ipfs/ipfs#overviewhttps://github.com/ipfs/ipfs#overview).
@@ -242,7 +240,7 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
242240
- [yo](https://github.com/yeoman/yo) - Scaffolding tool for running Yeoman generators.
243241
- [boilr](https://github.com/tmrts/boilr) - Create projects from boilerplate templates.
244242
- [cookiecutter](https://github.com/audreyr/cookiecutter) - Create projects from templates.
245-
- [mevn-cli](http://github.com/madlabsinc/mevn-cli) - Light speed setup for MEVN (Mongo Express Vue Node) Apps.
243+
- [mevn-cli](https://github.com/madlabsinc/mevn-cli) - Light speed setup for MEVN (Mongo Express Vue Node) Apps.
246244
- [scaffold-static](https://github.com/jamesgeorge007/scaffold-static) - Scaffolding utility for vanilla JS.
247245

248246
### HTTP Server
@@ -539,7 +537,6 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
539537
### Directory Navigation
540538

541539
- [autojump](https://github.com/wting/autojump) - A cd command that learns - easily navigate directories from the command line.
542-
- [fasd](https://github.com/clvv/fasd) - Command-line productivity booster, offers quick access to files and directories, inspired by autojump, z and v.
543540
- [pm](https://github.com/Angelmmiguel/pm) - The easy way to switch to your projects on the shell.
544541
- [z](https://github.com/rupa/z) - z is the new j, yo.
545542
- [PathPicker](https://github.com/facebook/pathpicker/) - After parsing the output from a command, PathPicker presents you with a nice UI to select which files you're interested in.
@@ -589,7 +586,6 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
589586
### GitHub
590587

591588
- [CLI GitHub](https://github.com/IonicaBizau/cli-github) - Fancy GitHub client.
592-
- [Gistup](https://github.com/mbostock/gistup) - Manage GitHub gists.
593589
- [hub](https://github.com/github/hub) - Make git easier to use with GitHub.
594590
- [git-labelmaker](https://github.com/himynameisdave/git-labelmaker) - Edit GitHub labels.
595591

@@ -637,7 +633,6 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
637633

638634
## Just for Fun
639635

640-
- [cowsay](https://github.com/tnalpgge/rank-amateur-cowsay) - A configurable talking cow (and other animals).
641636
- [quote-cli](https://github.com/riyadhalnur/quote-cli) - Get a random quote or the quote of the day in your CLI.
642637
- [fortune](https://github.com/shlomif/fortune-mod) - Shows a random fortune.
643638
- [ponysay](https://github.com/erkin/ponysay) - Pony rewrite of cowsay.
@@ -646,7 +641,6 @@ Inspired by the [awesome](https://github.com/sindresorhus/awesome) list thing.
646641
- [text-meme](https://github.com/beatfreaker/text-meme-cli) - Generate text memes.
647642
- [dankcli](https://github.com/sggts04/dankcli) - Add text to meme image templates.
648643
- [ricksay](https://github.com/roma-guru/ricksay) - Quotes from Rick and Morty.
649-
- [pokeget](https://github.com/talwat/pokeget) - Display sprites of pokemon.
650644

651645
### Emoji
652646

0 commit comments

Comments
 (0)