From 0984ac1d2635157ca0a3c550bb5a847cf22dac82 Mon Sep 17 00:00:00 2001 From: Maciej Szeszko Date: Fri, 6 Dec 2024 14:44:22 -0800 Subject: [PATCH] Refresh check_buck_targets.sh --- buckifier/check_buck_targets.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/buckifier/check_buck_targets.sh b/buckifier/check_buck_targets.sh index 66c83c52f37..5c207be3b84 100755 --- a/buckifier/check_buck_targets.sh +++ b/buckifier/check_buck_targets.sh @@ -3,30 +3,30 @@ # If clang_format_diff.py command is not specfied, we assume we are able to # access directly without any path. -TGT_DIFF=`git diff TARGETS | head -n 1` +TGT_DIFF=`git diff BUCK | head -n 1` if [ ! -z "$TGT_DIFF" ] then - echo "TARGETS file has uncommitted changes. Skip this check." + echo "BUCK file has uncommitted changes. Skip this check." exit 0 fi -echo Backup original TARGETS file. +echo Backup original BUCK file. -cp TARGETS TARGETS.bkp +cp BUCK BUCK.bkp ${PYTHON:-python3} buckifier/buckify_rocksdb.py -TGT_DIFF=`git diff TARGETS | head -n 1` +TGT_DIFF=`git diff BUCK | head -n 1` if [ -z "$TGT_DIFF" ] then - mv TARGETS.bkp TARGETS + mv BUCK.bkp BUCK exit 0 else - echo "Please run '${PYTHON:-python3} buckifier/buckify_rocksdb.py' to update TARGETS file." - echo "Do not manually update TARGETS file." + echo "Please run '${PYTHON:-python3} buckifier/buckify_rocksdb.py' to update BUCK file." + echo "Do not manually update BUCK file." ${PYTHON:-python3} --version - mv TARGETS.bkp TARGETS + mv BUCK.bkp BUCK exit 1 fi