Skip to content

Commit

Permalink
build: add generated sources
Browse files Browse the repository at this point in the history
Before this commit LWJGL generated sources were tracked in the
lwjgl3-generated repository. That repository has been archived and
generated sources will exist here from now on. Keeping them separate
was not practical anymore after moving to the new directory structure.

The generated sources are added here without any commit history, to
avoid bloating the clone size of this repository (would be more than
doubled). Earlier history can be explored manually in the read-only
lwjgl3-generated repository.
  • Loading branch information
Spasi committed Apr 21, 2018
1 parent 36d8305 commit bb38fb3
Show file tree
Hide file tree
Showing 2,514 changed files with 655,229 additions and 56 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/.idea/workspace.xml
/bin
/modules/lwjgl/*/src/generated/**
/modules/lwjgl/.git
/wiki
.gradle
.DS_Store
Expand Down
54 changes: 0 additions & 54 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,60 +33,6 @@
<taskdef resource="testngtasks" classpath="${lib}/java/testng.jar"/>
</target>

<target name="init-generated" description="Initializes the lwjgl3-generated git repository. [Optional]">
<local name="input"/>
<input
message="This action will create a separated git repository at ../lwjgl3-generated/. The repository root will be under modules/lwjgl/. Continue?"
validargs="y,n"
defaultvalue="n"
addproperty="input"
/>
<fail message="Cancelled.">
<condition>
<equals arg1="n" arg2="${input}"/>
</condition>
</fail>

<local name="lwjgl3-generated.exists"/>

<available file="${module.lwjgl}/.git" property="lwjgl3-generated.exists"/>
<fail if="lwjgl3-generated.exists" message="The lwjgl3-generated repository is already initialized." />
<available file="../lwjgl3-generated" type="dir" property="lwjgl3-generated.exists"/>

<!-- Initialize repository -->
<exec dir="${module.lwjgl}" executable="git" failonerror="true" taskname="git">
<arg value="init"/>
<arg value="--separate-git-dir=../../../lwjgl3-generated"/>
</exec>

<!-- Add clone-specific ignore rules -->
<concat
destfile="../lwjgl3-generated/info/exclude"
append="true" outputencoding="UTF-8" fixlastline="true" eol="lf"
unless:set="lwjgl3-generated.exists"
>touch.txt
*_license.txt
**/main/**
**/test/**</concat>

<!-- Setup remote & fetch -->
<exec dir="${module.lwjgl}" executable="git" failonerror="true" taskname="git" unless:set="lwjgl3-generated.exists">
<arg value="remote"/>
<arg value="add"/>
<arg line="-t master"/>
<arg line="-m master"/>
<arg value="-f"/>
<arg value="origin"/>
<arg value="https://github.com/LWJGL/lwjgl3-generated.git"/>
</exec>

<!-- Checkout master -->
<exec dir="${module.lwjgl}" executable="git" failonerror="true" taskname="git" unless:set="lwjgl3-generated.exists">
<arg value="checkout"/>
<arg line="master"/>
</exec>
</target>

<target name="init-wiki" description="Initializes the lwjgl3-wiki git repository in /wiki. [Optional]">
<confirm-replace dir="wiki" msg="The wiki directory contents will be replaced with a fresh clone of the lwjgl3-wiki repository. Continue?"/>

Expand Down
Loading

0 comments on commit bb38fb3

Please sign in to comment.