[med-svn] [Git][med-team/community/helper-scripts][master] Fool-proofing
Steffen Möller
gitlab at salsa.debian.org
Mon May 6 09:48:54 BST 2019
Steffen Möller pushed to branch master at Debian Med / community / helper-scripts
Commits:
b26611e3 by Steffen Moeller at 2019-05-06T08:48:53Z
Fool-proofing
- - - - -
1 changed file:
- inject-into-salsa-git
Changes:
=====================================
inject-into-salsa-git
=====================================
@@ -11,6 +11,8 @@ if [ ! -f $SALSARC ] ; then
echo "Just create one containing"
echo 'SALSA_URL="https://salsa.debian.org/api/v4"'
echo 'SALSA_TOKEN="YOUR_SALSA_TOKEN"'
+ echo
+ echo 'See https://salsa.debian.org/profile/personal_access_tokens to learn more.'
exit 1
fi
@@ -22,6 +24,21 @@ check_return_code() {
fi
}
+if [ ! -d debian ]; then
+ echo "E: Missing 'debian' folder. Please execute this script from the root of a nascent Debian package."
+ exit 1
+fi
+
+if [ ! -d .git ]; then
+ echo "E: This Debian package is meant to be imported into git already. But there is no .git directory."
+ exit 1
+fi
+
+if [ ! -x /usr/bin/jq ]; then
+ echo "E: You need the 'jq' JSON command line processor from the cognate package."
+ exit 1
+fi
+
. ${SALSARC}
DEBPKGNAME=`dpkg-parsechangelog | awk '/^Source:/ {print $2}'`
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/b26611e3c013642c3e665deb5fced40cdfc53166
--
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/b26611e3c013642c3e665deb5fced40cdfc53166
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190506/e4eb8445/attachment-0001.html>
More information about the debian-med-commit
mailing list