From e82c1165bd81c4c17c1b82ff052f450441c5e270 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 7 Feb 2020 16:32:03 +1000 Subject: Add Gloebits clone and build. And poor mans git sub modules, coz otherwise it gets complex. --- .gitignore | 2 ++ BuildIt.sh | 17 +++++++++++++++++ git-sub-modules/README | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 git-sub-modules/README diff --git a/.gitignore b/.gitignore index cec33fd..e4f7fc3 100644 --- a/.gitignore +++ b/.gitignore @@ -86,3 +86,5 @@ doc/html doc/doxygen.error.log *.patch + +git-sub-modules/*/ diff --git a/BuildIt.sh b/BuildIt.sh index 86948b6..2b12b0a 100755 --- a/BuildIt.sh +++ b/BuildIt.sh @@ -8,6 +8,20 @@ find -newer lastBuild -name *.dll -type f -print | xargs /bin/rm -f find -newer lastBuild -name *.dll.* -type f -print | xargs /bin/rm -f find -newer lastBuild -name *.pdb -type f -print | xargs /bin/rm -f sleep 1 + +# Poor mans git sub modules, coz otherwise it gets complex. +if [ ! -d git-sub-modules/opensim-moneymodule-gloebit ]; then + pushd git-sub-modules + git clone https://github.com/gloebit/opensim-moneymodule-gloebit.git + popd +else + pushd git-sub-modules/opensim-moneymodule-gloebit + git pull + popd +fi +rm -rf addon-modules/Gloebit/GloebitMoneyModule +cp -r git-sub-modules/opensim-moneymodule-gloebit/addon-modules/Gloebit/GloebitMoneyModule addon-modules/Gloebit/ + touch lastBuild ./runprebuild.sh vs2010 @@ -27,3 +41,6 @@ else msbuild /p:Configuration=Release # msbuild /p:Configuration=Debug fi + + +cp -f addon-modules/Gloebit/GloebitMoneyModule/bin/Gloebit.dll bin diff --git a/git-sub-modules/README b/git-sub-modules/README new file mode 100644 index 0000000..c7a111b --- /dev/null +++ b/git-sub-modules/README @@ -0,0 +1,2 @@ +Put git sub modules here, and then add code to BuildIt.sh to move them to +where they are needed, or link them. -- cgit v1.1