Skip to content
Permalink
Browse files

feat(pkg): add shared libraries for restructuring

  • Loading branch information...
papakai committed May 2, 2019
1 parent 24b56ee commit 226711c4691591ed16729f4a14c63969cc7b6b77
Showing with 6 additions and 0 deletions.
  1. +3 −0 .gitmodules
  2. +2 −0 Makefile
  3. +1 −0 registrars/ispapi/lib
@@ -0,0 +1,3 @@
[submodule "registrars/ispapi/lib"]
path = registrars/ispapi/lib
url = git://github.com/hexonet/whmcs-ispapi-helper
@@ -1,6 +1,7 @@
VERSION := $(shell node -p "require('./release.json').version")
REPOID := whmcs-ispapi-registrar
FOLDER := pkg/$(REPOID)-$(VERSION)
LIBFOLDER := $(FOLDER)/install/modules/registrars/ispapi/lib

clean:
rm -rf $(FOLDER)
@@ -17,6 +18,7 @@ buildsources:
cp README.md HISTORY.md HISTORY.old CONTRIBUTING.md LICENSE /tmp/$(REPOID)/*.md $(FOLDER)/docs
# Clean up files
rm -rf $(FOLDER)/docs/_*.md $(FOLDER)/docs/Home.md /tmp/$(REPOID)
find $(LIBFOLDER) ! -name "*.class.php" -type f -exec rm -f {} \;
# convert all necessary files to html
find $(FOLDER)/docs -maxdepth 1 -name "*.md" -exec bash -c 'pandoc "$${0}" -f markdown -t html -s --self-contained -o "$${0/\.md/}.html"' {} \;
pandoc $(FOLDER)/docs/LICENSE -t html -s --self-contained -o $(FOLDER)/docs/LICENSE.html
Submodule lib added at 13a414

0 comments on commit 226711c

Please sign in to comment.
You can’t perform that action at this time.