File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ # check the ulist versions first
2+ check_version () {
3+ local pp=" ../ulist/python/ulist/__init__.py"
4+ local pd=" ../docs/conf.py"
5+ local pc=" ../ulist/Cargo.toml"
6+ local vp=$( grep " __version" $pp | awk ' {print $NF}' | sed ' s/"//g' )
7+ local vd=$( grep " release = " $pd | awk ' {print $NF}' | sed " s/'//g" )
8+ local vc=$( grep " version = " $pc | head -1 | awk ' {print $NF}' | sed ' s/"//g' )
9+ if [ $vp != $vd -o $vp != $vc ]; then
10+ echo " Ulist versions don't match!"
11+ echo " $pp : $vp "
12+ echo " $pd : $vd "
13+ echo " $pc : $vc "
14+ echo " \n"
15+ return 1
16+ fi
17+ return 0
18+ }
19+
Original file line number Diff line number Diff line change 1+ . ./check_version.sh
2+
13EXIT_STATUS=0
24
5+ check_version || EXIT_STATUS=$?
6+
37echo " Running clippy..."
48cargo clippy --manifest-path ../ulist/Cargo.toml -- -D warnings|| EXIT_STATUS=$?
59echo " \n"
You can’t perform that action at this time.
0 commit comments