-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
重新组织项目目录结构,按照标准 OpenResty 目录结构放置文件和代码 更新安装说明
- Loading branch information
1 parent
fbb10dc
commit 4b65b1e
Showing
21 changed files
with
32 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.so | ||
*.o | ||
lualib/ourl/config.lua |
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
File renamed without changes.
File renamed without changes.
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,7 +1,11 @@ | ||
#/bin/sh | ||
#/usr/bin/env bash | ||
BASE=$(dirname $(readlink -f ${0})) | ||
cp "${BASE}/ourl/config.sample.lua" "${BASE}/ourl/config.lua" | ||
cd "${BASE}/lib/hashids" && make | ||
cd "${BASE}/lib/idna" && make linux | ||
mv "${BASE}/lib/idna/idna.so" "${BASE}" | ||
cd ${BASE} | ||
PLATFORM=$(uname -s) | ||
case ${PLATFORM} in | ||
Darwin) PLATFORM='macosx' ;; | ||
FreeBSD) PLATFORM='bsd' ;; | ||
*) PLATFORM='linux' ;; | ||
esac | ||
cp "${BASE}/lualib/ourl/config.sample.lua" "${BASE}/lualib/ourl/config.lua" | ||
cd "${BASE}/lualib/hashids" && make | ||
cd "${BASE}/idna" && make ${PLATFORM} && mv "${BASE}/idna/idna.so" "${BASE}/lualib" && cd ${BASE} |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.