[med-svn] [Git][med-team/community/helper-scripts][master] Introduced a bit of help.

Steffen Möller gitlab at salsa.debian.org
Sun Aug 11 16:29:24 BST 2019



Steffen Möller pushed to branch master at Debian Med / community / helper-scripts


Commits:
11d88579 by Steffen Moeller at 2019-08-11T15:29:08Z
Introduced a bit of help.

- - - - -


1 changed file:

- inject-into-salsa-git


Changes:

=====================================
inject-into-salsa-git
=====================================
@@ -2,7 +2,34 @@
 
 # Also, dpt-salsa (in pkg-perl-tools) might be able to do what you want
 
-set -eu
+set -e
+
+if [ -n "$1" -a "-h" = "$1" -o "--help" = "$1" ] ; then
+
+  cat <<EOHELP
+
+Usage: $(basename $0)
+
+Run this script from within the root of a Debian package that is not yet
+uploaded to salsa.debian.org and for that yet no repository was created on that site.
+
+To read and write to that salsa gitlab site, this script needs an access token.
+This is retrieved from https://salsa.debian.org/profile/personal_access_tokens
+and requires a user account on salsa, obviously. To use that token, create
+
+cat > ~/.ssh/salsarc <<EOSALSATOKEN
+SALSA_URL="https://salsa.debian.org/api/v4"
+SALSA_TOKEN="YOUR_SALSA_TOKEN"
+EOSALSATOKEN
+
+and this will be found by this script when executed.
+
+EOHELP
+
+  exit
+fi
+
+set -u
 
 SALSARC=~/.ssh/salsarc
 



View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/11d88579f63391d56bbf0af40d055cff312ea633

-- 
View it on GitLab: https://salsa.debian.org/med-team/community/helper-scripts/commit/11d88579f63391d56bbf0af40d055cff312ea633
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/20190811/b8bc75af/attachment-0001.html>


More information about the debian-med-commit mailing list