Skip to content

Commit

Permalink
Clean up variant system
Browse files Browse the repository at this point in the history
  • Loading branch information
BtbN committed Sep 8, 2020
1 parent 8eeff4a commit 6d69575
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 37 deletions.
1 change: 0 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ get_output() {
)
}

source "variants/${VARIANT}.sh"
source "variants/${TARGET}-${VARIANT}.sh"

export FFBUILD_PREFIX="$(docker run --rm "$IMAGE" bash -c 'echo $FFBUILD_PREFIX')"
Expand Down
12 changes: 12 additions & 0 deletions variants/default-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

package_variant() {
IN="$1"
OUT="$2"

mkdir -p "$OUT"/bin
cp "$IN"/bin/* "$OUT"/bin

mkdir -p "$OUT/doc"
cp -r "$IN"/share/doc/ffmpeg/* "$OUT"/doc
}
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions variants/gpl-4.3.sh

This file was deleted.

5 changes: 0 additions & 5 deletions variants/gpl.sh

This file was deleted.

5 changes: 0 additions & 5 deletions variants/lgpl-4.3.sh

This file was deleted.

5 changes: 0 additions & 5 deletions variants/lgpl.sh

This file was deleted.

3 changes: 2 additions & 1 deletion variants/win64-gpl-4.3.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
source "$(dirname "$BASH_SOURCE")"/win64-gpl.sh
GIT_BRANCH="release/4.3"
2 changes: 1 addition & 1 deletion variants/win64-gpl-vulkan.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
source "$(dirname "$BASH_SOURCE")"/win64-gpl.sh
13 changes: 2 additions & 11 deletions variants/win64-gpl.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
#!/bin/bash

package_variant() {
IN="$1"
OUT="$2"

mkdir -p "$OUT"/bin
cp "$IN"/bin/* "$OUT"/bin

mkdir -p "$OUT/doc"
cp -r "$IN"/share/doc/ffmpeg/* "$OUT"/doc
}
source "$(dirname "$BASH_SOURCE")"/default-install.sh
source "$(dirname "$BASH_SOURCE")"/defaults-gpl.sh
3 changes: 2 additions & 1 deletion variants/win64-lgpl-4.3.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
source "$(dirname "$BASH_SOURCE")"/win64-lgpl.sh
GIT_BRANCH="release/4.3"
2 changes: 1 addition & 1 deletion variants/win64-lgpl-vulkan.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
source "$(dirname "$BASH_SOURCE")"/win64-lgpl.sh
3 changes: 2 additions & 1 deletion variants/win64-lgpl.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
source "$(dirname "$BASH_SOURCE")/win64-gpl.sh"
source "$(dirname "$BASH_SOURCE")"/default-install.sh
source "$(dirname "$BASH_SOURCE")"/defaults-lgpl.sh

0 comments on commit 6d69575

Please sign in to comment.