-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpub.sh
executable file
·40 lines (33 loc) · 1.02 KB
/
pub.sh
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
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
#export LC_CTYPE=en_US.UTF-8
###Changelog::
# 230106 ZQ: creat
#==================================================================== abt. define
VER="pub.sh {v23.1.6} auto mdbook and git upd"
DATE=`date "+%y%m%d"`
MDBOOK="$(which mdbook)"
RSS4BOOK="$(which rss4mdbook)"
GIT="$(which git)"
#==================================================================== abt. path
#ROOT=$1
ROOT=$(pwd)
SRC="$ROOT/src"
DOC="$ROOT/docs"
CNAME="$SRC/CNAME"
#==================================================================== abt. action
echo "###::$VER build all rustacean for rs.101.so" #>> $LOGF
echo "###::run@" `date +"%Y/%m/%d %H:%M:%S"` #>> $LOGF
echo $ROOT
pwd
$MDBOOK build
cp -fv $CNAME $DOC
#ls $DOC
#exa -T -L2 src/
#ls -la $DOC/rss.xml
#$RSS4BOOK gen $ROOT/abc.d0d.fun/book.toml
#ls -la $DOC/rss.xml
NOW=`date "+%y%m%d %H:%M:%S"`
git upd "re-build by mdbook AT{$NOW}"
echo "###::end@" `date +"%Y/%m/%d %H:%M:%S"` #>> $LOGF
#==================================================================== end shell script
exit 0