Ver código fonte

add build aliases + fix gsutil config crash + add more functionality to reportbuild

Noah Vogt 1 ano atrás
pai
commit
5fa4c0bfd7
3 arquivos alterados com 9 adições e 2 exclusões
  1. 2 0
      dot-config/aliasrc
  2. 1 0
      dot-config/gsutil/config
  3. 6 2
      local-bin/reportbuild

+ 2 - 0
dot-config/aliasrc

@@ -151,4 +151,6 @@ djangokeygen() { python -c 'from django.core.management.utils import get_random_
 }
 
 alias ab='[ -f nohup.out ] && rm -f nohup.out; nohup reportbuild &!'
+alias abx='[ -f nohup.out ] && rm -f nohup.out; nohup reportbuild -x &!'
 alias abc='[ -f nohup.out ] && rm -f nohup.out; nohup reportbuild -c &!'
+alias abcx='[ -f nohup.out ] && rm -f nohup.out; nohup reportbuild -c -x &!'

+ 1 - 0
dot-config/gsutil/config

@@ -1 +1,2 @@
+[GSUtil]
 state_dir = $XDG_DATA_HOME/gsutil

+ 6 - 2
local-bin/reportbuild

@@ -2,8 +2,12 @@
 
 makepkg -fC
 if sendreportmail | grep -q "BUILD SUCCESS"; then
-    if echo "$1" | grep -q "c"; then
+    git push
+    if echo "$1$2" | grep -q "c"; then
         cr
     fi
+    if echo "$1$2" | grep -q "x"; then
+        xup *.pkg.tar.zst
+    fi
 fi
-loginctl suspend || sudo systemctl suspend
+sudo systemctl suspend