root/django/branches/full-history/scripts/rpm-install.sh
| Revision 4732, 416 bytes (checked in by utrebec, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | #! /bin/sh |
| 2 | # |
| 3 | # this file is *inserted* into the install section of the generated |
| 4 | # spec file |
| 5 | # |
| 6 | |
| 7 | # this is, what dist.py normally does |
| 8 | python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES" |
| 9 | |
| 10 | for i in `cat INSTALLED_FILES`; do |
| 11 | if [ -f ${RPM_BUILD_ROOT}/$i ]; then |
| 12 | echo $i >>FILES |
| 13 | fi |
| 14 | if [ -d ${RPM_BUILD_ROOT}/$i ]; then |
| 15 | echo %dir $i >>DIRS |
| 16 | fi |
| 17 | done |
| 18 | |
| 19 | cat DIRS FILES >INSTALLED_FILES |
Note: See TracBrowser for help on using the browser.
