ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/pack/ubuntu/common
Revision: 69
Committed: 2009-02-01T22:56:37-08:00 (16 years, 4 months ago) by douglas
Content type: text/x-sh
File size: 451 byte(s)
Log Message:
Phase three. Merge!

File Contents

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

Properties

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