Add wdvn-name and wdvn-automake
This commit is contained in:
parent
06a24963fe
commit
3b276a9d99
14
path/wdvn-automake
Executable file
14
path/wdvn-automake
Executable 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
2
path/wdvn-name
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "${WDVN_NAME}-${WDVN_ARCH}_${WDVN_VER}_${WDVN_DATE}"
|
3
shell
3
shell
@ -8,4 +8,5 @@ export WDVN_KERNEL="linux-image-686"
|
|||||||
export WDVN_DATE="$(date --utc "+%Y.%m.%d-%H.%M.%S")"
|
export WDVN_DATE="$(date --utc "+%Y.%m.%d-%H.%M.%S")"
|
||||||
export WDVN_PID="$BASHPID"
|
export WDVN_PID="$BASHPID"
|
||||||
export PATH="$(dirname "$(realpath -s "$BASH_SOURCE")")/path:$PATH"
|
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\]> "
|
Loading…
Reference in New Issue
Block a user