From cc0903e50e0f59644e3837155000d38c69d5b215 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sun, 14 Sep 2025 15:26:42 +0800 Subject: add nvchecker --- stardict-wikt-en-all/.gitignore | 1 + stardict-wikt-en-all/.nvchecker.toml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 stardict-wikt-en-all/.nvchecker.toml (limited to 'stardict-wikt-en-all') diff --git a/stardict-wikt-en-all/.gitignore b/stardict-wikt-en-all/.gitignore index 018a3de..218cc90 100644 --- a/stardict-wikt-en-all/.gitignore +++ b/stardict-wikt-en-all/.gitignore @@ -2,3 +2,4 @@ !PKGBUILD !.SRCINFO !.gitignore +!.nvchecker.toml diff --git a/stardict-wikt-en-all/.nvchecker.toml b/stardict-wikt-en-all/.nvchecker.toml new file mode 100644 index 0000000..4952c19 --- /dev/null +++ b/stardict-wikt-en-all/.nvchecker.toml @@ -0,0 +1,12 @@ +[stardict-wikt-en-all] +source = 'regex' +url = 'https://www.dictinfo.com/' +# Not sure why but test shows if use sth. like \., must use single quote ' +# instead of double quote ", else error: "jq: parse error: Invalid literal at +# line 1, column 7"; if want to use double quote ", must use sth. like \\. +regex = 'stardict/wikt-en-ALL-([0-9]+-[0-9]+-[0-9]+)\.7z' +# convert the version name from sth. like 2024-10-05 to 2024_10_05 to match +# PKGBUILD version name, so `pkgctl version upgrade` can correctly upgrade +# PKGBUILD version +from_pattern = '-' +to_pattern = '_' -- cgit v1.2.3-70-g09d2 ub'>Device dependent config files for Arch Linux, managed by https://git.flylightning.xyz/fsh/tree/sh/cfg (git bare repo method)
summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/dateft
blob: b3174749f8a9c8e85a7cbb4ffe1e8fc2b12fd516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# DATE From To

while getopts cfF:t:T: opt; do
	case $opt in
		c) tz_from="Asia/Shanghai";;
		f) tz_from="$(tzselect)";;
		F) tz_from="$OPTARG";;
		# one extra ',' at the end will not let `for tz in ...` loop one extra time?
		t)	for i in $(seq "$OPTARG"); do
				tz_to="$(tzselect),$tz_to"
			done;;
		T) tz_to="$OPTARG,$tz_to";;
		\?) exit 1;;
	esac
done
shift $((OPTIND-1))