Compare commits

..

2 Commits

Author SHA1 Message Date
Maciej Barć
917dd8f982
src/*: add headers where appropriate
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
2020-12-22 01:52:05 +01:00
Maciej Barć
98fa5b7665
src/here-pull-overlays: stylize; add header
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
2020-12-22 01:48:17 +01:00
12 changed files with 66 additions and 11 deletions

View File

@ -1,6 +1,11 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
# CI Ebuild commit tester # CI Ebuild commit tester
# Run this in a overlay directory. # Run this in a overlay directory.
# This script uses pkgcheck and repoman # This script uses pkgcheck and repoman

View File

@ -1,6 +1,10 @@
#!/bin/sh #!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
# Clean md5-cache from the overlay directory # Clean md5-cache from the overlay directory

View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
trap 'exit 128' INT trap 'exit 128' INT
set -e set -e
export PATH export PATH

View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
trap 'exit 128' INT trap 'exit 128' INT
export PATH export PATH

View File

@ -1,6 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
# Source this to enter the Eprefix environment # Source this to enter the Eprefix environment
# Like this for example: # Like this for example:
# $ source $HOME/gentoo/eprefix-activate # $ source $HOME/gentoo/eprefix-activate

View File

@ -1,17 +1,21 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
set -o pipefail set -o pipefail
trap 'exit 1' INT trap 'exit 128' INT
export PATH export PATH
emsg() emsg() {
{
echo "$(tput bold)$(tput setaf 6)>>> $(tput setaf 4)$(date +%H:%M:%S)$(tput setaf 7) ${*} $(tput sgr0)" echo "$(tput bold)$(tput setaf 6)>>> $(tput setaf 4)$(date +%H:%M:%S)$(tput setaf 7) ${*} $(tput sgr0)"
} }
edie()
{ edie() {
if [ -z "${1}" ] if [ -z "${1}" ]
then then
emsg "$(tput setaf 1)Failed: last command" emsg "$(tput setaf 1)Failed: last command"
@ -20,17 +24,16 @@ edie()
fi fi
exit 1 exit 1
} }
erun() erun() {
{
emsg "Running: ${*}" emsg "Running: ${*}"
"${@}" | busybox ts '>>> %H:%M:%S' || edie "${@}" "${@}" | busybox ts '>>> %H:%M:%S' || edie "${@}"
} }
einto()
{ einto() {
pushd "${1}" >/dev/null || edie "Could not open ${1}" pushd "${1}" >/dev/null || edie "Could not open ${1}"
} }
eback()
{ eback() {
popd >/dev/null || edie popd >/dev/null || edie
} }

View File

@ -1,6 +1,10 @@
#!/bin/sh #!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
# Scan with euscan + log # Scan with euscan + log
# Requires: # Requires:
# - eix # - eix

View File

@ -1,6 +1,10 @@
#!/bin/sh #!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
# Use this script to check which pkgs in a overlay might # Use this script to check which pkgs in a overlay might
# be redundant - are in overlays other than the tested one # be redundant - are in overlays other than the tested one

5
src/pn
View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
trap 'exit 128' INT trap 'exit 128' INT

View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
trap 'exit 128' INT trap 'exit 128' INT
export PATH export PATH

View File

@ -1,6 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
# CI Ebuild commit tester # CI Ebuild commit tester
# Run this in a overlay directory. # Run this in a overlay directory.
# This script uses repoman # This script uses repoman

View File

@ -1,13 +1,20 @@
#!/bin/sh #!/bin/sh
# Original author: XGQT
# Licensed under the ISC License
# Copyright (c) 2020, src_prepare group
trap 'exit 128' INT trap 'exit 128' INT
export PATH export PATH
git submodule update --init --recursive git submodule update --init --recursive
git submodule update --remote --merge git submodule update --remote --merge
git add . git add .
git commit --signoff --message="submodules update" git commit --signoff --message="submodules update"
git pull --verbose git pull --verbose
git push --verbose git push --verbose