ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/pack/ubuntu/common
Revision: 73
Committed: 2009-02-02T00:09:35-08:00 (16 years, 4 months ago) by douglas
Content type: text/x-sh
File size: 458 byte(s)
Log Message:
Exit on error.

File Contents

# Content
1 #!/usr/bin/env bash
2 # Ubuntu Common
3 #
4 # Douglas Thrift
5 #
6 # $Id$
7
8 set -e
9 shopt -s extglob nullglob
10
11 if [[ $# -ne 1 ]] || [[ ! -d $1 ]]; then
12 echo "Usage: $0 [package]"
13 exit 2
14 fi
15
16 package=${1%%+(/)}
17 tarballs=($package/*.orig.tar.gz)
18 tarball=${tarballs[$((${#tarballs[*]} - 1))]}
19
20 unset tarballs
21
22 function directory()
23 {
24 local directories=($package/!(debian)/)
25
26 [[ ${#directories[*]} -ne 0 ]] && directory=${directories[$((${#directories[*]} - 1))]%%+(/)}
27 }

Properties

Name Value
svn:keywords Id
svn:mime-type text/x-sh