]> git.phdru.name Git - git-scripts.git/commitdiff
Simplify regular expressions for `compileall`
authorOleg Broytman <phd@phdru.name>
Tue, 23 Jan 2024 08:36:43 +0000 (11:36 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 23 Jan 2024 08:36:43 +0000 (11:36 +0300)
add-pubkey/post-checkout
hooks/post-checkout/compyle
hooks/post-checkout/compyle-all
hooks/post-merge
hooks/post-rewrite

index 19ac074d0a08236c8a7b030b80b49f48b8b06882..5017228fcdd43e1878382447164230b4b6e57f98 100755 (executable)
@@ -11,8 +11,8 @@ if [ \( "$new_branch" = 1 \) ]; then
    if [ "$new_HEAD" = "`git rev-parse phd-pubkey`" ]; then
       git clean -d -f -q
    else
-      python    -m compileall -q -x '\.tox/.+' . &&
-      python -O -m compileall -q -x '\.tox/.+' .
+      python    -m compileall -q -x '\.tox/' . &&
+      python -O -m compileall -q -x '\.tox/' .
    fi
 fi
 
index 0952d434b372071a44d088f93a024ddc80512229..c78191391705240f5d818bbd25372ec9bb4462d0 100755 (executable)
@@ -8,8 +8,8 @@ new_HEAD="$2"
 new_branch="$3"
 
 if [ "$new_branch" = 1 ]; then
-   python    -m compileall -q -x '\.tox/.+' . &&
-   python -O -m compileall -q -x '\.tox/.+' .
+   python    -m compileall -q -x '\.tox/' . &&
+   python -O -m compileall -q -x '\.tox/' .
 fi
 
 exit 0
index d4887f6a554c092940c3c904d243e1384cc835eb..3cdae190189e87dabb836aa8286e7ca364addfe1 100755 (executable)
@@ -2,7 +2,7 @@
 
 # post-checkout hook that compiles python files to byte code
 
-python    -m compileall -q -x '\.tox/.+' . &&
-python -O -m compileall -q -x '\.tox/.+' .
+python    -m compileall -q -x '\.tox/' . &&
+python -O -m compileall -q -x '\.tox/' .
 
 exit 0
index 633a1d0dd12c2665ea04880e59ce7ffe259fa941..2df0670c3aa8126c5737e2a1af74b14d97c2e091 100755 (executable)
@@ -2,7 +2,7 @@
 
 # post-merge hook that compiles python files to byte code
 
-python    -m compileall -q -x '\.tox/.+' . &&
-python -O -m compileall -q -x '\.tox/.+' .
+python    -m compileall -q -x '\.tox/' . &&
+python -O -m compileall -q -x '\.tox/' .
 
 exit 0
index df28442064f11766915c5abe2c3a5112b2664a64..59efb3dcfc7f6eda57f24c42bb53660a19cf4d81 100755 (executable)
@@ -2,7 +2,7 @@
 
 # post-rewrite hook that compiles python files to byte code
 
-python    -m compileall -q -x '\.tox/.+' . &&
-python -O -m compileall -q -x '\.tox/.+' .
+python    -m compileall -q -x '\.tox/' . &&
+python -O -m compileall -q -x '\.tox/' .
 
 exit 0