Commit | Line | Data |
---|---|---|
b92a8b5f JB |
1 | #!/bin/bash |
2 | ||
3 | # This script helps to create a tarball which contains 2 directories | |
4 | # with ports: core from upstream CRUX and core-arm overlay | |
5 | # Both dirs have the version number for each port that will be taken | |
6 | # as the starting point | |
7 | ||
8 | GIT_REPO_UPSTREAM="git://crux.nu/ports/core.git" | |
9 | GIT_REPO_OVERLAY="git://crux-arm.nu/crux-arm/ports/core-arm.git" | |
10 | ||
11 | # we used the tag created for CRUX and the first commit hash in CRUX-ARM | |
3fa29881 | 12 | # CRUX-3.1 8ac5de3d6d32e963b8d90a130222052662cb6ef2 |
17723e82 | 13 | # CRUX-ARM 3.1 574c4008c8d63ac004b5196615da9fd29ef0c1d3 |
3fa29881 VM |
14 | GIT_BRANCH="3.2" |
15 | GIT_COMMIT_HASH_UPSTREAM="8ac5de3d6d32e963b8d90a130222052662cb6ef2" | |
4dc6b5bf | 16 | GIT_COMMIT_HASH_OVERLAY="c3fae79db1ed58ddea2e72d291e90617a55f2e89" |
b92a8b5f JB |
17 | |
18 | PWD_DIR=$(pwd) | |
19 | TMP_DIR=$(mktemp -d) | |
20 | ||
21 | cd $TMP_DIR && \ | |
22 | git clone $GIT_REPO_UPSTREAM && \ | |
23 | cd core && \ | |
b92a8b5f JB |
24 | git checkout $GIT_BRANCH && \ |
25 | git fetch && \ | |
26 | git reset --hard $GIT_COMMIT_HASH_UPSTREAM && \ | |
27 | rm -rvf .git README && \ | |
28 | cd .. && \ | |
29 | git clone $GIT_REPO_OVERLAY && \ | |
30 | cd core-arm && \ | |
31 | git branch $GIT_BRANCH origin/$GIT_BRANCH && \ | |
32 | git checkout $GIT_BRANCH && \ | |
33 | git fetch && \ | |
34 | git reset --hard $GIT_COMMIT_HASH_OVERLAY && \ | |
35 | rm -rvf .git README && \ | |
36 | cd .. && \ | |
37 | tar cvJf $PWD_DIR/crossrootfs-extras-$GIT_BRANCH.tar.xz core core-arm | |
38 | ||
39 | rm -fr $TMP_DIR |