Add in comment re converting to regular repo

This commit is contained in:
Trevor Batley 2023-06-01 10:36:25 +10:00
parent e189fd1b5d
commit bffa7d713e

View File

@ -1,20 +1,19 @@
#!/bin/bash
#
# Rename an e-smith package as smeserver and change relevant files
# $1 = Module name e.g. e-smith-dnscache
# $2 = Organisation (smeserver or user - defaults to smeserver)
# $3 = "local" will use parameters set for local repository else it will use remote
# $4 = "force" will automagically delete an existing repo, otherwise it will prompt
# $5 = "debug" run in debug mode
# $2-$5 can appear in any order and are optional
# = Organisation (smeserver or user - defaults to smeserver)
# = "local" will use parameters set for local repository else it will use remote
# = "force" will automagically delete an existing repo, otherwise it will prompt
# = "debug" run in debug mode
# This works whether the repo and local files exist of not (it deletes them if necessary)
# However if the remote repo exists, it preserves the README.md file so that edits are not lost
# Also note: I have had difficulty deleting all the link files in the source tree!
#
if [[ -z $1 ]] ; then
echo "************rename-e-smith-pkg.sh <modulename> [<organization> <local> <force> <debug>]"
exit 0
fi
clear
echo "**************************************************************************************************"
echo "* *"
echo "* SMEServer - rename-e-smith-pkg.sh $1 $2 $3 $4 $5 `date` *"
@ -282,3 +281,7 @@ git commit -m "rename-e-smith-pkg script (#12359)" $QUIET
git push origin master $QUIET
#Convert repository to a Regular Repository (rather than fork)
echo "$SOURCEORG/$SOURCEPKG has been renamed as $TARGETORG/$TARGETPKG"
echo "It is still a forked repository, so you need to 'Convert to Regular Repository' in GITEA and then 'Transfer' it to it's final Organisation"
exit 0