[Android Apps and Games] Koetermann:
Hi there,

I have some issues with the script. It doesn't work for me, too.

Hmm, I'm a little confused about that. When I apply the patches manually, the patches have to put in the home directory. Now they have to put in the environment directory. Is this really the right way?

I synchronised a fresh CM10.1 repo, but when I executed the script I got only error messages:

koeter@mann:~/cm10.1$ /bin/bash ./AutoPatch
: Kommando nicht gefunden.
: Kommando nicht gefunden.
: Kommando nicht gefunden.
/build: Datei oder Verzeichnis nicht gefunden1
error: pathspec '' did not match any file(s) known to git.
'rror: unknown switch `
usage: git clean [-d] [-f] [-n] [-q] [-x | -X] [--] <paths>...

-q, --quiet be quiet
-n, --dry-run dry run
-f, --force force
-d remove whole directories
-x remove ignored files, too
-X remove only ignored files

/libcore: Datei oder Verzeichnis nicht gefunden
error: pathspec '' did not match any file(s) known to git.
'rror: unknown switch `
usage: git clean [-d] [-f] [-n] [-q] [-x | -X] [--] <paths>...

-q, --quiet be quiet
-n, --dry-run dry run
-f, --force force
-d remove whole directories
-x remove ignored files, too
-X remove only ignored files

/frameworks/base: Datei oder Verzeichnis nicht gefunden
error: pathspec '' did not match any file(s) known to git.
'rror: unknown switch `
usage: git clean [-d] [-f] [-n] [-q] [-x | -X] [--] <paths>...

-q, --quiet be quiet
-n, --dry-run dry run
-f, --force force
-d remove whole directories
-x remove ignored files, too
-X remove only ignored files

/frameworks/opt/telephony: Datei oder Verzeichnis nicht gefunden
error: pathspec '' did not match any file(s) known to git.
'rror: unknown switch `
usage: git clean [-d] [-f] [-n] [-q] [-x | -X] [--] <paths>...

-q, --quiet be quiet
-n, --dry-run dry run
-f, --force force
-d remove whole directories
-x remove ignored files, too
-X remove only ignored files

/packages/apps/Mms: Datei oder Verzeichnis nicht gefunden
error: pathspec '' did not match any file(s) known to git.
'rror: unknown switch `
usage: git clean [-d] [-f] [-n] [-q] [-x | -X] [--] <paths>...

-q, --quiet be quiet
-n, --dry-run dry run
-f, --force force
-d remove whole directories
-x remove ignored files, too
-X remove only ignored files

: Datei oder Verzeichnis nicht gefunden/cm10.1
' is not a valid name
: Kommando nicht gefunden.
: Kommando nicht gefunden.
Usage: repo sync [<project>...]

main.py: error: no such option: -
/build: Datei oder Verzeichnis nicht gefunden1
fatal: You are on a branch yet to be born
: Kommando nicht gefunden.
/libcore: Datei oder Verzeichnis nicht gefunden
fatal: You are on a branch yet to be born
: Kommando nicht gefunden.
/packages/apps/Mms: Datei oder Verzeichnis nicht gefunden
fatal: You are on a branch yet to be born
: Kommando nicht gefunden.
/frameworks/base: Datei oder Verzeichnis nicht gefunden
fatal: You are on a branch yet to be born
: Kommando nicht gefunden.
/frameworks/opt/telephony: Datei oder Verzeichnis nicht gefunden
fatal: You are on a branch yet to be born
: Kommando nicht gefunden.
: Datei oder Verzeichnis nicht gefunden/cm10.1
: Datei oder Verzeichnis nicht gefundench
: Datei oder Verzeichnis nicht gefunden.patch
: Datei oder Verzeichnis nicht gefundenatch
: Datei oder Verzeichnis nicht gefunden
'atching file '
',e next patch would create the file '
which already exists! Assume -R? [n]

I'm not right really familiar in git-things. But before I executed the script above I set:

koeter@mann:~/cm10.1$ git init

And here's my edited AutoPatch script:

#!/bin/bash -x
#################################
# Written by biglsd	#
# modified by CollegeDev	#
#################################

# EDIT the CWD to your directory where the sources are
CWD="/home/koeter/cm10.1"

# removing previous patch
cd "$CWD/build" ; git checkout . ; git clean -df
cd "$CWD/libcore" ; git checkout . ; git clean -df
cd "$CWD/frameworks/base" ; git checkout . ; git clean -df
cd "$CWD/frameworks/opt/telephony" ; git checkout . ; git clean -df
cd "$CWD/packages/apps/Mms" ; git checkout . ; git clean -df
rm -rf "$CWD/packages/apps/PDroidAgent"
cd "$CWD"
repo abandon pdroid

# applying pdroid patch
repo sync
cd "$CWD/build"; git checkout -b pdroid;
cd "$CWD/libcore"; git checkout -b pdroid;
cd "$CWD/packages/apps/Mms"; git checkout -b pdroid;
cd "$CWD/frameworks/base"; git checkout -b pdroid;
cd "$CWD/frameworks/opt/telephony"; git checkout -b pdroid;
cd "$CWD"
patch -p1 < CM10.1_build.patch
patch -p1 < CM10.1_framework.patch
patch -p1 < CM10.1_libcore.patch
patch -p1 < CM10.1_Mms.patch
patch -p1 < CM10.1_PDAgent.patch

What do I have to do, to make this script working?

And what is the difference between thePatches 1.57 and 1.57.1? Is it only the integrated AutoPatch script?

Thanks and regards

Koetermann

---------- Post added at 11:30 AM ---------- Previous post was at 11:06 AM ----------

You have to add TheMuppets repo in your roomservice.xml. Have a look here, please:

http://xdaforums.com/showpost.php?p=35457651&postcount=1

Regards

Koetermann