aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'trunk')
-rwxr-xr-xtrunk/src/templatepkg14
1 files changed, 11 insertions, 3 deletions
diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg
index 5a0150e..a87b361 100755
--- a/trunk/src/templatepkg
+++ b/trunk/src/templatepkg
@@ -820,9 +820,17 @@ function package_template {
echo Buiding package for template $template...
- version=${1:=1}
- build=${2:=1}
- arch=${3:=noarch}
+ if [ -z "$1" ]; then
+ version="1"
+ fi
+
+ if [ -z "$2" ]; then
+ build="1"
+ fi
+
+ if [ -z "$3" ]; then
+ arch="noarch"
+ fi
TMP=${TMP:=/tmp}
rm -rf $TMP/templatepkg