Skip to content

Commit

Permalink
update changelog stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
PizzaG committed Jul 2, 2024
1 parent 3dfaf57 commit ee10860
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 35 deletions.
47 changes: 26 additions & 21 deletions Changelog/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,41 @@
# Copyright 2019-Present A-Team Digital Solutions
#

export PATH=/bin:$BIN:$PATH
set -e
#export PATH=/bin:$BIN:$PATH
#set -e

usage() {
cat <<EOM
Usage: $(basename $0) <Path to output directory, typically \$OUT variable>
EOM
exit 1
}
#usage() {
# cat <<EOM
# Usage: $(basename $0) <Path to output directory, typically \$OUT variable>
#EOM
# exit 1
#}

# Set Path To $OUT Directory, Typical $OUT Variable
[ $# -ne 1 ] && usage
OUT="$1"
#[ $# -ne 1 ] && usage
#OUT="$1"

# Check For $OUT Directory
if [ ! -d "$OUT" ];then
echo "Specified OUT-Directory: $OUT Does Not Exist!"
exit 1
fi
#if [ ! -d "$OUT" ];then
# echo "Specified OUT-Directory: $OUT Does Not Exist!"
# exit 1
#fi

# Store Changelog In $OUT & Copy Changelog To Target system/etc
changelog="$OUT/Changelog.txt"
system_changelog="$OUT/system/etc/Changelog.txt"
#changelog="$OUT/Changelog.txt"
#system_changelog="$OUT/system/etc/Changelog.txt"

# Print Something To Build Output
echo ${bldppl}"Generating A-Team Custom Changelog..."${txtrst}
#echo ${bldppl}"Generating A-Team Custom Changelog..."${txtrst}

# Copy Changelog To Target
mkdir -p $(dirname "$system_changelog")
cp -r Changelog.txt $OUT
cp "$changelog" "$system_changelog"
#mkdir -p $(dirname "$system_changelog")
#cp -r Changelog.txt $OUT
#cp "$changelog" "$system_changelog"

exit 0
#exit 0

# Print something to build output
echo ""
echo "Generating A-Team Custom Changelog..."
echo ""
16 changes: 2 additions & 14 deletions Changelog/changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,8 @@
# Copyright 2019-Present A-Team Digital Solutions
#

# Exports
out=$OUT_DIR/target/product/$DEVICE_CODENAME
if [ -f $out ]; # The path does not exist
then
echo "The path to create changelog does not exist, exiting..."
exit
fi

export Changelog=Changelog.txt

touch $Changelog

# Print something to build output
echo ""
echo "Generating A-Team Custom Changelog..."
echo ""

cp $Changelog $OUT_DIR/target/product/$DEVICE_CODENAME/system/etc/$Changelog
cp $Changelog $OUT_DIR/target/product/$DEVICE_CODENAME/

0 comments on commit ee10860

Please sign in to comment.