Hi Brian, Thanks for the reply. should have checked the --help option like with configure scripts.I got the code from a tarball that was downloaded from git probably.I'll try directory path as you have suggested. Regards,Mahesh
> From: brian.h...@samsung.com > To: maheshgaw...@outlook.com; webkit-help@lists.webkit.org > Subject: RE: [webkit-help] running check-webkit-style on webkit-gtk > Date: Tue, 17 Sep 2013 13:28:21 +0100 > > Hi Mahesh, > > With most unix scripts there is a "--help" optional flag implemented that > will give you a clue how use the tool in question. Check-webkit-style is no > different. > > $ Tools/Scripts/check-webkit-style --help > Usage: check-webkit-style [--help] [options] [path1] [path2] ... > > Overview: > Check coding style according to WebKit style guidelines: > > http://webkit.org/coding/coding-style.html > > Path arguments can be files and directories. If neither a git commit nor > paths are passed, then all changes in your source control working > directory > are checked. > > > This ^ is the clue to your error. Since you didn't pass an argument, it > attempted to check all the changes in your source control working directory, > but it failed because it could not determine what SCM (Source Control > Management) system you are using. > > Where did you get the code from? Git, SVN, a tarball or somewhere else? > > Regards > Brian > > > -----Original Message----- > > From: webkit-help-boun...@lists.webkit.org [mailto:webkit-help- > > boun...@lists.webkit.org] On Behalf Of mahesh gawali > > Sent: 17 September 2013 12:54 > > To: webkit-help@lists.webkit.org > > Subject: [webkit-help] running check-webkit-style on webkit-gtk > > > > Hi All, > > > > > > I am trying to run check-webkit-style on webkit-gtk build for coding > > guideline conformance. > > > > > > I am getting following error: > > > > > > [root@localhost Scripts]# ./check-webkit-style Traceback (most recent > > call last): > > File "./check-webkit-style", line 48, in <module> > > sys.exit(CheckWebKitStyle().main()) > > File "/home/Webkit-GTK/Tools/Scripts/webkitpy/style/main.py", line > > 127, in main > > host._initialize_scm() > > File "/home/Webkit-GTK/Tools/Scripts/webkitpy/common/host.py", line > > 112, in _initialize_scm > > self._scm = detector.default_scm(patch_directories) > > File "/home/Webkit- > > GTK/Tools/Scripts/webkitpy/common/checkout/scm/detection.py", line 60, > > in default_scm > > raise Exception("FATAL: Failed to determine the SCM system for > > either %s or %s" % (cwd, script_directory)) > > Exception: FATAL: Failed to determine the SCM system for either > > /home/Webkit-GTK/Tools/Scripts or /home/Webkit- > > GTK/Tools/Scripts/webkitpy/common/checkout/scm > > > > > > > > > > Also, Is it possible to point the script to a specific directory for > > coding style checks > > > > >
_______________________________________________ webkit-help mailing list webkit-help@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-help