Skip to content

Commit

Permalink
Update install instructions to include pactester. Fix Makefiles for w…
Browse files Browse the repository at this point in the history
…indows.
  • Loading branch information
manugarg committed May 10, 2008
1 parent 6a17e79 commit 0f50c54
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 18 deletions.
32 changes: 19 additions & 13 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ need to get SpiderMonkey JS engine first.
=> make js
=> sudo make install-js

* pacparser C library:
* pacparser C library and pactester:
----------------------------------
Once you have SpiderMonkey JS engine, compiling and installing pacparser is
as easy as running following:
Expand All @@ -50,25 +50,31 @@ Binary Distribution:
Compiled packages for win32 systems can be downloaded from:
http://code.google.com/p/pacparser/downloads/list

* C Library:
---------
To install pacparser C library, download package pacparser-v.v.v-win32.zip and
extract it somewhere on your machine. It will create a directory -
"pacparser-v.v.v". Copy all the DLLs in the directory to somewhere on the
system where system can find them while executing your program (application's
executable's location will do fine for this purpose) or simply add pacparser
directory to system path. You'll need libpacparser.a and pacparser.lib to link
in pacparser on mingw compiler tools and Visual Studio respectively. Here are
the detailed instructions to link in pacparser on Visual Studio:
* C Library and pactester:
-----------------------
To install pacparser C library and pactester, download package
"pacparser-v.v.v-win32.zip" and extract it somewhere on your machine. It will
create a directory - "pacparser-v.v.v". Copy all the DLLs and pactester.exe
binary to somewhere on the system where system can find them (e.g. to the
directories that are already in system path like C:\Windows) or simply add
pacparser directory to the system path.

You'll need libpacparser.a and pacparser.lib to link in pacparser on mingw
compiler tools and Visual Studio respectively. Here are the detailed
instructions to link in pacparser on Visual Studio:
http://code.google.com/p/pacparser/wiki/LinkingOnVisualStudio.

* Python Module
-------------
To install pacparser python module (available only for Python 2.5 right now),
download package pacparser-python25-v.v.v-win32.zip and extract it somewhere
on your system. On command prompt (cmd), change directory to
pacparser-python25-v.v.v-win32 and execute "setup.py install". If it fails for
some reason, simply copy all the files from this directory to
pacparser-python25-v.v.v-win32 and execute "setup.py install":

C:\temp> cd pacparser-python25-1.0.5-win32
C:\temp\pacparser-python25-1.0.5-win32> setup.py install

If it fails for some reason, simply copy all the files from this directory to
C:\Python25\Lib\site-packages\pacparser and you are done.

Compiling from Source Code:
Expand Down
10 changes: 5 additions & 5 deletions Makefile.win32
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ dist: pacparser.dll js3250.dll nspr4.dll pactester
xcopy *.dll dist
if exist libpacparser.a xcopy libpacparser.a dist
if exist pacparser.lib xcopy pacparser.lib dist
if exist pactester.exe xcopy pactester.exe dist
if exist README xcopy README dist
if exist README.win32 xcopy README.win32 dist
if exist COPYING xcopy COPYING dist
if exist INSTALL xcopy INSTALL dist
copy pactester.exe dist
copy README dist
copy README.win32 dist
copy COPYING dist
copy INSTALL dist
mkdir dist\docs
if exist docs\html xcopy docs\html dist\docs

Expand Down
4 changes: 4 additions & 0 deletions pymod/Makefile.win32
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ dist: _pacparser.pyd __init__.py
copy _pacparser.pyd dist
copy ..\js3250.dll dist
copy ..\nspr4.dll dist
copy ..\COPYING dist
copy ..\README dist
copy ..\README.win32 dist
copy ..\INSTALL dist
xcopy *.py dist

clean:
Expand Down

0 comments on commit 0f50c54

Please sign in to comment.