Skip to content

Commit

Permalink
Modernized "data/" directory structure, removed obsolete .conf and in…
Browse files Browse the repository at this point in the history
…clude.sh code, added "apps/ci" and pr template
  • Loading branch information
dot-snack committed May 2, 2024
1 parent a21dac3 commit ed7fb8c
Show file tree
Hide file tree
Showing 16 changed files with 67 additions and 96 deletions.
49 changes: 0 additions & 49 deletions .git_commit_template.txt

This file was deleted.

8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ git clone https://github.com/azerothcore/mod-transmog.git

or you can manually [download the module](https://github.com/azerothcore/mod-transmog/archive/master.zip), unzip the Transmog folder and place it under the `azerothcore/modules` directory.

### 2) Import the SQL to the right Database (auth, world or characters)
### 2) Re-run cmake and launch a clean build of AzerothCore

Import the SQL manually to the right Database (auth, world or characters) or with the `db_assembler.sh` (if `include.sh` provided).

### 3) Re-run cmake and launch a clean build of AzerothCore

### 4) Place transmog npc
### 3) Place transmog npc

With a gm account goto the location you want to add the npc and use this command:

Expand Down
Empty file added apps/.gitkeep
Empty file.
Empty file added apps/ci/.gitkeep
Empty file.
40 changes: 40 additions & 0 deletions apps/ci/ci-codestyle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
set -e

echo "Codestyle check script:"
echo

declare -A singleLineRegexChecks=(
["LOG_.+GetCounter"]="Use ObjectGuid::ToString().c_str() method instead of ObjectGuid::GetCounter() when logging. Check the lines above"
["[[:blank:]]$"]="Remove whitespace at the end of the lines above"
["\t"]="Replace tabs with 4 spaces in the lines above"
)

for check in ${!singleLineRegexChecks[@]}; do
echo " Checking RegEx: '${check}'"

if grep -P -r -I -n ${check} src; then
echo
echo "${singleLineRegexChecks[$check]}"
exit 1
fi
done

declare -A multiLineRegexChecks=(
["LOG_[^;]+GetCounter"]="Use ObjectGuid::ToString().c_str() method instead of ObjectGuid::GetCounter() when logging. Check the lines above"
["\n\n\n"]="Multiple blank lines detected, keep only one. Check the files above"
)

for check in ${!multiLineRegexChecks[@]}; do
echo " Checking RegEx: '${check}'"

if grep -Pzo -r -I ${check} src; then
echo
echo
echo "${multiLineRegexChecks[$check]}"
exit 1
fi
done

echo
echo "Everything looks good"
26 changes: 0 additions & 26 deletions conf/conf.sh.dist

This file was deleted.

File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
1 change: 0 additions & 1 deletion data/sql/updates/char/.dummy

This file was deleted.

1 change: 0 additions & 1 deletion data/sql/updates/world/.dummy

This file was deleted.

9 changes: 0 additions & 9 deletions include.sh
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
#!/usr/bin/env bash

TRANSM_PATH_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )"

source $TRANSM_PATH_ROOT"/conf/conf.sh.dist"

if [ -f $TRANSM_PATH_ROOT"/conf/conf.sh" ]; then
source $TRANSM_PATH_ROOT"/conf/conf.sh"
fi
25 changes: 25 additions & 0 deletions pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!-- First of all, THANK YOU for your contribution. -->

## Changes Proposed:
-
-

## Issues Addressed:
<!-- If your fix has a relating issue, link it below -->
- Closes

## SOURCE:
<!-- If you can, include a source that can strengthen your claim -->

## Tests Performed:
<!-- Does it build without errors? Did you test in-game? What did you test? On which OS did you test? Describe any other tests performed -->
-
-


## How to Test the Changes:
<!-- Describe in a detailed step-by-step order how to test the changes -->

1.
2.
3.
4 changes: 0 additions & 4 deletions setup_git_commit_template.sh

This file was deleted.

0 comments on commit ed7fb8c

Please sign in to comment.