Add wdvn-name and wdvn-automake

This commit is contained in:
Fierelier 2022-09-22 09:34:42 +02:00
parent 06a24963fe
commit 3b276a9d99
3 changed files with 18 additions and 1 deletions

14
path/wdvn-automake Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -e
if [ -d "output" ]; then
rm -rf "output"
fi
wdvn-make output base hardware hardware-proprietary graphical graphical-xfce4 live finish
wdvn-image-iso output "$(wdvn-name).iso"
rm -rf "output"
source wdvn-env-amd64
wdvn-make output base hardware hardware-proprietary graphical graphical-xfce4 live finish
wdvn-image-iso output "$(wdvn-name).iso"
rm -rf "output"

2
path/wdvn-name Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
echo "${WDVN_NAME}-${WDVN_ARCH}_${WDVN_VER}_${WDVN_DATE}"

3
shell
View File

@ -8,4 +8,5 @@ export WDVN_KERNEL="linux-image-686"
export WDVN_DATE="$(date --utc "+%Y.%m.%d-%H.%M.%S")"
export WDVN_PID="$BASHPID"
export PATH="$(dirname "$(realpath -s "$BASH_SOURCE")")/path:$PATH"
export PS1="\[\033[0;35m\]\$WDVN_NAME-\${WDVN_ARCH}_\${WDVN_VER}_\$WDVN_DATE\[\033[0m\]:\[\033[0;37m\]\$(basename -- \$PWD)\[\033[0m\]> "
export WDVN_FULLNAME=
export PS1="\[\033[0;35m\]\$(wdvn-name)\[\033[0m\]:\[\033[0;37m\]\$(basename -- \$PWD)\[\033[0m\]> "