perfsonar-dev - perfsonar: r5416 - branches/new-structure-with-base2/ps-mdm-ls/packaging
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r5416 - branches/new-structure-with-base2/ps-mdm-ls/packaging
- Date: Tue, 15 Dec 2009 06:20:08 -0500
Author: trzaszcz
Date: 2009-12-15 06:20:07 -0500 (Tue, 15 Dec 2009)
New Revision: 5416
Modified:
branches/new-structure-with-base2/ps-mdm-ls/packaging/package.sh
Log:
rpm packaging 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-15 10:31:56 UTC (rev 5415)
+++ branches/new-structure-with-base2/ps-mdm-ls/packaging/package.sh
2009-12-15 11:20:07 UTC (rev 5416)
@@ -66,19 +66,21 @@
do_rpm_struct() {
echo "[ ] Do RPM struct"
+
+ cd packaging
- rm -rfv ../packaging/temp/rpm
- mkdir ../packaging/temp/rpm
- mkdir -pv
../packaging/temp/rpm/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS,TMP}
+ rm -rfv temp/rpm
+ mkdir temp/rpm
+ mkdir -pv 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
+ ln -sv $LSVER perfsonar-java-xml-ls-$VERSION
echo "[ ] TAR"
- tar -czhf perfsonar-java-xml-ls-$VERSION.tar.gz perfsonar-java-xml-ls-x
+ tar -czhf perfsonar-java-xml-ls-$VERSION.tar.gz
perfsonar-java-xml-ls-$VERSION
cd ..
echo "[ ] Copy tarball into SOURCES"
@@ -90,7 +92,7 @@
}
create_rpm_package() {
- cd packaging/temp/rpm
+ cd rpm
sudo rpmbuild -bb rpmbuild/perfsonar-java-xml-ls.specs
}
- perfsonar: r5416 - branches/new-structure-with-base2/ps-mdm-ls/packaging, svnlog, 12/15/2009
Archive powered by MHonArc 2.6.16.