From 8c5114a2358d104a61d5ac0b913f0a049321dae9 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Mon, 14 Sep 2020 03:03:04 +0000 Subject: [PATCH] Made variables folder --- README.org | 2 +- vars.sh | 10 ++++++++++ main.sh | 11 +---------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.org b/README.org index 2ff33e7..30d17f9 100755 --- a/README.org +++ b/README.org @@ -27,4 +27,4 @@ # - Multiple packages from a single PKGBUILD :: Some PKGBUILDs can create many packages at once, currently I am unable to handle this. - AUR dependency checking and automatic resolution :: Something like what aurutils does, maybe I can steal it from there - Error catching for builds which fail. :: Have emailing, but nothing more advanced. Would be nice to have some basic error handling in the script -- Create a universal variables file :: Not sure how useful this would be, but could be nice +# - Create a universal variables file :: Not sure how useful this would be, but could be nice diff --git a/main.sh b/main.sh index 3b3ece3..66cc83e 100644 --- a/main.sh +++ b/main.sh @@ -2,16 +2,7 @@ #A basic bash script to automate the building of arch packages # Usage: main.sh init|add|build_all [-f force] -REPODIR=/repo/x86_64 -BUILDDIR=/repo/build -REPONAME= -UPDATE=N -CLEAN=N -SIGN=N -KEY="" -NUM_OLD=5 -export PACKAGER="John Doe <jd@change.me>" -EMAIL="" +source vars.sh ERRORS="" diff --git a/vars.sh b/vars.sh new file mode 100644 index 0000000..280be1f --- /dev/null +++ b/vars.sh @@ -0,0 +1,10 @@ +REPODIR=/repo/x86_64 +BUILDDIR=/repo/build +REPONAME= +UPDATE=N +CLEAN=N +SIGN=N +KEY="" +NUM_OLD=5 +export PACKAGER="John Doe <jd@change.me>" +EMAIL="" -- Gitblit v1.9.3