-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build scripts and github actions work
- Loading branch information
1 parent
7d6ceeb
commit af9a270
Showing
9 changed files
with
106 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
tap "homebrew/bundle" | ||
tap "homebrew/core" | ||
brew "autoconf" | ||
brew "automake" | ||
brew "gnutls" | ||
# brew "gnutls" | ||
brew "pkg-config" | ||
brew "texinfo" | ||
brew "jansson" | ||
brew "libxml2" | ||
brew "libyaml" | ||
brew "tree-sitter" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
EMACS_VER="29.1" | ||
MACPORT_VER="$EMACS_VER-mac-10.0" | ||
COMMIT_HASH="65c6c96f27afa446df6f9d8eff63f9cc012cc738" | ||
OUTPUT_DIR="build_out" | ||
|
||
./prepare_homebrew.sh | ||
|
||
./fetch-emacs-mac-port.sh "$MACPORT_VER" "$COMMIT_HASH" "$OUTPUT_DIR" | ||
|
||
./build-emacs.sh "$OUTPUT_DIR" "$EMACS_VER" | ||
|
||
./install_libs.sh $(pwd) "$OUTPUT_DIR" | ||
|
||
./make-zipball.sh "$OUTPUT_DIR/tmproot" "$MACPORT_VER" | ||
|
||
ls -d $OUTPUT_DIR/tmproot/*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
SCRIPT_DIR=$1 | ||
OUTPUT_DIR=$2 | ||
|
||
# only use when on a separated homebrew | ||
# BREW_DIR="$HOME/homebrew" | ||
# eval "$($BREW_DIR/bin/brew shellenv)" | ||
|
||
pushd "$OUTPUT_DIR" | ||
"$SCRIPT_DIR/copylib.rb" $(brew --prefix) | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
#!/bin/sh | ||
|
||
# Use a fresh homebrew under $HOME. May not needed in most of the | ||
# cases | ||
new_homebrew () { | ||
BREW_DIR="$HOME/homebrew" | ||
|
||
mkdir "$BREW_DIR" && curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C "$BREW_DIR" | ||
|
||
eval "$($BREW_DIR/bin/brew shellenv)" | ||
} | ||
|
||
# disable all the automation to prevent unexpected time spending | ||
export HOMEBREW_NO_INSTALL_CLEANUP=1 | ||
export HOMEBREW_NO_AUTO_UPDATE=1 | ||
|
||
OS_VER=$(sw_vers -productVersion) | ||
|
||
brew update | ||
# remove all installed formula and reinstall from Brewfile, prevent waste time | ||
# on upgrade all | ||
set -e | ||
|
||
brew update --force --quiet | ||
|
||
# brew update remove all installed formula and reinstall from | ||
# Brewfile, prevent waste time on upgrade all | ||
# brew remove --force $(brew list --formula) | ||
brew bundle --file $(pwd)/build-scripts/Brewfile | ||
brew bundle --force cleanup --file ./Brewfile | ||
brew bundle --file ./Brewfile | ||
# build gnutls from source code, to ensure the absolute path for | ||
# linked libs | ||
brew install --build-from-source gnutls | ||
|
||
# output the version of gnutls | ||
brew info gnutls | ||
brew list |