-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build script for optimized perl interpreter
Cleanup Makefile a bit Make built in perl the default for linux x86
- Loading branch information
1 parent
bc840e9
commit 379e8af
Showing
9 changed files
with
87 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/vendor/ | ||
/build/ | ||
/build/artifacts | ||
/build/*tar.gz | ||
/build/tools/perl-build/build/exiftool.bin | ||
/build/tools/perl-build/build/staticperl |
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
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,17 @@ | ||
#!/bin/bash | ||
docker_build_mount="$(realpath "$(dirname "$0")"/build)" | ||
app_dir="$(realpath "$docker_build_mount"/../../../..)" | ||
exiftool_dir="$app_dir"/vendor/exiftool/exiftool | ||
|
||
docker run -ti --workdir /build --rm -v "$docker_build_mount":/build i386/alpine:3.9 ./build-perl.sh | ||
|
||
if [ -e "$docker_build_mount"/exiftool.bin ];then | ||
sudo chown $(id -u):$(id -g) "$docker_build_mount"/exiftool.bin | ||
|
||
chmod +x "$docker_build_mount"/exiftool.bin | ||
if [ -e "$exiftool_dir"/exiftool.bin ];then | ||
rm "$exiftool_dir"/exiftool.bin | ||
fi | ||
|
||
mv "$docker_build_mount"/exiftool.bin "$exiftool_dir"/ | ||
fi |
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,11 @@ | ||
#!/bin/sh | ||
|
||
[ -e ./exiftool.bin ] && rm ./exiftool.bin | ||
[ -e ./staticperl ] && rm ./staticperl | ||
|
||
apk -U add upx curl wget alpine-sdk && | ||
curl http://cvs.schmorp.de/App-Staticperl/bin/staticperl -o ./staticperl && chmod +x ./staticperl && \ | ||
./staticperl mkapp exiftool.bin --boot exiftool_wrapper.pl perl.bundle && \ | ||
upx exiftool.bin | ||
|
||
[ -e ./staticperl ] && rm ./staticperl |
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,2 @@ | ||
use FindBin; | ||
require "$FindBin::Bin/exiftool"; |
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,16 @@ | ||
static | ||
usepacklists | ||
strip pod | ||
use FindBin | ||
use File::Glob | ||
use Archive::Zip | ||
use Compress::Zlib | ||
use Digest::MD5 | ||
use Digest::SHA | ||
use IO::Compress::Bzip2 | ||
use Time::HiRes | ||
use Time::Piece | ||
use IO::Compress::RawDeflate | ||
use IO::Uncompress::RawInflate | ||
use IO::String | ||
use Encode |
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