2 Star 0 Fork 4

黄家垚 / spkg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.en_US 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
黄家垚 提交于 2015-08-26 23:18 . First Version.
==== What is SPKG ====
SPKG, means Stupid PacKaGe tool.
SPKG can package a directory to a single executable "*.sh" file.
Let us just call this "*.sh" file as "spkg file". The spkg file can
unpackage it self by just execute it with "spkg-unpackage" option.
Even more, if you just execute the spkg file without "spkg-package"
either "spkg-unpackage" option, the files in it will be unpackage to /tmp,
and the "spkg-entry.sh" script will be executed.
NOTICE: After spkg-entry.sh exit, all of the files which be unpackage
to /tmp will be deleted. So, keep you spkg-entry,sh running!
==== Usage ====
spkg.sh spkg-package <DIR> The <DIR> will be package to DIR.sh.
spkg.sh spkg-unpackage The files in spkg file will be unpackage.
spkg.sh [OPTIONS] The [OPTIONS] is optional. All OPTIONS will be
passed to spkg-entry.sh when execute it.
PS1:
When making a package, there has will be an editer such as vim,
opening spkg-entry.sh. Don't panic, just input what you want to do after
unpackage.
PS2:
spkg file has self-reproduction. It means that if you got a package
named "A.sh" using "spkg.sh", then you can get a package named "B.sh" using
"A.sh", without "spkg.sh". After that, you can get a package named "C.sh"
using "A.sh" or "B.sh"...
==== TO DO ====
spkg-install OPTION.
spkg-uninstall OPTION.
==== Other ====
F**K English... I hate English Language...
Shell
1
https://gitee.com/jiayaohuang/spkg.git
git@gitee.com:jiayaohuang/spkg.git
jiayaohuang
spkg
spkg
master

搜索帮助