From 0b7dd14d1f87e2ecef7aacc39fe4189667ed4fdf Mon Sep 17 00:00:00 2001 From: Boulder Sprinters Date: Fri, 9 Mar 2007 17:43:46 +0000 Subject: boulder-oracle-sprint: Merged to trunk [4692]. git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@4695 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- scripts/rpm-install.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/rpm-install.sh (limited to 'scripts') diff --git a/scripts/rpm-install.sh b/scripts/rpm-install.sh new file mode 100644 index 0000000000..07a087c447 --- /dev/null +++ b/scripts/rpm-install.sh @@ -0,0 +1,19 @@ +#! /bin/sh +# +# this file is *inserted* into the install section of the generated +# spec file +# + +# this is, what dist.py normally does +python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES" + +for i in `cat INSTALLED_FILES`; do + if [ -f ${RPM_BUILD_ROOT}/$i ]; then + echo $i >>FILES + fi + if [ -d ${RPM_BUILD_ROOT}/$i ]; then + echo %dir $i >>DIRS + fi +done + +cat DIRS FILES >INSTALLED_FILES -- cgit v1.3