Skip to content

Commit

Permalink
Missed this file.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.participatoryculture.org/svn/dtv/tags/Democracy-Player-0.9.2.2@3835 bce20531-a64c-4166-8316-56baf4a01729

Original sha1: ab8cc7b302fccae3313b1dad294c54670162b24b
  • Loading branch information
Chris Lahey committed Dec 11, 2006
1 parent 0f35839 commit 65bfd86
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions resources/tv/buildscripts/fc6
@@ -0,0 +1,39 @@
#!/bin/bash

#Make directory structure for easy upload
mkdir $2$3
mkdir $2$3/src
mkdir $2$3/fc6

#Make tarball and copy it into directory
svn co https://svn.participatoryculture.org/svn/dtv/trunk/resources/
resources/tv/maketarball $2$3
cp Democracy-$2$3.tar.gz $2$3/src/

#Get the spec
svn cat https://svn.participatoryculture.org/svn/dtv/tags/Democracy-Player-$2/resources/tv/Democracy.spec > Democracy.spec
sudo cp Democracy-$2$3.tar.gz /usr/src/redhat/SOURCES
sudo cp Democracy.spec /usr/src/redhat/SPECS

#build the rpm
sudo rpmbuild --ba /usr/src/redhat/SPECS/Democracy.spec

#Copy the RPMs into the directory
cp /usr/src/redhat/SRPMS/Democracy-$2-1.src.rpm $2$3/fc6/Democracy-$2-1.src.rpm
cp /usr/src/redhat/RPMS/i386/Democracy-$2-1.i386.rpm $2$3/fc6/Democracy-$2-1.i386.rpm
cp /usr/src/redhat/RPMS/i386/Democracy-debuginfo-$2-1.i386.rpm $2$3/fc6/Democracy-debuginfo-$2-1.i386.rpm

#copy Directory onto PCF2 user's home directory
echo "Press enter to upload files..."
read i

scp -r $2$3 $1@pcf2.osuosl.org:.

#File Cleanup
echo "Cleaning up files..."
rm -rf Democracy-$2$3.tar.gz
rm -rf resources/
rm -f Democracy*
sudo rm -rf /usr/src/redhat/SRPMS/Democracy-$2-1.src.rpm
sudo rm -rf /usr/src/redhat/RPMS/i386/Democracy-$2-1.i386.rpm
sudo rm -rf /usr/src/redhat/RPMS/i386/Democracy-debuginfo-$2-1.i386.rpm

0 comments on commit 65bfd86

Please sign in to comment.