Skip to content

Commit

Permalink
Remove old extra/ tools, merge build/ and extra/ into res/
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 21, 2024
1 parent 14f80a5 commit 49cec58
Show file tree
Hide file tree
Showing 7,681 changed files with 43 additions and 286 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 0 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ jobs:
hx current --name
hx current --full
- name: Install extra tools
run: |
sh ./extra/install-all.sh
ls -Al bin/
test-windows:
strategy:
fail-fast: false
Expand Down
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bin/
builds/
data/
releases/
res/*.hxb
versions/
builds/
current
data/
bin/
build/*.hxb
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.SILENT:

build-tools:
extra/build-tools.sh
res/build-tools.sh
45 changes: 2 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,51 +78,10 @@ Switch to Haxe version specified in `.haxerc` with `hx rc`. Alternatively, one-o
operations can be done with `hx with rc [haxe compiler args]` without altering
currently selected Haxe version.

### `haxe_libraries`

Install libraries as defined in lix's `haxe_libraries` folder: `hx lix-libs`

Alternatively, generate a `install.hxml` file (to be used with
`haxelib state load install.hxml`) by running `hx lix-to-install install.hxml`

## Included tools

`extra/` folder contains optional tools you can install individually with their
`install.sh` script or all at once with `install-all.sh`.

Note that those have been written when Haxe Manager was unix only and probably
can't work at all on Windows.

### `++haxe`

Note if you're using Haxe >= 4.3.0: this is not useful anymore, since
[pretty errors](https://github.com/HaxeFoundation/haxe/pull/10863) were added there.

Wraps `haxe` with a nodejs wrapper that parses and pretty prints Haxe errors,
trying to guess the error hierarchy and displaying highlighted sources instead
of just positions.

Usage: `++haxe <args you would pass to haxe>`

### `make-haxe`

Mostly useful for bisecting or when building and switching haxe versions often.

Wraps Haxe repository's `make haxe` with some cache that will be applied when
git state is clean (or when you pass `--force-cache`). Build result (`haxe` and
`haxelib` binaries) are stored in haxe-manager cache to avoid building next time.

### `hx-mklocal`

Save your current binaries + std from your local Haxe repository as a named
version that you can use with haxe-manager.

Usage: from your Haxe repository, `hx-mklocal . custom-4.4.0` (replace `.` with
the path to your repository if you're executing from somewhere else)

### `hx-upgrade`

Update your local (git) copy of haxe-manager.

### `rofi-haxe`

[rofi](https://github.com/davatorium/rofi) wrapper to `hx` command, to graphically select a Haxe version.

13 changes: 0 additions & 13 deletions extra/++haxe/++haxe.sh

This file was deleted.

15 changes: 0 additions & 15 deletions extra/++haxe/install.sh

This file was deleted.

8 changes: 0 additions & 8 deletions extra/++haxe/package.json

This file was deleted.

27 changes: 0 additions & 27 deletions extra/++haxe/parse.js

This file was deleted.

12 changes: 0 additions & 12 deletions extra/hx.bat

This file was deleted.

9 changes: 0 additions & 9 deletions extra/install-all.sh

This file was deleted.

39 changes: 0 additions & 39 deletions extra/local/hx-mklocal.sh

This file was deleted.

12 changes: 0 additions & 12 deletions extra/local/install.sh

This file was deleted.

14 changes: 0 additions & 14 deletions extra/make-haxe/install.sh

This file was deleted.

27 changes: 0 additions & 27 deletions extra/make-haxe/make-haxe.sh

This file was deleted.

11 changes: 0 additions & 11 deletions extra/rofi/install.sh

This file was deleted.

3 changes: 0 additions & 3 deletions extra/rofi/rofi-haxe.sh

This file was deleted.

7 changes: 0 additions & 7 deletions extra/upgrade/hx-upgrade.sh

This file was deleted.

12 changes: 0 additions & 12 deletions extra/upgrade/install.sh

This file was deleted.

16 changes: 8 additions & 8 deletions install.bat
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
@ECHO OFF

SET ROOT=%~dp0
REM TODO: from build/.current
REM TODO: from res/.current
SET HAXE_VER=5e4e368

MKDIR "releases"
MKDIR "versions"
MKDIR "bin"

REM Install base tools
ECHO F | XCOPY /S /Q /Y /F "extra/haxe.bat" "bin/haxe.bat"
ECHO F | XCOPY /S /Q /Y /F "extra/haxelib.bat" "bin/haxelib.bat"
ECHO F | XCOPY /S /Q /Y /F "extra/hx.bat" "bin/hx.bat"
ECHO F | XCOPY /S /Q /Y /F "extra/hxlib.bat" "bin/hxlib.bat"
ECHO F | XCOPY /S /Q /Y /F "res/haxe.bat" "bin/haxe.bat"
ECHO F | XCOPY /S /Q /Y /F "res/haxelib.bat" "bin/haxelib.bat"
ECHO F | XCOPY /S /Q /Y /F "res/hx.bat" "bin/hx.bat"
ECHO F | XCOPY /S /Q /Y /F "res/hxlib.bat" "bin/hxlib.bat"

REM Setup included Haxe version
MKLINK /D "versions/5.0.0-alpha.1+%HAXE_VER%" "%ROOT%/build/windows64_%HAXE_VER%"
MKLINK /D "current" "%ROOT%/build/windows64_%HAXE_VER%"
MKLINK /D "versions/5.0.0-alpha.1+%HAXE_VER%" "%ROOT%/res/windows64_%HAXE_VER%"
MKLINK /D "current" "%ROOT%/res/windows64_%HAXE_VER%"

REM Prebuild cli
%ROOT%/build/windows64_%HAXE_VER%/haxe.exe --cwd %ROOT% build.hxml --hxb build/hx.hxb
%ROOT%/res/windows64_%HAXE_VER%/haxe.exe --cwd %ROOT% build.hxml --hxb res/hx.hxb

ECHO "Please add %ROOT%/bin to your PATH"
ECHO "Please set HAXE_STD_PATH to %ROOT%/current/std"
12 changes: 6 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/bin/bash

ROOT=$(dirname $(readlink -f $0))
HAXE_VER=$(cat $ROOT/build/.current)
HAXE_VER=$(cat $ROOT/res/.current)

mkdir -p "$ROOT/releases"
mkdir -p "$ROOT/versions"
mkdir -p "$ROOT/bin"

# Install cli launcher
cp extra/hx bin/
cp extra/hxlib bin/
cp res/hx bin/
cp res/hxlib bin/

BUILD_OS="linux64"
if [[ "$OSTYPE" == "darwin"* ]]; then
Expand All @@ -19,10 +19,10 @@ fi

# Setup included Haxe version
if ! [ -L "versions/5.0.0-alpha.1+$HAXE_VER" ]; then
ln -s "$ROOT/build/${BUILD_OS}_$HAXE_VER" "versions/5.0.0-alpha.1+$HAXE_VER"
ln -s "$ROOT/res/${BUILD_OS}_$HAXE_VER" "versions/5.0.0-alpha.1+$HAXE_VER"
fi
if ! [ -L "current" ]; then
ln -s "$ROOT/build/${BUILD_OS}_${HAXE_VER}" "current"
ln -s "$ROOT/res/${BUILD_OS}_${HAXE_VER}" "current"
fi

# Expose haxe command
Expand All @@ -36,7 +36,7 @@ if ! [ -L "bin/haxelib" ]; then
fi

# Prebuild cli
HAXE_STD_PATH="$ROOT/build/${BUILD_OS}_${HAXE_VER}/std/" "$ROOT/build/${BUILD_OS}_${HAXE_VER}/haxe" --cwd "$ROOT" build.hxml --hxb build/hx.hxb
HAXE_STD_PATH="$ROOT/res/${BUILD_OS}_${HAXE_VER}/std/" "$ROOT/res/${BUILD_OS}_${HAXE_VER}/haxe" --cwd "$ROOT" build.hxml --hxb res/hx.hxb

echo "Please add $ROOT/bin to your PATH"
echo "Please set HAXE_STD_PATH to $ROOT/current/std"
File renamed without changes.
4 changes: 2 additions & 2 deletions extra/build-tools.sh → res/build-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
BUILD_OS="mac"
fi

HAXE_VER=$(cat $ROOT/build/.current)
HAXE_VER=$(cat $ROOT/res/.current)
VERSION="${BUILD_OS}_${HAXE_VER}"

HAXE_STD_PATH=$ROOT/build/$VERSION/std/ $ROOT/build/$VERSION/haxe --cwd $ROOT build.hxml --hxb build/hx.hxb
HAXE_STD_PATH=$ROOT/res/$VERSION/std/ $ROOT/res/$VERSION/haxe --cwd $ROOT build.hxml --hxb res/hx.hxb
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 49cec58

Please sign in to comment.