-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-craftBlueprints.sh
executable file
·35 lines (27 loc) · 1.78 KB
/
setup-craftBlueprints.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Astro-Dev Astronomy Software Development Craft Setup Scripts
# setup-CraftBlueprints.sh - This script downloads and sets up the Craft BluePrints Repo for Development
# Copyright (C) 2024 Robert Lancaster <[email protected]>
# This script is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
# This gets the directory from which this script is running so it can access files or other scripts in the repo
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# This option must come before build-engine. It determines whether to use your own Forked Repository or the official one for building.
# If you want to use the Forked Repo, enter Yes, otherwise No.
#export USE_FORKED_REPO="Yes"
# This sets up and provides access to all of the methods required to run the script.
source ${DIR}/../settings.sh
# This section sets the options for building the package.
export PACKAGE_NAME="Craft BluePrints"
export PACKAGE_SHORT_NAME="craft-blueprints-kde"
# Display the Welcome message explaining what this script does.
display "Setting up Craft BluePrints"
# This automatically sets the repositories based on the package information above and your Username variables from settings.sh
# If any of these are wrong or the variables are wrong you should change this.
export REPO="https://invent.kde.org/packaging/${PACKAGE_SHORT_NAME}.git"
export FORKED_REPO="[email protected]:${GITLAB_USERNAME}/${PACKAGE_SHORT_NAME}.git"
export FORKED_REPO_HTML="https://invent.kde.org/${GITLAB_USERNAME}/${PACKAGE_SHORT_NAME}.git"
# This method call will prepare the Source Directory to build the package
prepareSourceDirectory