Skip to Content.
Sympa Menu

perfsonar-dev - perfsonar: r5414 - in branches/new-structure-with-base2/ps-mdm-ls/packaging: . rpm

Subject: perfsonar development work

List archive

perfsonar: r5414 - in branches/new-structure-with-base2/ps-mdm-ls/packaging: . rpm


Chronological Thread 
  • From:
  • To:
  • Subject: perfsonar: r5414 - in branches/new-structure-with-base2/ps-mdm-ls/packaging: . rpm
  • Date: Mon, 14 Dec 2009 09:56:01 -0500

Author: trzaszcz
Date: 2009-12-14 09:56:01 -0500 (Mon, 14 Dec 2009)
New Revision: 5414

Added:

branches/new-structure-with-base2/ps-mdm-ls/packaging/rpm/perfsonar-java-xml-ls.specs
Removed:
branches/new-structure-with-base2/ps-mdm-ls/packaging/rpm/ps-mdm-ls.specs
Modified:
branches/new-structure-with-base2/ps-mdm-ls/packaging/package.sh
Log:
rpm building enhancement

Modified: branches/new-structure-with-base2/ps-mdm-ls/packaging/package.sh
===================================================================
--- branches/new-structure-with-base2/ps-mdm-ls/packaging/package.sh
2009-12-14 13:56:44 UTC (rev 5413)
+++ branches/new-structure-with-base2/ps-mdm-ls/packaging/package.sh
2009-12-14 14:56:01 UTC (rev 5414)
@@ -1,20 +1,9 @@

-#
-# Packaging script for XML LS
-# Author: Maciej Glowiak, 2008
-# $Id: package.sh 5241 2009-07-30 09:54:40Z trzaszcz $
-#
-
#!/bin/sh

. package.conf


-#
-# -----------------------------------------------------------------------
-# Do WAR file
-# -----------------------------------------------------------------------
-#
do_clean() {

echo "[ ] CLEAN UP"
@@ -75,6 +64,31 @@
}


+do_rpm_struct() {
+ echo "[ ] Do RPM struct"
+
+ rm -rfv ../packaging/temp/rpm
+ mkdir -pv
../packaging/temp/rpm/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS,TMP}
+
+ echo "[ ] Create symbolic link and create tar archive"
+
+ currdir=$(pwd)
+ cd temp/webapps
+ LSVER=$(ls | grep perfsonar-java-xml-ls)
+ ln -sv $LSVER perfsonar-java-xml-ls-x
+ echo "[ ] TAR"
+ tar -czhf perfsonar-java-xml-ls-$VERSION.tar.gz perfsonar-java-xml-ls-x
+ cd ..
+
+ echo "[ ] Copy tarball into SOURCES"
+ pwd
+ mv -v webapps/perfsonar-java-xml-ls-$VERSION.tar.gz rpm/rpmbuild/SOURCES
+
+ echo "[ ] Copy RPM .specs file"
+ cp -v ../rpm/perfsonar-java-xml-ls.specs rpm/rpmbuild
+}
+
+
case "$1" in
clean)
do_clean
@@ -89,6 +103,7 @@
clean_after_packaging
;;
rpm)
+ #do_structure
do_rpm_struct
;;
all)

Added:
branches/new-structure-with-base2/ps-mdm-ls/packaging/rpm/perfsonar-java-xml-ls.specs


Property changes on:
branches/new-structure-with-base2/ps-mdm-ls/packaging/rpm/perfsonar-java-xml-ls.specs
___________________________________________________________________
Name: svn:executable
+ *

Deleted:
branches/new-structure-with-base2/ps-mdm-ls/packaging/rpm/ps-mdm-ls.specs



  • perfsonar: r5414 - in branches/new-structure-with-base2/ps-mdm-ls/packaging: . rpm, svnlog, 12/14/2009

Archive powered by MHonArc 2.6.16.

Top of Page