root/libcommonDjango/Makefile

Revision 8014, 0.7 kB (checked in by fredz, 2 months ago)

*** empty log message ***

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 #CRADO et moi je rajoute un truc pire encore
2 install:
3         PYTHONDIR=`python -V 2>&1 | sed -e 's/Python /python/g' -e 's/\.[0-9]*$$//g'` ; \
4         DJANGODIR=/var/lib/python-support/$$PYTHONDIR ; \
5         mkdir -p $$DJANGODIR ; \
6         rm -rf build ; \
7         if [ -d $$DJANGODIR ]; then \
8                 python setup.py install --install-purelib=$$DJANGODIR --install-data=$$DJANGODIR --install-platlib=$$DJANGODIR --install-scripts=$$DJANGODIR ; \
9                 if [ -d /usr/lib/$$PYTHONDIR/site-packages/django ]; \
10                 then \
11                         ln -sf $$DJANGODIR/django/pimentech /usr/lib/$$PYTHONDIR/site-packages/django ; \
12                 fi; \
13                 if [ ! -f $$DJANGODIR/django/__init__.py ] ; \
14                 then \
15                         touch $$DJANGODIR/django/__init__.py ; \
16                 fi; \
17         else \
18                 echo "pas de /var/lib/python-support/" ; \
19         fi
20         /etc/init.d/apache2 reload             
Note: See TracBrowser for help on using the browser.