-
-
Save j16sdiz/92526 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- ant build file for Freenet --> | |
<project name="Freenet" default="dist" basedir="."> | |
<property name="freenet-cvs-snapshot.location" location="../fred/lib/freenet-cvs-snapshot.jar"/> | |
<property name="freenet-ext.location" location="../fred/lib/freenet-ext.jar"/> | |
<property name="svn.revision" value="@custom@"/> | |
<property name="source-version" value="1.5"/> | |
<property name="build" location="build/"/> | |
<property name="build-test" location="build-test/"/> | |
<property name="dist" location="dist/"/> | |
<property name="junit.location" value="/usr/share/java/junit.jar"/> | |
<available file="src/plugins/PLUGIN_NAME/Version.java" property="version.present"/> | |
<available file="${junit.location}" property="junit.present"/> | |
<target name="mkdir"> | |
<mkdir dir="${build}"/> | |
<mkdir dir="${build-test}"/> | |
<mkdir dir="${dist}"/> | |
<echo message="Using ${freenet-cvs-snapshot.location} as freenet-cvs-snapshot.jar"/> | |
<echo message="Using ${freenet-ext.location} as freenet-ext.jar"/> | |
</target> | |
<target name="setver" if="version.present"> | |
<!-- Update the Version file --> | |
<replace file="src/plugins/PLUGIN_NAME/Version.java"> | |
<replacefilter token="@custom@" value="${svn.revision}"/> | |
</replace> | |
</target> | |
<!-- ================================================== --> | |
<target name="compile" depends="mkdir,setver" > | |
<!-- Create the time stamp --> | |
<tstamp/> | |
<!-- Create the build directory structure used by compile --> | |
<!-- FIXME: remove the debug and replace with optimize --> | |
<javac srcdir="src/" destdir="${build}" debug="on" optimize="on" source="${source-version}"> | |
<classpath> | |
<pathelement location="${freenet-ext.location}"/> | |
<pathelement location="${freenet-cvs-snapshot.location}"/> | |
</classpath> | |
<include name="**/*.java"/> | |
<exclude name="**/*Test.java"/> | |
</javac> | |
</target> | |
<!-- ================================================== --> | |
<target name="unit-build" depends="compile" if="junit.present" unless="skip_tests"> | |
<javac srcdir="src/" destdir="${build-test}" debug="on" optimize="on" source="1.5"> | |
<classpath> | |
<pathelement path="${build}"/> | |
<pathelement location="${freenet-ext.location}"/> | |
<pathelement location="${freenet-cvs-snapshot.location}"/> | |
<pathelement location="${junit.location}"/> | |
</classpath> | |
<compilerarg value="-Xlint"/> | |
<include name="**/*Test.java"/> | |
</javac> | |
</target> | |
<target name="junit" depends="unit-build" if="junit.present" unless="skip_tests"> | |
<junit printsummary="yes" fork="yes" haltonfailure="yes"> | |
<classpath> | |
<pathelement path="${build}"/> | |
<pathelement path="${build-test}"/> | |
<pathelement location="${freenet-ext.location}"/> | |
<pathelement location="${freenet-cvs-snapshot.location}"/> | |
<pathelement location="${junit.location}"/> | |
</classpath> | |
<formatter type="plain" usefile="false"/> | |
<batchtest fork="yes"> | |
<fileset dir="${build-test}"> | |
<include name="**/*Test.class"/> | |
</fileset> | |
</batchtest> | |
<sysproperty key="benchmark" value="${benchmark}" /> | |
<sysproperty key="extensiveTesting" value="${extensiveTesting}" /> | |
</junit> | |
</target> | |
<!-- ================================================== --> | |
<target name="dist" depends="clean,compile,junit" | |
description="generate the distribution" > | |
<jar jarfile="${dist}/PLUGIN_NAME.jar" duplicate="fail"> | |
<manifest> | |
<attribute name="Plugin-Main-Class" value="plugins.PLUGIN_NAME.PLUGIN_NAME"/> | |
</manifest> | |
<fileset dir="src/" casesensitive="no"> | |
<include name="*.txt"/> | |
</fileset> | |
<fileset dir="${build}/"/> | |
</jar> | |
</target> | |
<!-- ================================================== --> | |
<target name="clean" description="Delete class files and docs dir."> | |
<delete dir="${build}"/> | |
<delete dir="${build-test}"/> | |
<delete dir="${dist}"/> | |
</target> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<classpath> | |
<classpathentry kind="src" path="src"/> | |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |
<classpathentry combineaccessrules="false" kind="src" path="/Freenet 0.7"/> | |
<classpathentry kind="lib" path="/Freenet 0.7/lib/freenet-ext.jar"/> | |
<classpathentry kind="output" path="build"/> | |
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<projectDescription> | |
<name>PLUGIN_NAME</name> | |
<comment></comment> | |
<projects> | |
</projects> | |
<buildSpec> | |
<buildCommand> | |
<name>org.eclipse.jdt.core.javabuilder</name> | |
<arguments> | |
</arguments> | |
</buildCommand> | |
</buildSpec> | |
<natures> | |
<nature>org.eclipse.jdt.core.javanature</nature> | |
</natures> | |
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#--------------------------- | |
# trival plugins | |
#--------------------------- | |
plugins () { | |
echo ----------------------------------------------- | |
echo ---------- plugins $* | |
echo ----------------------------------------------- | |
git clone git@gist.github.com:freenet/plugin-${1}-staging.git | |
pushd plugin-${1}-staging/ | |
BUILD_HASH=`cat ../build.xml | sed "s!PLUGIN_NAME!$1!g" | git hash-object -w --stdin` | |
EP_HASH=`cat ../eclipse.project | sed "s!PLUGIN_NAME!$1!g" | git hash-object -w --stdin` | |
EC_HASH=`cat ../eclipse.classpath | sed "s!PLUGIN_NAME!$1!g" | git hash-object -w --stdin` | |
GITIGNOR=`cat ../plugin-gitignore | sed "s!PLUGIN_NAME!$1!g" | git hash-object -w --stdin` | |
git filter-branch -f --prune-empty --index-filter ' | |
( | |
git ls-files -s | sed "s-\t-&src/plugins/'$1'/-" | egrep -v " (build.xml|.project|.classpath)" ; | |
echo "100644 '$BUILD_HASH' 0 build.xml" | |
echo "100644 '$EP_HASH' 0 .project" | |
echo "100644 '$EC_HASH' 0 .classpath" | |
echo "100644 '$GITIGNOR' 0 .gitignore" | |
) | GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info && \ | |
mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE | |
' -- --all | |
## git push --force | |
popd | |
} | |
git clone git@gist.github.com:freenet/plugin-Freetalk-staging.git | |
pushd plugin-Freetalk-staging/ | |
BUILD_HASH=`cat ../build.xml | sed 's!PLUGIN_NAME!FMSPlugin!g' | git hash-object -w --stdin` | |
EP_HASH=`cat ../eclipse.project | sed 's!PLUGIN_NAME!FMSPlugin!g' | git hash-object -w --stdin` | |
EC_HASH=`cat ../eclipse.classpath | sed 's!PLUGIN_NAME!FMSPlugin!g' | git hash-object -w --stdin` | |
GITIGNOR=`cat ../plugin-gitignore | sed 's!PLUGIN_NAME!FMSPlugin!g' | git hash-object -w --stdin` | |
git filter-branch -f --prune-empty --index-filter ' | |
( | |
git ls-files -s | sed "s-\t-&src/plugins/FMSPlugin/-" | egrep -v " (build.xml|.project|.classpath)" ; | |
echo "100644 '$BUILD_HASH' 0 build.xml" | |
echo "100644 '$EP_HASH' 0 .project" | |
echo "100644 '$EC_HASH' 0 .classpath" | |
echo "100644 '$GITIGNOR' 0 .gitignore" | |
) | GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info && \ | |
mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE | |
' -- master | |
BUILD_HASH=`cat ../build.xml | sed 's!PLUGIN_NAME!Freetalk!g' | git hash-object -w --stdin` | |
BUILD_HASH=`cat ../build.xml | sed 's!PLUGIN_NAME!Freetalk!g' | git hash-object -w --stdin` | |
EP_HASH=`cat ../eclipse.project | sed 's!PLUGIN_NAME!Freetalk!g' | git hash-object -w --stdin` | |
EC_HASH=`cat ../eclipse.classpath | sed 's!PLUGIN_NAME!Freetalk!g' | git hash-object -w --stdin` | |
GITIGNOR=`cat ../plugin-gitignore | sed 's!PLUGIN_NAME!Freetalk!g' | git hash-object -w --stdin` | |
git filter-branch -f --prune-empty --index-filter ' | |
( | |
git ls-files -s | sed "s-FMSPlugin/-Freetalk/-" | egrep -v " (build.xml|.project|.classpath)" ; | |
echo "100644 '$BUILD_HASH' 0 build.xml" | |
echo "100644 '$EP_HASH' 0 .project" | |
echo "100644 '$EC_HASH' 0 .classpath" | |
echo "100644 '$GITIGNOR' 0 .gitignore" | |
) | GIT_INDEX_FILE=$GIT_INDEX_FILE.new git update-index --index-info && \ | |
mv $GIT_INDEX_FILE.new $GIT_INDEX_FILE | |
' -- master --not e19256a697b755c25a0d4581efdd8403f0959aa6 | |
popd | |
plugins HelloFCP | |
plugins HelloWorld | |
plugins JSTUN | |
plugins KeyExplorer | |
plugins MDNSDiscovery | |
plugins SNMP | |
plugins TestGallery | |
plugins ThawIndexBrowser | |
plugins UPnP | |
plugins WoT | |
plugins XMLLibrarian | |
plugins XMLSpider | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## config setting at line 103 | |
map_svn () { | |
rm -f .git/info/grafts-1 | |
touch .git/info/grafts | |
mv .git/info/grafts .git/info/grafts-1 | |
map_svn_real $1 $2 | |
mv .git/info/grafts-1 .git/info/grafts | |
} | |
map_svn_real () { | |
# <tree-ish> <rev-id> | |
git rev-parse $1 2>&1 > /dev/null || exit 1 | |
# special case for head | |
SVN_REV=`git log -1 $1 | grep -E "git-svn-id:.*@" | sed 's/^.*@\([0-9]*\).*$/\1/'` | |
test $2 -ge $SVN_REV && git rev-parse $1 && return | |
RIGHT=`git rev-parse $1` | |
LEFT=`git rev-list --reverse $RIGHT | head -n1` | |
MID=`git rev-list --bisect $RIGHT` | |
BEST="$LEFT" | |
while true; do | |
SVN_REV=`git log -1 $MID | grep -E "git-svn-id:.*@" | sed 's/^.*@\([0-9]*\).*$/\1/'` | |
P_MID=$MID | |
test $2 -eq $SVN_REV && echo $MID && return | |
if [ $2 -lt $SVN_REV ]; then | |
RIGHT=$MID | |
MID=`git rev-list --bisect $RIGHT --not $LEFT` | |
fi | |
if [ $2 -gt $SVN_REV ]; then | |
BEST=$MID | |
LEFT="$LEFT $MID" | |
MID=`git rev-list --bisect $RIGHT --not $LEFT` | |
fi | |
if [ x"$MID" == "x" -o x$MID == x$P_MID ]; then | |
echo $BEST | |
return | |
fi | |
done | |
} | |
init_branch () { | |
echo ----------------------------------------------- | |
echo ---------- init_branch $* | |
echo ----------------------------------------------- | |
# <path> <branch> <rev> | |
git branch $2 $3 || exit 2 | |
B=`echo "$1" | sed 's/\\//\\\\\\//g'` | |
git filter-branch -f \ | |
--subdirectory-filter "$1" \ | |
--msg-filter 'sed "s/\(git-svn-id:.*\)@/\1\/'$B'@/"' \ | |
--prune-empty \ | |
$2 || exit 1 | |
} | |
attach_parent () { | |
echo ----------------------------------------------- | |
echo ---------- attach_parent $4:$2 to $3:$1 | |
echo ----------------------------------------------- | |
# <orig> <branch> <rev-orig> <rev-branch> | |
LEFT=`map_svn $1 $3` | |
RIGHT=`map_svn $2 $4` | |
echo -- Attach $RIGHT to $LEFT | |
GRAFT="`git rev-list -1 --parents ${RIGHT}` ${LEFT}" | |
grep -E -v "^${RIGHT}" .git/info/grafts > .git/info/grafts-1 | |
mv .git/info/grafts-1 .git/info/grafts || exit 1 | |
echo $GRAFT >> .git/info/grafts | |
} | |
change_parent () { | |
echo ----------------------------------------------- | |
echo ---------- change_parent $4:$2 to $3:$1 | |
echo ----------------------------------------------- | |
# <orig> <branch> <rev-orig> <rev-branch> | |
LEFT=`map_svn $1 $3` | |
RIGHT=`map_svn $2 $4` | |
echo -- Change parent of $RIGHT to $LEFT | |
GRAFT="${RIGHT} ${LEFT}" | |
grep -E -v "^${RIGHT}" .git/info/grafts > .git/info/grafts-1 | |
mv .git/info/grafts-1 .git/info/grafts || exit 1 | |
echo $GRAFT >> .git/info/grafts | |
} | |
disconnect () { | |
echo ----------------------------------------------- | |
echo ---------- disconnect $2:$1 | |
echo ----------------------------------------------- | |
# <tree-ish> <rev> | |
Q=`map_svn $1 $2` | |
# echo -- git filter-branch -f --parent-filter 'test $GIT_COMMIT = '${Q}' && echo "" || cat ; true' --prune-empty $1 | |
# git filter-branch -f --parent-filter 'test $GIT_COMMIT = '${Q}' && echo "" || cat ; true' --prune-empty $1 | |
grep -E -v "^${Q}" .git/info/grafts > .git/info/grafts-1 | |
mv .git/info/grafts-1 .git/info/grafts || exit 1 | |
echo "${Q}" >> .git/info/grafts | |
} | |
git svn clone -A/home/sdiz/build/fn/gitauthors http://freenet.googlecode.com/svn freenet || echo SVN ERROR && exit 1 | |
cd freenet/ | |
git svn fetch -A/home/sdiz/build/fn/gitauthors | |
rm .git/info/grafts | |
touch .git/info/grafts | |
# delete all | |
for REF in `git for-each-ref --format '%(refname:short)'`; do | |
git tag -d $REF > /dev/null 2>&1 | |
git branch -D $REF > /dev/null 2>&1 | |
done | |
git reset --hard HEAD | |
git checkout git-svn || exit 1 | |
git reset --hard || exit 1 | |
git clean -dfx || exit 1 | |
trival () { | |
# <dir> <name> | |
DIR=$1 | |
NAM=$2 | |
init_branch $DIR $NAM git-svn | |
cd .. | |
rm -fr $NAM | |
mkdir $NAM | |
cd $NAM | |
git init | |
echo "ref: refs/heads/nonexist" > .git/HEAD | |
git fetch ../freenet ${NAM}:master | |
git checkout master > /dev/null 2>&1 | |
cd ../freenet | |
} | |
#--------------------------- | |
# WWW | |
#--------------------------- | |
trival trunk/website website | |
#--------------------------- | |
# scripts | |
#--------------------------- | |
trival trunk/scripts scripts | |
#--------------------------- | |
# freemail | |
#--------------------------- | |
init_branch trunk/apps/Freemail app-Freemail git-svn | |
change_parent app-Freemail app-Freemail 15512 15515 | |
git filter-branch -f --prune-empty app-Freemail || exit 1 | |
rm .git/info/grafts | |
touch .git/info/grafts | |
cd .. | |
rm -fr app-Freemail | |
mkdir app-Freemail | |
cd app-Freemail | |
git init | |
echo "ref: refs/heads/nonexist" > .git/HEAD | |
git fetch ../freenet app-Freemail:master | |
git checkout master > /dev/null 2>&1 | |
cd ../freenet | |
#--------------------------- | |
# trival apps | |
#--------------------------- | |
apps () { | |
trival trunk/apps/$1 app-$1 | |
} | |
apps AdaFN | |
apps blueBunny | |
apps bookmarkplugin | |
apps CppFCPLib | |
apps DarknetSpiderBot | |
apps Echo | |
apps freenet-caching | |
apps freeviz | |
apps jfcp | |
apps jFCPlib | |
apps jSite | |
apps libfcp2 | |
apps LibrarianSpider | |
apps load-balancing-sims | |
apps new_installer | |
apps perlFreenet | |
apps pyFreenet | |
apps pyFreenetHg | |
apps rpm | |
apps rubyFreenet | |
apps simsalabim | |
apps Thaw | |
apps thingamablog | |
apps wininstaller | |
apps wxFCP | |
#--------------------------- | |
# trival contribs | |
#--------------------------- | |
contribs () { | |
trival trunk/contrib/$1 contrib-$1 | |
} | |
contribs bdb | |
contribs db4o | |
contribs fec | |
contribs freenet_ext | |
contribs java | |
contribs java-test | |
contribs jcpuid | |
contribs NativeBigInteger | |
contribs NativeThread | |
contribs win_wrapper | |
#--------------------------- | |
# Freenet 0.7 | |
#--------------------------- | |
git tag svn-r1 `map_svn git-svn 1` | |
git tag svn-r7134 `map_svn git-svn 7134` | |
# fred 0.7 rewrite @7137 | |
init_branch trunk/freenet fred git-svn | |
disconnect fred 7137 | |
# self revert to 1165 | |
attach_parent fred fred 22843 23113 | |
attach_parent fred fred 23112 23118 | |
change_parent fred fred 22843 23133 | |
# self revert to 1166 | |
attach_parent fred fred 23116 23166 | |
attach_parent fred fred 23165 23167 | |
change_parent fred fred 23116 23166 | |
# self revert to 1167 | |
attach_parent fred fred 23166 23200 | |
attach_parent fred fred 23199 23202 | |
change_parent fred fred 23166 23200 | |
# selt revert to 1168 | |
attach_parent fred fred 23201 23342 | |
attach_parent fred fred 23241 23351 | |
change_parent fred fred 23201 23342 | |
# same to r24088 | |
attach_parent fred fred 24088 24099 | |
attach_parent fred fred 24098 24102 | |
change_parent fred fred 24088 24099 | |
#build 1191 | |
attach_parent fred fred 24101 24113 | |
attach_parent fred fred 24112 24116 | |
change_parent fred fred 24101 24113 | |
#build 1192 | |
attach_parent fred fred 24115 24158 | |
attach_parent fred fred 24157 24162 | |
change_parent fred fred 24115 24158 | |
# fred publish-subscribe branch @7424 | |
init_branch branches/publish-subscribe fred-publish-subscribe git-svn | |
change_parent fred fred-publish-subscribe 7424 7424 | |
# fred bdb branch @7709 | |
init_branch branches/bdb fred-bdb git-svn | |
change_parent fred fred-bdb 7709 7709 | |
# merge to trunk @7753 | |
attach_parent fred-bdb fred 7753 7753 | |
# fred freenet-freejvms branch @7714 | |
init_branch branches/freenet-freejvms fred-freenet-freejvms git-svn | |
change_parent fred fred-freenet-freejvms 7713 7713 | |
# merge from trunk @7997 @7998 @7999 @8001 | |
attach_parent fred fred-freenet-freejvms 7751 7997 | |
attach_parent fred fred-freenet-freejvms 7758 7998 | |
attach_parent fred fred-freenet-freejvms 7799 7999 | |
attach_parent fred fred-freenet-freejvms 8001 8001 | |
# async-client @7889 | |
init_branch branches/async-client fred-async-client git-svn | |
change_parent fred fred-async-client 7889 7889 | |
# merge from trunk @7906, @7908, @7918 | |
attach_parent fred fred-async-client 7906 7906 | |
attach_parent fred fred-async-client 7908 7908 | |
attach_parent fred fred-async-client 7918 7918 | |
# merge to trunk @7930 | |
attach_parent fred-async-client fred 7930 7930 | |
# config @8063 | |
init_branch branches/config fred-config git-svn | |
change_parent fred fred-config 8063 8063 | |
# merge to trunk @8078 | |
attach_parent fred-config fred 8078 8078 | |
# freenet-jfk @13448 | |
init_branch branches/freenet-jfk fred-freenet-jfk git-svn | |
change_parent fred fred-freenet-jfk 13448 13448 | |
# merge from trunk @14803, @14828, @14907, @15282, @15391 | |
attach_parent fred fred-freenet-jfk 14803 14803 | |
attach_parent fred fred-freenet-jfk 14828 14828 | |
attach_parent fred fred-freenet-jfk 14907 14907 | |
attach_parent fred fred-freenet-jfk 15282 15282 | |
attach_parent fred fred-freenet-jfk 15391 15391 | |
# merge to trunk @15395 - @15397 | |
attach_parent fred-freenet-jfk fred 15395 15395 | |
attach_parent fred-freenet-jfk fred 15396 15396 | |
attach_parent fred-freenet-jfk fred 15397 15397 | |
# bandwidth-scheduler @19731 | |
init_branch branches/bandwidth-scheduler/freenet fred-bandwidth-scheduler git-svn | |
change_parent fred fred-bandwidth-scheduler 19731 19731 | |
# saltedhashstore @19732 | |
init_branch branches/saltedhashstore/freenet fred-saltedhashstore git-svn | |
change_parent fred fred-saltedhashstore 19732 19732 | |
# merge from trunk | |
attach_parent fred fred-saltedhashstore 19830 19858 | |
attach_parent fred fred-saltedhashstore 19950 20079 | |
attach_parent fred fred-saltedhashstore 20269 20360 | |
attach_parent fred fred-saltedhashstore 20933 20999 | |
attach_parent fred fred-saltedhashstore 21278 21395 | |
attach_parent fred fred-saltedhashstore 21652 21698 | |
attach_parent fred fred-saltedhashstore 21652 21698 | |
attach_parent fred fred-saltedhashstore 21939 21953 | |
attach_parent fred fred-saltedhashstore 22001 22004 | |
attach_parent fred fred-saltedhashstore 22011 22012 | |
attach_parent fred fred-saltedhashstore 22339 22349 | |
attach_parent fred fred-saltedhashstore 22339 22350 | |
# merge to trunk @22351 | |
attach_parent fred-saltedhashstore fred 22351 22351 | |
# db4o @19964 | |
init_branch branches/db4o/freenet fred-db4o git-svn | |
change_parent fred fred-db4o 19964 19964 | |
# merge from trunk | |
attach_parent fred fred-db4o 21656 21656 | |
attach_parent fred fred-db4o 21657 21657 | |
attach_parent fred fred-db4o 22013 22014 | |
attach_parent fred fred-db4o 21939 22823 | |
attach_parent fred fred-db4o 22001 22824 | |
attach_parent fred fred-db4o 22011 22825 | |
attach_parent fred fred-db4o 22306 22827 | |
attach_parent fred fred-db4o 22339 22828 | |
attach_parent fred fred-db4o 22484 22829 | |
attach_parent fred fred-db4o 22508 22831 | |
attach_parent fred fred-db4o 22610 22832 | |
attach_parent fred fred-db4o 22682 22833 | |
attach_parent fred fred-db4o 22843 22845 | |
attach_parent fred fred-db4o 23166 23534 | |
attach_parent fred fred-db4o 23166 23535 | |
attach_parent fred fred-db4o 23350 23536 | |
attach_parent fred fred-db4o 23425 23976 | |
attach_parent fred fred-db4o 23436 23977 | |
attach_parent fred fred-db4o 23439 23978 | |
attach_parent fred fred-db4o 23514 23979 | |
attach_parent fred fred-db4o 23531 23980 | |
attach_parent fred fred-db4o 23586 23982 | |
attach_parent fred fred-db4o 23592 23983 | |
attach_parent fred fred-db4o 23606 23984 | |
attach_parent fred fred-db4o 23794 23985 | |
attach_parent fred fred-db4o 23821 23986 | |
attach_parent fred fred-db4o 23894 23987 | |
attach_parent fred fred-db4o 23907 23988 | |
attach_parent fred fred-db4o 23920 23989 | |
attach_parent fred fred-db4o 23968 23990 | |
attach_parent fred fred-db4o 23993 23994 | |
attach_parent fred fred-db4o 24028 24089 | |
attach_parent fred fred-db4o 24088 24090 | |
attach_parent fred fred-db4o 24101 24428 | |
attach_parent fred fred-db4o 24101 24429 | |
attach_parent fred fred-db4o 24115 24430 | |
attach_parent fred fred-db4o 24115 24431 | |
attach_parent fred fred-db4o 24161 24432 | |
attach_parent fred fred-db4o 24161 24433 | |
attach_parent fred fred-db4o 24263 24436 | |
attach_parent fred fred-db4o 24446 24446 | |
attach_parent fred fred-db4o 25205 25217 | |
attach_parent fred fred-db4o 25205 25218 | |
attach_parent fred fred-db4o 25205 25219 | |
attach_parent fred fred-db4o 25209 25220 | |
attach_parent fred fred-db4o 25900 25919 | |
attach_parent fred fred-db4o 25872 26082 | |
attach_parent fred fred-db4o 26118 26119 | |
attach_parent fred fred-db4o 26318 26320 | |
# merge to trunk | |
attach_parent fred-db4o fred 26322 26322 | |
# nextgen-stuff @ | |
init_branch branches/nextgens-stuffs/freenet fred-nextgen-stuffs git-svn | |
change_parent fred fred-nextgen-stuffs 26908 26908 | |
## apply all changes AND add .gitignore | |
git filter-branch -f --prune-empty --index-filter ' | |
cat > .gitignore <<__END__ | |
/bin | |
/build | |
/build-test | |
/freenet-* | |
/junitvmwatcher* | |
/lib | |
*.swp | |
.* | |
__END__ | |
git add -f .gitignore | |
rm .gitignore | |
' -- --all --not git-svn || exit 1 | |
rm .git/info/grafts | |
touch .git/info/grafts | |
## split it out | |
cd .. | |
rm -fr fred | |
mkdir fred | |
cd fred | |
git init | |
echo "ref: refs/heads/nonexist" > .git/HEAD | |
git fetch ../freenet fred:master | |
git fetch ../freenet fred-db4o:db4o | |
git fetch ../freenet fred-nextgen-stuffs:nextgen-stuffs | |
# tag release | |
git checkout master | |
VF=src/freenet/node/Version.java | |
for REV in `git log --reverse --pretty="format:%H" $VF`; do | |
BUILD=`git show $REV:$VF | grep -e 'buildNumber.*[0-9];' | sed 's/.*buildNumber\s*=\s*\([0-9]*\).*/\1/'` | |
BUILD=`printf "%05d" $BUILD` | |
git tag build$BUILD $REV | |
done | |
git tag -d build | |
git tag -d build00000 | |
cd ../freenet | |
#--------------------------- | |
# Freenet 0.5 | |
#--------------------------- | |
#r779 Initial Checkin freenet/trunk @779 | |
init_branch trunk/freenet fred-legacy-unstable-tmp svn-r7134 | |
disconnect fred-legacy-unstable-tmp 779 | |
#r2002 rel-0-5-1 branched from fred-legacy-unstable @2002 | |
init_branch branches/rel-0-5-1 rel-0-5-1 | |
change_parent fred-legacy-unstable-tmp rel-0-5-1 2002 2002 | |
#r3250 stable branched from rel-0-5-1 @3250 | |
init_branch branches/stable fred-legacy-stable-tmp | |
change_parent rel-0-5-1 fred-legacy-stable-tmp 3250 3250 | |
#r7134 legacy branch born from @7134 | |
init_branch branches/legacy/stable fred-legacy-stable | |
change_parent fred-legacy-stable fred-legacy-stable-tmp 7134 7134 | |
init_branch branches/legacy/unstable fred-legacy-unstable | |
change_parent fred-legacy-unstable fred-legacy-unstable-tmp 7134 7134 | |
## apply all changes | |
git filter-branch -f --prune-empty -- --all --not git-svn || exit 1 | |
rm .git/info/grafts | |
touch .git/info/grafts | |
## split it out | |
cd .. | |
rm -fr fred-legacy | |
mkdir fred-legacy | |
cd fred-legacy | |
git init | |
echo "ref: refs/heads/nonexist" > .git/HEAD | |
git fetch ../freenet fred-legacy-stable:stable | |
git fetch ../freenet fred-legacy-unstable:unstable | |
cd ../freenet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build | |
build-test | |
dist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment