summaryrefslogtreecommitdiff
path: root/scripts/rpm-install.sh
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-02-13 16:15:10 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-02-13 16:15:10 +0000
commit649423e81c07c1db654c24f6779068e1e9823002 (patch)
tree1a50b6c98c1803951f9f92a5d101271147dfe72f /scripts/rpm-install.sh
parentaf908e2e8de7d2de216cdd6634520823e9041214 (diff)
newforms-admin: Merged to [4502]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4503 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'scripts/rpm-install.sh')
-rw-r--r--scripts/rpm-install.sh19
1 files changed, 19 insertions, 0 deletions
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