Skip to content

Commit efe5a87

Browse files
Update - re-add M114_DETAIL/MEATPACK
1 parent 0792696 commit efe5a87

File tree

15 files changed

+45
-40
lines changed

15 files changed

+45
-40
lines changed

buildroot/share/scripts/delete_release_assets.sh

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,24 @@ REPO="MRiscoCProUI" # e.g., "my-project"
1313
TAG_NAME="$1" # Pass the tag name as the first argument
1414
# ---------------------
1515

16+
attout() { echo -e "\033[0;30m$1\033[0m" ; }
17+
errout() { echo -e "\033[0;31m$1\033[0m" ; }
18+
succout() { echo -e "\033[0;32m$1\033[0m" ; }
19+
warnout() { echo -e "\033[0;33m$1\033[0m" ; }
20+
1621
# Check for required GitHub CLI and JQ tools
1722
if ! command -v gh &> /dev/null; then
18-
echo "Error: GitHub CLI (gh) not found. Please install it."
23+
errout "Error: GitHub CLI (gh) not found. Please install it."
1924
exit 1
2025
fi
2126
if ! command -v jq &> /dev/null; then
22-
echo "Error: jq not found. Please install it (e.g., sudo apt install jq)."
27+
errout "Error: jq not found. Please install it (e.g., sudo apt install jq)."
2328
exit 1
2429
fi
2530

2631
# Ensure a tag name was provided
2732
if [ -z "$TAG_NAME" ]; then
28-
echo "Usage: $0 [tag_name]"
33+
warnout "Usage: $0 [tag_name]"
2934
exit 1
3035
fi
3136

@@ -36,39 +41,39 @@ echo "--- Starting iterative deletion of assets for tag: $TAG_NAME ---"
3641
ASSETS_JSON=$(gh api "repos/$OWNER/$REPO/releases/tags/$TAG_NAME" --jq '.assets[].name' 2>/dev/null)
3742

3843
if [ $? -ne 0 ]; then
39-
echo "Error: Could not retrieve release information for tag $TAG_NAME"
40-
echo "Check if the tag exists and your token/permissions are correct."
44+
errout "Error: Could not retrieve release information for tag $TAG_NAME"
45+
warnout "Check if the tag exists and your token/permissions are correct."
4146
exit 1
4247
fi
4348

4449
if [ -z "$ASSETS_JSON" ]; then
45-
echo "No assets found for tag $TAG_NAME. Exiting."
50+
errout "No assets found for tag $TAG_NAME. Exiting."
4651
exit 0
4752
fi
4853

4954
# 2. Iterate through each asset name and delete it
5055
echo "$ASSETS_JSON" | while read -r ASSET_NAME; do
51-
echo "Attempting to delete asset: $ASSET_NAME"
56+
attout "Attempting to delete asset: $ASSET_NAME"
5257

5358
# gh release delete-asset performs the one-by-one deletion
5459
# --yes flag skips the confirmation prompt
5560
gh release delete-asset "$TAG_NAME" "$ASSET_NAME" --repo "$OWNER/$REPO" --yes
5661

5762
if [ $? -ne 0 ]; then
58-
echo "❌ Failed to delete: $ASSET_NAME"
63+
errout "❌ Failed to delete: $ASSET_NAME"
5964
# The loop will automatically continue to the next asset
6065
fi
6166
done
6267

63-
echo "--- ✅ Asset deletion process complete! ---"
68+
succout "--- ✅ Asset deletion process complete! ---"
6469

65-
echo "Deleting release and tag $TAG_NAME automatically..."
70+
attout "Deleting release and tag $TAG_NAME automatically..."
6671

6772
gh release delete "$TAG_NAME" --repo "$OWNER/$REPO" --cleanup-tag --yes
6873

6974
if [ $? -eq 0 ]; then
70-
echo "🎉 Release and tag $TAG_NAME successfully deleted."
75+
succout "🎉 Release and tag $TAG_NAME successfully deleted."
7176
else
72-
echo "⚠️ Failed to delete release and tag $TAG_NAME. You may need to delete the tag manually."
77+
errout "⚠️ Failed to delete release and tag $TAG_NAME. You may need to delete the tag manually."
7378
# The script will now exit, but the prior asset deletion was successful.
7479
fi

configurations/Andrew427/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4021,7 +4021,7 @@
40214021
/**
40224022
* Extra options for the M114 "Current Position" report
40234023
*/
4024-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4024+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40254025
//#define M114_REALTIME // Real current position based on forward kinematics
40264026
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40274027

@@ -4075,7 +4075,7 @@
40754075
/**
40764076
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40774077
*/
4078-
//#define MEATPACK_ON_SERIAL_PORT_1
4078+
#define MEATPACK_ON_SERIAL_PORT_1
40794079
//#define MEATPACK_ON_SERIAL_PORT_2
40804080

40814081
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

configurations/BTT_SKR-Mini-E3-V3/MM/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4025,7 +4025,7 @@
40254025
/**
40264026
* Extra options for the M114 "Current Position" report
40274027
*/
4028-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4028+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40294029
//#define M114_REALTIME // Real current position based on forward kinematics
40304030
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40314031

