summaryrefslogtreecommitdiff
path: root/examples/redhat/makerpms.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redhat/makerpms.sh')
-rwxr-xr-xexamples/redhat/makerpms.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/redhat/makerpms.sh b/examples/redhat/makerpms.sh
index ee1e5f07291..44a5838b52e 100755
--- a/examples/redhat/makerpms.sh
+++ b/examples/redhat/makerpms.sh
@@ -1,11 +1,13 @@
#!/bin/sh
# First we move all our gear into place - a noble move!
-RPMROOT=$HOME/rpmdir
-cp -a *.spec $RPMROOT/SPECS
+RPMDIR=/usr/src/redhat
+cp -a *.spec $RPMDIR/SPECS
cp -a *.patch smb.* samba.log $RPMDIR/SOURCES
-cp -a ../../../samba-1.9.16p11.tar.gz $RPMROOT/SOURCES
-cd $RPMROOT/SPECS
+# cp -a ../../../samba-1.9.16p11.tar.gz $RPMDIR/SOURCES
+cd $RPMDIR/SOURCES
+rm -rf samba-1.9.16p11
+cd $RPMDIR/SPECS
rpm -ba -v samba-1.9.16p11.spec
-cd ..
-mkdir $RPMDIR/distrib
-cp -avf RPMS SRPMS distrib
+#cd ..
+#mkdir $RPMDIR/distrib
+#cp -avf RPMS SRPMS distrib