From 49c7def1a04add834568e0d2f417bac05608226f Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Mon, 20 Apr 2026 04:30:45 -0500 Subject: [PATCH] Fix --- edit-formula.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 edit-formula.sh diff --git a/edit-formula.sh b/edit-formula.sh new file mode 100644 index 0000000..b152d39 --- /dev/null +++ b/edit-formula.sh @@ -0,0 +1,18 @@ +export HASH=`curl https://git.tesses.org/tesses50/my-first-brew/archive/$VERSION.tar.gz 2> /dev/null | shasum -a 256 | awk '{print $1}'` + +echo "class MyFirstBrew < Formula" > "Formula/my-first-brew.rb" +echo " desc \"\"" >> "Formula/my-first-brew.rb" +echo " homepage \"\"" >> "Formula/my-first-brew.rb" +echo " url \"https://git.tesses.org/tesses50/my-first-brew/archive/$VERSION.tar.gz\"" >> "Formula/my-first-brew.rb" +echo " sha256 \"$HASH\"" >> "Formula/my-first-brew.rb" +echo " license \"MIT\"" >> "Formula/my-first-brew.rb" +echo " depends_on \"cmake\" => :build" >> "Formula/my-first-brew.rb" +echo " def install" >> "Formula/my-first-brew.rb" +echo " system \"cmake\", \"-S\", \".\", \"-B\", \"build\", *std_cmake_args" >> "Formula/my-first-brew.rb" +echo " system \"cmake\", \"--build\", \"build\"" >> "Formula/my-first-brew.rb" +echo " system \"cmake\", \"--install\", \"build\"" >> "Formula/my-first-brew.rb" +echo " end" >> "Formula/my-first-brew.rb" +echo " test do" >> "Formula/my-first-brew.rb" +echo " system \"true\"" >> "Formula/my-first-brew.rb" +echo " end" >> "Formula/my-first-brew.rb" +echo "end" >> "Formula/my-first-brew.rb"