Commit bc8fd4dd authored by Daniel Leidert's avatar Daniel Leidert

Move stuff into tools directory.

parents
dleidert = Daniel Leidert <dleidert@debian.org>
dleidert-guest = Daniel Leidert (dale) <daniel.leidert@wgdd.de>
egonw-guest = Egon Willighagen <e.willighagen@science.ru.nl>
georgesk = Georges Khaznadar <georgesk@debian.org>
ginggs = Graham Inggs <ginggs@debian.org>
ginggs-guest = Graham Inggs <graham@nerve.org.za>
gladk = Anton Gladky <gladk@debian.org>
junghans-guest = Christoph Junghans <junghans@votca.org>
kml-guest = Karol M. Langner <karol.langner@gmail.com>
laserjock-guest = Jordan Mantha <mantha@ubuntu.com>
latticetower-guest = Tatiana Malygina <merlettaia@gmail.com>
lidaobing-guest = LI Daobing <lidaobing@gmail.com>
malex-guest = Alex Mestiashvili <alex@biotec.tu-dresden.de>
mbanck = Michael Banck <mbanck@debian.org>
merkys-guest = Andrius Merkys <andrius.merkys@gmail.com>
moeller = Steffen Moeller <moeller@debian.org>
mok0-guest = Morten Kjeldgaard <mok0@ubuntu.com>
nbreen = Nicholas Breen <nbreen@debian.org>
nbreen-guest = Nicholas Breen <nbreen-alioth@ofb.net>
prathibha-guest = Prathibha B <prathibhab@cdac.in>
tille = Andreas Tille <tille@debian.org>
tonekokalj-guest = Anton Kokalj <tone.kokalj@ijs.si>
This diff is collapsed.
#!/bin/bash
set -e
rep=$1
echo "Backing up $rep..."
cp -a "$rep" "${rep%/}.orig"
echo "Start controlling/fixing the tags in $rep..."
tag_list=`git -C $rep --bare tag -l 'debian/*'`
for t in $tag_list
do
cid=""
parents=`git -C $rep --bare log --pretty=%P -1 $t`
for p in $parents
do
#echo "Comparing $p with $t."
diff=`git -C $rep --bare diff-tree -r -p --raw $p $t`
if [ -z "$diff" ]
then
if [ -z "$cid" ]
then
cid=$p
echo "Found tree-matching parent ID $p"
else
echo "This shouldn't happen."
exit 1
fi
fi
done
if [ -n "$cid" ]
then
echo "Retagging $t with commit ID $cid."
subject=`git -C $rep --bare log -1 --pretty=format:"%s" $t`
GIT_COMMITTER_DATE=`git -C $rep --bare log -1 --pretty=format:"%ci" $t` \
git -C $rep --bare tag -f -m "$subject" "$t" "$cid"
fi
done
exit 0
#!/bin/bash
set -eux
if [ $# -ge 2 ]
then
DO_ONLY="$2"
else
DO_ONLY='add'
fi
PROJECTDIR=`basename ${1%/}`
PROJECT="${PROJECTDIR%.git}"
iDESCRIPTION="`cat ${PROJECTDIR}/description`"
IMPORT_URL="https://people.debian.org/~dleidert/debichem"
SALSA_URL="https://salsa.debian.org/api/v4"
SALSA_NAMESPACE="2227" #(debichem)
SALSA_TOKEN="XXX"
if [ "$DO_ONLY" != "add" ]
then
curl --request DELETE --header "PRIVATE-TOKEN: $SALSA_TOKEN" https://salsa.debian.org/api/v4/projects/debichem%2F$PROJECT
fi
if [ "$DO_ONLY" != "del" ]
then
curl -f "$SALSA_URL/projects?private_token=$SALSA_TOKEN" \
--data "path=$PROJECT&namespace_id=$SALSA_NAMESPACE&description=$DESCRIPTION&import_url=$IMPORT_URL/$PROJECTDIR&visibility=private"
fi
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment