-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #975 from kermitt2/feature/support-mac-arm
Support for Apple ARM M1
- Loading branch information
Showing
8 changed files
with
113 additions
and
4 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
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
Binary file not shown.
Binary file not shown.
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,43 @@ | ||
#!/bin/bash | ||
|
||
# Timeout. | ||
timeout=20 # 20 seconds | ||
# Interval between checks if the process is still alive. | ||
interval=1 | ||
# Delay between posting the SIGTERM signal and destroying the process by SIGKILL. | ||
delay=0 | ||
command=${0:0:${#0}-7} | ||
|
||
args=("$@") | ||
pdfalto_params=() | ||
|
||
for ((n=0; n<="$#";n++)); do | ||
case ${args[n]} in | ||
--timeout) | ||
timeout=${args[n+1]} | ||
((n++)) | ||
;; | ||
*) | ||
pdfalto_params+=" ${args[n]}" | ||
;; | ||
esac | ||
done | ||
|
||
# kill -0 pid Exit code indicates if a signal may be sent to $pid process. | ||
( | ||
((t = timeout)) | ||
|
||
while ((t > 0)); do | ||
sleep $interval | ||
kill -0 $$ || exit 0 | ||
((t -= interval)) | ||
done | ||
|
||
# Be nice, post SIGTERM first. | ||
# The 'exit 0' below will be executed if any preceeding command fails. | ||
kill -s SIGTERM $$ && kill -0 $$ || exit 0 | ||
sleep $delay | ||
kill -s SIGKILL $$ | ||
) 2> /dev/null & | ||
|
||
exec $command $pdfalto_params |
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,61 @@ | ||
#----- begin Arabic support package (2011-aug-15) | ||
unicodeMap ISO-8859-6 ../languages/xpdf-arabic/ISO-8859-6.unicodeMap | ||
#----- end Arabic support package | ||
#----- begin Chinese Simplified support package (2011-sep-02) | ||
cidToUnicode Adobe-GB1 ../languages/xpdf-chinese-simplified/Adobe-GB1.cidToUnicode | ||
unicodeMap ISO-2022-CN ../languages/xpdf-chinese-simplified/ISO-2022-CN.unicodeMap | ||
unicodeMap EUC-CN ../languages/xpdf-chinese-simplified/EUC-CN.unicodeMap | ||
unicodeMap GBK ../languages/xpdf-chinese-simplified/GBK.unicodeMap | ||
cMapDir Adobe-GB1 ../languages/xpdf-chinese-simplified/CMap | ||
toUnicodeDir ../languages/xpdf-chinese-simplified/CMap | ||
#fontFileCC Adobe-GB1 /usr/..../NotoSansCJKsc-Regular.otf | ||
#----- end Chinese Simplified support package | ||
#----- begin Chinese Traditional support package (2011-sep-02) | ||
cidToUnicode Adobe-CNS1 ../languages/xpdf-chinese-traditional/Adobe-CNS1.cidToUnicode | ||
unicodeMap Big5 ../languages/xpdf-chinese-traditional/Big5.unicodeMap | ||
unicodeMap Big5ascii ../languages/xpdf-chinese-traditional/Big5ascii.unicodeMap | ||
cMapDir Adobe-CNS1 ../languages/xpdf-chinese-traditional/CMap | ||
toUnicodeDir ../languages/xpdf-chinese-traditional/CMap | ||
#fontFileCC Adobe-CNS1 /usr/..../NotoSansCJKtc-Regular.otf" | ||
#----- end Chinese Traditional support package | ||
#----- begin Cyrillic support package (2011-aug-15) | ||
nameToUnicode ../languages/xpdf-cyrillic/Bulgarian.nameToUnicode | ||
unicodeMap KOI8-R ../languages/xpdf-cyrillic/KOI8-R.unicodeMap | ||
#----- end Cyrillic support package | ||
#----- begin Greek support package (2011-aug-15) | ||
nameToUnicode ../languages/xpdf-greek/Greek.nameToUnicode | ||
unicodeMap ISO-8859-7 ../languages/xpdf-greek/ISO-8859-7.unicodeMap | ||
#----- end Greek support package | ||
#----- begin Hebrew support package (2011-aug-15) | ||
unicodeMap ISO-8859-8 ../languages/xpdf-hebrew/ISO-8859-8.unicodeMap | ||
unicodeMap Windows-1255 ../languages/xpdf-hebrew/Windows-1255.unicodeMap | ||
#----- end Hebrew support package | ||
#----- begin Japanese support package (2011-sep-02) | ||
cidToUnicode Adobe-Japan1 ../languages/xpdf-japanese/Adobe-Japan1.cidToUnicode | ||
unicodeMap ISO-2022-JP ../languages/xpdf-japanese/ISO-2022-JP.unicodeMap | ||
unicodeMap EUC-JP ../languages/xpdf-japanese/EUC-JP.unicodeMap | ||
unicodeMap Shift-JIS ../languages/xpdf-japanese/Shift-JIS.unicodeMap | ||
cMapDir Adobe-Japan1 ../languages/xpdf-japanese/CMap | ||
toUnicodeDir ../languages/xpdf-japanese/CMap | ||
#fontFileCC Adobe-Japan1 /usr/..../NotoSansCJKjp-Regular.otf | ||
#----- end Japanese support package | ||
#----- begin Korean support package (2011-sep-02) | ||
cidToUnicode Adobe-Korea1 ../languages/xpdf-korean/Adobe-Korea1.cidToUnicode | ||
cidToUnicode Adobe-KR ../languages/xpdf-korean/Adobe-KR.cidToUnicode | ||
unicodeMap ISO-2022-KR ../languages/xpdf-korean/ISO-2022-KR.unicodeMap | ||
cMapDir Adobe-Korea1 ../languages/xpdf-korean/CMap | ||
cMapDir Adobe-KR ../languages/xpdf-korean/CMap | ||
toUnicodeDir ../languages/xpdf-korean/CMap | ||
#fontFileCC Adobe-Korea1 /usr/..../NotoSansCJKkr-Regular.otf | ||
#fontFileCC Adobe-KR /usr/..../NotoSansCJKkr-Regular.otf | ||
#----- end Korean support package | ||
#----- begin Latin2 support package (2011-aug-15) | ||
unicodeMap Latin2 ../languages/xpdf-latin2/Latin2.unicodeMap | ||
#----- end Latin2 support package | ||
#----- begin Thai support package (2011-aug-15) | ||
nameToUnicode ../languages/xpdf-thai/Thai.nameToUnicode | ||
unicodeMap TIS-620 ../languages/xpdf-thai/TIS-620.unicodeMap | ||
#----- end Thai support package | ||
#----- begin Turkish support package (2011-aug-15) | ||
unicodeMap ISO-8859-9 ../languages/xpdf-turkish/ISO-8859-9.unicodeMap | ||
#----- end Turkish support package |