Skip to content

Commit

Permalink
add Versioning to build system
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrez authored and worksofliam committed Jan 10, 2023
1 parent 7dc5e0a commit 8f72339
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
BUILDLIB:=MANZAN
MANZAN_TEMPLIB:=MANZANBLD
BUILDVERSION:="Development build \(built with Make\)"

.PHONY: ile camel test

Expand All @@ -20,3 +23,24 @@ install:
uninstall:
gmake -C ile uninstall
gmake -C config uninstall

manzan-v%.zip: /QOpenSys/pkgs/bin/zip
echo "Building version $*"
system "clrlib ${MANZAN_TEMPLIB}" || system "crtlib ${MANZAN_TEMPLIB}"
system "dltlib ${BUILDLIB}" || echo "could not delete"
system "crtlib ${BUILDLIB}"
system "dltlib ${BUILDLIB}"
rm -fr /QOpenSys/etc/manzan
gmake -C config BUILDVERSION="$*" install
gmake -C ile BUILDVERSION="$*"
gmake -C camel BUILDVERSION="$*" clean install
system "crtsavf ${MANZAN_TEMPLIB}/distqsys"
system "crtsavf ${MANZAN_TEMPLIB}/diststmf"
rm -f /qsys.lib/${MANZAN_TEMPLIB}.lib/*.MODULE
system "SAV DEV('/qsys.lib/${MANZAN_TEMPLIB}.lib/distqsys.file') OBJ(('/qsys.lib/manzan.lib')) SAVACT(*YES)"
cp /qsys.lib/${MANZAN_TEMPLIB}.lib/distqsys.file .
system "SAV DEV('/qsys.lib/${MANZAN_TEMPLIB}.lib/diststmf.file') OBJ(('/opt/manzan') ('/QOpenSys/etc/manzan')) SAVACT(*YES)"
cp /qsys.lib/${MANZAN_TEMPLIB}.lib/diststmf.file .
/QOpenSys/pkgs/bin/zip -v -0 $@ diststmf.file distqsys.file
rm diststmf.file distqsys.file
system "dltlib ${MANZAN_TEMPLIB}"
4 changes: 3 additions & 1 deletion camel/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@


BUILDVERSION:="Development build \(built with Make\)"

.PHONY: mkdirs

JAVA_SRCS := $(shell find src -type f)
target/manzan.jar: ${JAVA_SRCS} /QOpenSys/pkgs/bin/mvn
JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit /QOpenSys/pkgs/bin/mvn -Djava.net.preferIPv4Stack=true package
JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit /QOpenSys/pkgs/bin/mvn -Djava.net.preferIPv4Stack=true "-Dmanzan.version=${BUILDVERSION}" package
cp target/manzan-*-with-dependencies.jar target/manzan.jar

mkdirs:
Expand Down

0 comments on commit 8f72339

Please sign in to comment.