Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerlya02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]] Former-commit-id:06a8b51d6d
Former-commit-id:8e80217e59
[formerly3360eb6c5f
] Former-commit-id:377dcd10b9
32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
#!/bin/bash -x
|
|
#----------------------------------------------------------------------
|
|
# Automated archive script. Archives the rpms from the last rpm build.
|
|
#
|
|
# Usage:
|
|
# awips2-rpm-archive.sh [share]
|
|
#----------------------------------------------------------------------
|
|
# Args:
|
|
# $1 :: location of directory containing packages and output location
|
|
# default: /share1
|
|
#
|
|
# Note: all args are optional.
|
|
#----------------------------------------------------------------------
|
|
# Limitations:
|
|
# 1) This script is designed to be executed by Hudson -- it may need
|
|
# modification to run with another auto build system
|
|
|
|
#----------------------------------------------------------------------
|
|
#-- set defaults for arguments
|
|
#----------------------------------------------------------------------
|
|
|
|
#-- share1 location -- will be arg $1
|
|
#-- (allows using different packages archive and output directory)
|
|
SHARE1=/share1
|
|
|
|
#----------------------------------------------------------------------
|
|
#-- decode the command line
|
|
#----------------------------------------------------------------------
|
|
|
|
if [ -n "${1}" ];then
|
|
SHARE1=${1}
|
|
fi
|