99
1010PROJECT=audiowaveform
1111REPO=git@github.com:bbc/${PROJECT} .git
12- TAG=1.10.1
12+ TAG=1.10.2
1313SOURCE_DIR=${PROJECT} _${TAG}
1414TARBALL=${SOURCE_DIR} .orig.tar.gz
1515PACKAGES_DIR=packages
@@ -29,9 +29,10 @@ PPA=ppa:chris-needham/ppa
2929# 21.10 Impish (obsolete and will not accept new uploads)
3030# 22.04 Jammy
3131# 22.10 Kinetic (obsolete and will not accept new uploads)
32- # 23.04 Lunar
32+ # 23.04 Lunar (obsolete and will not accept new uploads)
33+ # 24.04 Noble
3334
34- declare -a ubuntu_releases=(" trusty" " xenial" " bionic" " focal" " jammy" " lunar " )
35+ declare -a ubuntu_releases=(" trusty" " xenial" " bionic" " focal" " jammy" " noble " )
3536
3637cleanup () {
3738 rm -rf ${SOURCE_DIR} /.git
@@ -94,23 +95,34 @@ movefiles() {
9495}
9596
9697debs () {
97- for ubuntu_release in " ${ubuntu_releases[@]} "
98- do
99- fixup " $ubuntu_release "
98+ if [ -n " $1 " ] ; then
99+ cp packages/ ${TARBALL} .
100+ fixup " $1 "
100101 deb
101- movefiles " $ubuntu_release "
102- done
102+ movefiles " $1 "
103+ else
104+ for ubuntu_release in " ${ubuntu_releases[@]} "
105+ do
106+ fixup " $ubuntu_release "
107+ deb
108+ movefiles " $ubuntu_release "
109+ done
103110
104- rm ${TARBALL}
111+ rm ${TARBALL}
112+ fi
105113}
106114
107115publish () {
108116 pushd ${PACKAGES_DIR}
109117
110- for ubuntu_release in " ${ubuntu_releases[@]} "
111- do
112- dput ${PPA} ${PROJECT} _${TAG} -1${ubuntu_release} 1_source.changes
113- done
118+ if [ -n " $1 " ]; then
119+ dput ${PPA} ${PROJECT} _${TAG} -1${1} 1_source.changes
120+ else
121+ for ubuntu_release in " ${ubuntu_releases[@]} "
122+ do
123+ dput ${PPA} ${PROJECT} _${TAG} -1${ubuntu_release} 1_source.changes
124+ done
125+ fi
114126
115127 popd
116128}
@@ -126,16 +138,16 @@ case "$1" in
126138 sourcepackage
127139 ;;
128140
129- debs )
130- debs
141+ foo )
142+ foo " $2 "
131143 ;;
132144
133- deb )
134- deb
145+ debs )
146+ debs " $2 "
135147 ;;
136148
137149 publish)
138- publish
150+ publish " $2 "
139151 ;;
140152
141153 clean)
0 commit comments