]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/release/build-rpms
Merge devel code into the trunk.
[tinyos-2.x.git] / tools / release / build-rpms
diff --git a/tools/release/build-rpms b/tools/release/build-rpms
new file mode 100755 (executable)
index 0000000..6a9f46e
--- /dev/null
@@ -0,0 +1,44 @@
+## NOTE: This is for MY rpm setup. Don't expect it to work for you...
+
+# For linux, change to /usr/src/redhat
+# For my cygwin: /cygdrive/c/rpmsrc
+RPMS=/cygdrive/c/rpmsrc
+TINYOS_VERSION=2.0.0beta2
+TINYOS_TOOLS_VERSION=1.2.2
+VM_VERSION=1.1.1Mar2004cvs
+TINYDB_VERSION=1.1.3July2004cvs
+CONTRIB_VERSION=1.1.4Apr2005cvs
+
+echo "*** Building tarballs"
+#rm ../../../*.tar.gz
+sh tinyos.files
+#sh tinyos-tools.files
+#sh contrib/contrib.files
+#sh vm/vm.files
+#sh task-tinydb/task-tinydb.files
+
+HERE=$PWD
+
+echo "*** Removing old srcs and rpms"
+cd $RPMS
+#rm -f $RPMS/SOURCES/*.tar.gz
+#rm -f $RPMS/RPMS/noarch/*.rpm
+#rm -f $RPMS/RPMS/i386/*.rpm
+
+echo "*** Installing new tarballs"
+cd $HERE/../../..
+cp tinyos-$TINYOS_VERSION.tar.gz $RPMS/SOURCES
+#cp tinyos-tools-$TINYOS_TOOLS_VERSION.tar.gz $RPMS/SOURCES
+#cp tinyos-vm-$VM_VERSION.tar.gz $RPMS/SOURCES
+#cp tinyos-contrib-$CONTRIB_VERSION.tar.gz $RPMS/SOURCES
+#cp task-tinydb-$TINYDB_VERSION.tar.gz $RPMS/SOURCES
+
+echo "*** Creating rpms"
+cd $RPMS
+rpmbuild -bb $HERE/tinyos.spec
+#rpmbuild -bb $HERE/tinyos-tools.spec
+#rpmbuild -bb $HERE/task-tinydb/task-tinydb.spec
+#rpmbuild -bb $HERE/contrib/contrib.spec
+#rpmbuild -bb $HERE/vm/vm.spec
+
+