And first argument is no longer *.dsc. upload is first argument.
#!/bin/sh
update=true
-PKG="$1"
-if test -z "$PKG"; then
- if test -d deb-src; then
- cd deb-src
- for d in *.dsc; do
- PKG=$d
- done
- fi
+if test -f IDMETA; then
+ . ./IDMETA
+fi
+if test -d deb-src; then
+ cd deb-src
fi
+for f in *.dsc; do
+ if test -f "$f"; then
+ PKG=$f
+ fi
+done
if test -z "$PKG"; then
echo "Specify .dsc file"
exit 1
UBUNTU_DIST="karmic jaunty intrepid hardy"
fi
-if test "$2" = "upload"; then
+if test "$1" = "upload"; then
for dist in ${UBUNTU_DIST}; do
scp ${dist}-*/* ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/ubuntu/${dist}
done