summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2009-10-14 21:18:06 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-10-26 21:55:42 +0100
commitf0e417f2be331b937dd56bf970c59370a55b6301 (patch)
tree319b9afb71754b26f45eaae5e2fda3cc37b09ef8
parent2f6846c451b1b4887fd87a2bc32945cce0b943a3 (diff)
downloaddbscripts-f0e417f2be331b937dd56bf970c59370a55b6301.tar.gz
dbscripts-f0e417f2be331b937dd56bf970c59370a55b6301.tar.xz
Moved ALLOWED_LICENSES declaration to config file
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rw-r--r--config3
-rwxr-xr-xmisc-scripts/make-sourceball3
2 files changed, 3 insertions, 3 deletions
diff --git a/config b/config
index 86a5eca..24ec37a 100644
--- a/config
+++ b/config
@@ -13,3 +13,6 @@ BUILDSCRIPT="PKGBUILD"
DBEXT=".db.tar.gz"
PKGEXT=".pkg.tar.gz"
SRCEXT=".src.tar.gz"
+
+# Allowed licenses: get sourceballs only for licenses in this array
+ALLOWED_LICENSES=('GPL' 'GPL1' 'GPL2' 'LGPL' 'LGPL1' 'LGPL2')
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index 865e0e7..462549f 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -1,8 +1,5 @@
#!/bin/bash
-# Allowed licenses: build only for licenses in this array
-ALLOWED_LICENSES=('GPL' 'GPL1' 'GPL2' 'LGPL' 'LGPL1' 'LGPL2')
-
if [ $# -ne 3 -a $# -ne 4 ]; then
echo "usage: $(basename $0) [-f] <packagename> <repo> <arch>"
echo " -f Force building. Skip license checks"