Compare commits

...

2 Commits

Author SHA1 Message Date
Trevor Batley
2c54961330 added help text for params 2023-06-01 11:05:10 +10:00
Trevor Batley
7f8546f99b comments 2023-06-01 10:50:53 +10:00

View File

@ -11,8 +11,15 @@
#
if [[ -z $1 ]] ; then
echo "************rename-e-smith-pkg.sh <modulename> [<organization> <local> <force> <debug>]"
exit 0
echo "Rename an e-smith package as smeserver and change relevant files"
echo "rename-e-smith-pkg.sh <modulename> [<organization> <local> <force> <debug>]"
echo "\$1 = Module name e.g. e-smith-dnscache"
echo "\$2-\$5 can appear in any order and are optional"
echo " = Organisation (smeserver or user - defaults to smeserver)"
echo " = 'local' will use parameters set for local repository else it will use remote"
echo " = 'force' will automagically delete an existing repo, otherwise it will prompt"
echo " = 'debug' run in debug mode"
exit 0
fi
echo "**************************************************************************************************"
echo "* *"
@ -281,7 +288,7 @@ git commit -m "rename-e-smith-pkg script (#12359)" $QUIET
git push $QUIET
#Convert repository to a Regular Repository (rather than fork)
#Can't do via API call ATM, so leave a message
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