projects
/
git-tools-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
id-pbuild.sh: new option --product
[git-tools-moved-to-github.git]
/
id-deb-build
/
id-pbuild.sh
diff --git
a/id-deb-build/id-pbuild.sh
b/id-deb-build/id-pbuild.sh
index
03e48f0
..
f45cbde
100755
(executable)
--- a/
id-deb-build/id-pbuild.sh
+++ b/
id-deb-build/id-pbuild.sh
@@
-12,6
+12,7
@@
Options:
[--ubuntu=distros]
[--upload]
[--concurrency=N]
[--ubuntu=distros]
[--upload]
[--concurrency=N]
+ [--product=X]
EOF
exit $1
}
EOF
exit $1
}
@@
-31,17
+32,20
@@
while test $# -gt 0; do
esac
case $1 in
esac
case $1 in
+ --debian=*)
+ DEBIAN_DIST=$optarg
+ ;;
--ubuntu=*)
UBUNTU_DIST=$optarg
;;
--ubuntu=*)
UBUNTU_DIST=$optarg
;;
- --debian=*)
- DEBIAN_DIST=$optarg
+ --upload)
+ upload=true
;;
--concurrency=*)
concurrency=$optarg
;;
;;
--concurrency=*)
concurrency=$optarg
;;
- --upload)
- upload=true
+ --product=*)
+ PRODUCT=$optarg
;;
--remote=*)
REMOTE=$optarg
;;
--remote=*)
REMOTE=$optarg
@@
-92,7
+96,9
@@
if test ! -e "$PKG"; then
exit 1
fi
PBUILDER=/usr/sbin/pbuilder
exit 1
fi
PBUILDER=/usr/sbin/pbuilder
-PRODUCT=`echo *.dsc|sed 's/_.*//g'`
+if test -z "$PRODUCT"; then
+ PRODUCT=`echo *.dsc|sed 's/_.*//g'`
+fi
ARCHS="i386 amd64"
if grep "Architecture: all" $PKG >/dev/null; then
USE_ARCHS=i386
ARCHS="i386 amd64"
if grep "Architecture: all" $PKG >/dev/null; then
USE_ARCHS=i386
@@
-109,10
+115,15
@@
if $upload; then
for dist in ${DEBIAN_DIST}; do
scp ${dist}-*/* ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/debian/${dist}
done
for dist in ${DEBIAN_DIST}; do
scp ${dist}-*/* ftp.indexdata.dk:/home/ftp/pub/${PRODUCT}/debian/${dist}
done
- echo "Remember to update APT on ftp.indexdata.dk"
- echo "cd git-tools/update-archive"
+ echo ""
+ echo "===================================================="
+ echo "Remember to update APT on ftp.indexdata.dk !!!"
+ echo ""
+ echo "ssh ftp.indexdata.dk"
+ echo "cd ~/proj/git-tools/update-archive"
echo "sudo su"
echo "./update-archive.sh"
echo "sudo su"
echo "./update-archive.sh"
+ echo "===================================================="
exit 0
fi
# remove existing package directories
exit 0
fi
# remove existing package directories