summaryrefslogtreecommitdiffstats
path: root/scripts/mkrpms
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-15 14:11:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-15 14:11:02 +0000
commit18408afbc7c4c4e67e91cc8a3a61232d6efadfc0 (patch)
treeaee331234100b175c2c0baa4f8b4d2211fd4f824 /scripts/mkrpms
parentReorganized a lot per Jennifer's suggestions. (diff)
downloadrtems-18408afbc7c4c4e67e91cc8a3a61232d6efadfc0.tar.bz2
Ralf Corsepius (corsepiu@faw.uni-ulm.de) submitted these scripts to
help build RPMs.
Diffstat (limited to 'scripts/mkrpms')
-rwxr-xr-xscripts/mkrpms32
1 files changed, 32 insertions, 0 deletions
diff --git a/scripts/mkrpms b/scripts/mkrpms
new file mode 100755
index 0000000000..72e9bae494
--- /dev/null
+++ b/scripts/mkrpms
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+#
+# A simple shell script to build several rpms in a row.
+#
+# Used for testing rtems.spec.in
+#
+
+# Some linux distributions use /usr/src/packages
+# redhat uses /usr/src/redhat
+# others might use /usr/src
+if test -d /usr/src/packages/SPECS;
+then
+dst=/usr/src/packages/SPECS;
+elif test -d /usr/src/redhat/SPECS;
+ then
+dst=/usr/src/redhat/SPECS;
+elif test -d /usr/src/SPECS/;
+then
+dst=/usr/src/SPECS;
+fi
+
+./mkspec pc386 i386-rtems
+rpm -ba $dst/rtems-i386-rtems-pc386.spec
+
+./mkspec gensh1 sh-rtemself
+rpm -ba $dst/rtems-sh-rtemself-gensh1.spec
+
+./mkspec mcp750 powerpc-rtems
+rpm -ba $dst/rtems-powerpc-rtems-mcp750.spec
+
+