diff options
author | V3n3RiX <venerix@rogentos.ro> | 2016-11-18 18:24:10 +0000 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2016-11-18 18:24:10 +0000 |
commit | 2a36e3cccf1213b7f2c2d6afdc8ba7ae07475452 (patch) | |
tree | 4a7b66d39127f39c45ccac53d8b1ac267fdfd343 | |
parent | 2836632f138f33982816a80affef9f6e052b63e7 (diff) |
move modechanging variables into libvasile
-rwxr-xr-x | binmode | 4 | ||||
-rwxr-xr-x | libvasile | 7 | ||||
-rwxr-xr-x | mixedmode | 4 | ||||
-rwxr-xr-x | resetmode | 4 | ||||
-rwxr-xr-x | srcmode | 4 |
5 files changed, 7 insertions, 16 deletions
@@ -1,9 +1,5 @@ #!/usr/bin/env bash -export local portagedir="/usr/portage" -export local confdir="/etc/portage" -export local gitdir="/opt/redcore-build/conf/intel/portage" - fetch_usermode_portage_tree() { if [[ ! -d "$portagedir"/.git ]] ; then cd "$portagedir" && git init > /dev/null 2>&1 @@ -49,6 +49,13 @@ export local isosyncdir=""$isorootdir"/rootfs" export local isobootdir=""$isorootdir"/boot/grub" export local isoefibootdir=""$isorootdir"/efi/boot" +# modechange variables + +export local portagedir="/usr/portage" +export local confdir="/etc/portage" +export local gitdir="/opt/redcore-build/conf/intel/portage" +export local clonedir="/opt/redcore-build" + # generic functions (used for both build && iso creation) kernelconfig () { @@ -1,9 +1,5 @@ #!/usr/bin/env bash -export local portagedir="/usr/portage" -export local confdir="/etc/portage" -export local gitdir="/opt/redcore-build/conf/intel/portage" - fetch_devmode_portage_tree() { if [[ ! -d "$portagedir"/.git ]] ; then cd "$portagedir" && git init > /dev/null 2>&1 @@ -1,9 +1,5 @@ #!/usr/bin/env bash -export local portagedir="/usr/portage" -export local confdir="/etc/portage" -export local clonedir="/opt/redcore-build" - empty_portage_tree() { if [ -d ""$portagedir"/.git" ] ; then find "$portagedir" -mindepth 1 -name "packages" -prune -o -name "distfiles" -prune -o -exec rm -rf {} \; > /dev/null 2>&1 @@ -1,9 +1,5 @@ #!/usr/bin/env bash -export local portagedir="/usr/portage" -export local confdir="/etc/portage" -export local gitdir="/opt/redcore-build/conf/intel/portage" - fetch_devmode_portage_tree() { if [[ ! -d "$portagedir"/.git ]] ; then cd "$portagedir" && git init > /dev/null 2>&1 |