Files
azerothcore-wotlk-pbot/doc/changelog/pendings/create.sh
Yehonal 3f70d0b80f feat(doc): changelog system (#6350)
This system provides rules and automatizes (Deno-typescript) the creation of a changelog file to help developers to adapt their code and know what is new with every (pre)release
2021-06-15 11:04:29 +02:00

22 lines
424 B
Bash
Executable File

#!/usr/bin/env bash
unamestr=$(uname)
echo "OS: $unamestr"
if [[ "$unamestr" == 'Darwin' ]]; then
rev=$(gdate +%s%N );
else
rev=$(date +%s%N );
fi
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )";
filename=changes_"$rev".md
echo "Insert your changelog here
### How to upgrade
Add instructions on how to adapt the code to the new changes
" > "$CUR_PATH/$filename" && echo "File created: $filename";