@@ -4079,7 +4079,7 @@
40794079
/**
40804080
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40814081
*/
4082-
//#define MEATPACK_ON_SERIAL_PORT_1
4082+
#define MEATPACK_ON_SERIAL_PORT_1
40834083
//#define MEATPACK_ON_SERIAL_PORT_2
40844084

40854085
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

configurations/BTT_SKR-Mini-E3-V3/UBL/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4025,7 +4025,7 @@
40254025
/**
40264026
* Extra options for the M114 "Current Position" report
40274027
*/
4028-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4028+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40294029
//#define M114_REALTIME // Real current position based on forward kinematics
40304030
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40314031

@@ -4079,7 +4079,7 @@
40794079
/**
40804080
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40814081
*/
4082-
//#define MEATPACK_ON_SERIAL_PORT_1
4082+
#define MEATPACK_ON_SERIAL_PORT_1
40834083
//#define MEATPACK_ON_SERIAL_PORT_2
40844084

40854085
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

configurations/Creality Ender/BLT/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@
40234023
/**
40244024
* Extra options for the M114 "Current Position" report
40254025
*/
4026-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4026+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40274027
//#define M114_REALTIME // Real current position based on forward kinematics
40284028
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40294029

@@ -4077,7 +4077,7 @@
40774077
/**
40784078
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40794079
*/
4080-
//#define MEATPACK_ON_SERIAL_PORT_1
4080+
#define MEATPACK_ON_SERIAL_PORT_1
40814081
//#define MEATPACK_ON_SERIAL_PORT_2
40824082

40834083
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

configurations/Creality Ender/Default/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@
40234023
/**
40244024
* Extra options for the M114 "Current Position" report
40254025
*/
4026-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4026+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40274027
//#define M114_REALTIME // Real current position based on forward kinematics
40284028
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40294029

@@ -4077,7 +4077,7 @@
40774077
/**
40784078
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40794079
*/
4080-
//#define MEATPACK_ON_SERIAL_PORT_1
4080+
#define MEATPACK_ON_SERIAL_PORT_1
40814081
//#define MEATPACK_ON_SERIAL_PORT_2
40824082

40834083
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

configurations/Creality Ender/E3-Free-runs/MM/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@
40234023
/**
40244024
* Extra options for the M114 "Current Position" report
40254025
*/
4026-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4026+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40274027
//#define M114_REALTIME // Real current position based on forward kinematics
40284028
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40294029

@@ -4077,7 +4077,7 @@
40774077
/**
40784078
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40794079
*/
4080-
//#define MEATPACK_ON_SERIAL_PORT_1
4080+
#define MEATPACK_ON_SERIAL_PORT_1
40814081
//#define MEATPACK_ON_SERIAL_PORT_2
40824082

40834083
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

configurations/Creality Ender/E3-Free-runs/UBL/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@
40234023
/**
40244024
* Extra options for the M114 "Current Position" report
40254025
*/
4026-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4026+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40274027
//#define M114_REALTIME // Real current position based on forward kinematics
40284028
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40294029

@@ -4077,7 +4077,7 @@
40774077
/**
40784078
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40794079
*/
4080-
//#define MEATPACK_ON_SERIAL_PORT_1
4080+
#define MEATPACK_ON_SERIAL_PORT_1
40814081
//#define MEATPACK_ON_SERIAL_PORT_2
40824082

40834083
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

configurations/Creality Ender/MM/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@
40234023
/**
40244024
* Extra options for the M114 "Current Position" report
40254025
*/
4026-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4026+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40274027
//#define M114_REALTIME // Real current position based on forward kinematics
40284028
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40294029

@@ -4077,7 +4077,7 @@
40774077
/**
40784078
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40794079
*/
4080-
//#define MEATPACK_ON_SERIAL_PORT_1
4080+
#define MEATPACK_ON_SERIAL_PORT_1
40814081
//#define MEATPACK_ON_SERIAL_PORT_2
40824082

40834083
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

configurations/Creality Ender/S1/F1/UBL/Configuration_adv.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@
40234023
/**
40244024
* Extra options for the M114 "Current Position" report
40254025
*/
4026-
//#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
4026+
#define M114_DETAIL // Use 'M114 D' for details to check planner calculations
40274027
//#define M114_REALTIME // Real current position based on forward kinematics
40284028
//#define M114_LEGACY // M114 used to synchronize on every call. Enable if needed.
40294029

@@ -4077,7 +4077,7 @@
40774077
/**
40784078
* Support for MeatPack G-code compression (https://github.com/scottmudge/OctoPrint-MeatPack)
40794079
*/
4080-
//#define MEATPACK_ON_SERIAL_PORT_1
4080+
#define MEATPACK_ON_SERIAL_PORT_1
40814081
//#define MEATPACK_ON_SERIAL_PORT_2
40824082

40834083
//#define GCODE_CASE_INSENSITIVE // Accept G-code sent to the firmware in lowercase

0 commit comments

Comments
 (0)