Page MenuHomeHEPForge

No OneTemporary

Size
11 KB
Referenced Files
None
Subscribers
None
Index: utils/tags/utils-00-00-01/rootarch.sh
===================================================================
--- utils/tags/utils-00-00-01/rootarch.sh (revision 0)
+++ utils/tags/utils-00-00-01/rootarch.sh (revision 595)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+if [ -e $ROOTSYS/bin/root-config ]; then
+ m64=`root-config --cflags | grep m64`
+ if [ "$m64" != "" ]; then
+ echo "-m64"
+ else
+ echo "-m32"
+ fi
+fi
+
+
Property changes on: utils/tags/utils-00-00-01/rootarch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: utils/tags/utils-00-00-01/gfortran.sh
===================================================================
--- utils/tags/utils-00-00-01/gfortran.sh (revision 0)
+++ utils/tags/utils-00-00-01/gfortran.sh (revision 595)
@@ -0,0 +1,8 @@
+#!/bin/csh -f
+
+if ( $?ARCH ) then
+ set gf = `gfortran $ARCH -print-file-name=libgfortran.a`
+ echo "-L${gf:h} -lgfortran"
+endif
+
+
Property changes on: utils/tags/utils-00-00-01/gfortran.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: utils/tags/utils-00-00-01/update.sh
===================================================================
--- utils/tags/utils-00-00-01/update.sh (revision 0)
+++ utils/tags/utils-00-00-01/update.sh (revision 595)
@@ -0,0 +1,73 @@
+#!/bin/csh
+
+set IN = $PWD
+
+set COMMENT = ""
+
+while ( $#argv > 0 )
+ if ( "$1" == "-m" ) then
+ shift
+ if ( $#argv > 0 ) then
+ set COMMENT = "$1"
+ else
+ echo "no version comment"
+ exit 1
+ endif
+ endif
+ shift
+end
+
+if ( "$COMMENT" == "" ) then
+ echo "no version comment"
+ exit 1
+endif
+
+
+
+if ( -e version.dat ) then
+ set VERSION = `cat version.dat`
+ echo old version $VERSION
+ set NEWVERSION = `increment -t $VERSION`
+ set NEWSVNVERSION = `increment -s $VERSION`
+ echo new version $NEWVERSION
+ echo $NEWVERSION > version.dat
+else
+ if ( -e configure.ac ) then
+ set VERSION = `grep AC_INIT configure.ac | sed 's/.*,\(.*\),.*@.*/\1/'`
+ echo old version $VERSION
+ set NEWVERSION = `increment -t $VERSION`
+ set NEWSVNVERSION = `increment -s $VERSION`
+ echo new version $NEWVERSION
+ cp configure.ac{,-}
+ cat configure.ac- | sed "s/$VERSION/$NEWVERSION/" > configure.ac
+ diff configure.ac{,-}
+ autoreconf --force
+ if ( $status != 0 ) then
+ echo "autoreconf failed"
+ cd $IN
+ exit
+ endif
+ else
+ echo "no version information"
+ cd $IN
+ exit
+ endif
+endif
+
+
+
+# now commit the version with the new version number
+
+svn commit -m "$COMMENT"
+if ( $status != 0 ) then
+ echo "svn commit failed"
+ cd $IN
+ exit 1
+endif
+
+cd $IN
+
+
+
+
+
Property changes on: utils/tags/utils-00-00-01/update.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: utils/tags/utils-00-00-01/freshtag.sh
===================================================================
--- utils/tags/utils-00-00-01/freshtag.sh (revision 0)
+++ utils/tags/utils-00-00-01/freshtag.sh (revision 595)
@@ -0,0 +1,45 @@
+#!/bin/csh
+
+
+set IN = $PWD
+
+set PACKAGE = ""
+
+
+if ( $#argv > 2 ) then
+ set PACKAGE = $1
+ shift
+
+ if ( -d /tmp/$PACKAGE ) then
+ rm -rf /tmp/$PACKAGE
+ endif
+
+ cd /tmp/
+ svn co $SVNROOT/$PACKAGE/trunk $PACKAGE
+ cd $PACKAGE
+
+endif
+
+
+echo updating version
+
+update.sh $*
+if ( $status != 0 ) then
+ cd $IN
+ exit 1
+endif
+
+
+echo updating tag
+
+tag.sh $*
+if ( $status != 0 ) then
+ cd $IN
+ exit 1
+endif
+
+echo preparing tgz file
+
+prepare.sh
+
+cd $IN
\ No newline at end of file
Property changes on: utils/tags/utils-00-00-01/freshtag.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: utils/tags/utils-00-00-01/Makefile
===================================================================
--- utils/tags/utils-00-00-01/Makefile (revision 0)
+++ utils/tags/utils-00-00-01/Makefile (revision 595)
@@ -0,0 +1,11 @@
+
+
+install : version increment
+ cp update.sh prepare.sh tag.sh freshtag.sh version increment ~/bin
+
+
+version : version.cxx
+ g++ -o version version.cxx
+
+increment : version.cxx
+ g++ -o increment version.cxx
\ No newline at end of file
Index: utils/tags/utils-00-00-01/basic-install.sh
===================================================================
--- utils/tags/utils-00-00-01/basic-install.sh (revision 0)
+++ utils/tags/utils-00-00-01/basic-install.sh (revision 595)
@@ -0,0 +1,30 @@
+#!/bin/csh
+
+svn co http://hoppet.hepforge.org/svn/trunk hoppet
+svn co http://applgrid.hepforge.org/svn/applgrid/trunk applgrid
+svn co http://applgrid.hepforge.org/svn/mcfm-6.0/trunk mcfm-6.0
+svn co http://applgrid.hepforge.org/svn/nlojet-4.0.1/trunk nlojet-4.0.1
+svn co http://applgrid.hepforge.org/svn/jetmod/trunk jetmod
+svn co http://applgrid.hepforge.org/svn/lhpdf-1.0.0/trunk lhpdf-1.0.0
+
+
+set base = $PWD
+
+mkdir $base/install
+
+foreach proj ( hoppet applgrid lhpdf-1.0.0 nlojet-4.0.1 jetmod )
+ cd $base/$proj
+ ./configure --prefix=$base/install
+ make
+ make install
+end
+
+cd $base/mcfm-6.0
+make
+
+
+
+
+
+
+
Property changes on: utils/tags/utils-00-00-01/basic-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: utils/tags/utils-00-00-01/setarch.sh
===================================================================
--- utils/tags/utils-00-00-01/setarch.sh (revision 0)
+++ utils/tags/utils-00-00-01/setarch.sh (revision 595)
@@ -0,0 +1,30 @@
+#!/bin/csh -f
+
+# /usr/bin/sys
+
+# exit
+
+
+if ( `uname` == Darwin ) then
+ if ( `uname -p` == powerpc ) then
+ set arch = ppc
+ else
+ if ( `uname -p` == i386 ) then
+ set arch = x86
+ else
+ set arch = unknown
+ endif
+ endif
+
+ set version = `uname -r | sed 's/\..*/0/g' `
+ echo ${arch}_darwin_${version}
+ exit
+else
+ if ( -e /usr/bin/fs ) then
+ fs sysname | awk '{print $4}' | sed "s/'//g"
+ else
+ echo `uname -p`-`uname -s`-`uname -r`
+ endif
+endif
+
+
Property changes on: utils/tags/utils-00-00-01/setarch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: utils/tags/utils-00-00-01/tag.sh
===================================================================
--- utils/tags/utils-00-00-01/tag.sh (revision 0)
+++ utils/tags/utils-00-00-01/tag.sh (revision 595)
@@ -0,0 +1,74 @@
+#!/bin/csh
+
+
+set COMMENT = ""
+
+while ( $#argv > 0 )
+ if ( "$1" == "-m" ) then
+ shift
+ if ( $#argv > 0 ) then
+ set COMMENT = "$1"
+ endif
+ endif
+ shift
+end
+
+if ( "$COMMENT" == "" ) then
+ echo "no version comment"
+ exit 1
+endif
+
+
+set DIR = `grep svn .svn/entries | grep trunk | sed "s_/trunk__" `
+
+if ( $status != 0 ) then
+ echo "not an svn working repository"
+ exit 1
+endif
+
+
+
+set PACKAGE = ${DIR:t}
+
+echo "directory $DIR"
+echo "package $PACKAGE"
+
+
+# get the version number
+
+if ( -e version.dat ) then
+ set TAGVERSION = `cat version.dat`
+else
+ if ( -e configure.ac ) then
+ set TAGVERSION = `grep AC_INIT configure.ac | sed 's/.*,\(.*\),.*@.*/\1/'`
+ else
+ echo "no tag version"
+ exit 1
+ endif
+endif
+
+
+set TAGSVNVERSION = `version -s $TAGVERSION`
+
+# does it exist already?
+
+echo "checking tag $DIR/tags/$PACKAGE-$TAGSVNVERSION "
+
+svn ls $DIR/tags/$PACKAGE-$TAGSVNVERSION >& /dev/null
+
+if ( $status == 0 ) then
+ echo "version already tagged"
+ exit 1
+endif
+
+
+# now tag
+
+svn copy $DIR/{trunk,tags/$PACKAGE-$TAGSVNVERSION} -m "$COMMENT"
+if ( $status != 0 ) then
+ echo "svn tag failed"
+ exit 1
+endif
+
+
+
Property changes on: utils/tags/utils-00-00-01/tag.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: utils/tags/utils-00-00-01/prepare.sh
===================================================================
--- utils/tags/utils-00-00-01/prepare.sh (revision 0)
+++ utils/tags/utils-00-00-01/prepare.sh (revision 595)
@@ -0,0 +1,121 @@
+#!/bin/csh
+
+
+set IN = $PWD
+
+if ( $#argv < 1 ) then
+
+ set DIR = `grep svn .svn/entries | grep trunk | sed "s_/trunk__" `
+ if ( $status != 0 ) then
+ echo "not a working svn repository"
+ exit 1
+ endif
+
+ set PACKAGE = ${DIR:t}
+ if ( -e version.dat ) then
+ set VERSION = `cat version.dat`
+ else if ( -e configure.ac ) then
+ set VERSION = `grep AC_INIT configure.ac | sed 's/.*,\(.*\),.*@.*/\1/'`
+ else
+ echo "directory not versioned"
+ exit 1
+ endif
+
+ set dir = $PACKAGE-$VERSION
+ set SVNVERSION = `version -s $VERSION`
+ set svndir = $DIR/tags/$PACKAGE-$SVNVERSION
+
+else
+
+
+ set PACKAGE = $1
+ set VERSION = ""
+
+ if ( $#argv > 1 ) then
+ set VERSION = `version -t $2`
+ set SVNVERSION = `version -s $2`
+ else
+
+ cd /tmp
+
+ set BASE = $PWD
+
+ echo "checking out $PACKAGE"
+
+ svn export $SVNROOT/$PACKAGE/trunk $PACKAGE >& /dev/null
+
+ if ( $status != 0 ) then
+ echo "could not export $PACKAGE/trunk"
+ cd $IN
+ exit 1
+ endif
+
+ if ( -e $PACKAGE/version.dat ) then
+ set VERSION = `cat $PACKAGE/version.dat`
+ else if ( -e $PACKAGE/configure.ac ) then
+ set VERSION = `grep AC_INIT $PACKAGE/configure.ac | sed 's/.*,\(.*\),.*@.*/\1/'`
+ else
+ echo "directory not versioned"
+ cd $IN
+ exit 1
+ endif
+
+ set SVNVERSION = `version -s $VERSION`
+ mv $PACKAGE{,-$VERSION}
+ cd $BASE
+
+ endif
+
+ set dir = $PACKAGE-$VERSION
+ set svndir = $SVNROOT/$PACKAGE/tags/$PACKAGE-$SVNVERSION
+
+endif
+
+echo svndir $svndir
+
+
+echo "preparing tar archive for $PACKAGE version $VERSION"
+
+
+set FOUND = `ssh login.hepforge.org ls applgrid/downloads/$dir.tgz `
+if ( "$FOUND" == "applgrid/downloads/$dir.tgz" ) then
+ echo "archive already exists"
+ cd $IN
+ exit 1
+endif
+
+
+
+cd /tmp
+
+set BASE = $PWD
+
+
+if !( -e $dir ) then
+
+ svn export $svndir $dir
+
+ if ( $status != 0 ) then
+ echo "svn tag does not exist"
+ cd $IN
+ exit 1
+ endif
+
+endif
+
+
+
+if !( -e $dir/version.dat ) then
+ cd $dir
+ ./configure
+ make dist
+ mv $dir.tar.gz $dir.tgz
+else
+ tar -czf $dir.tgz $dir
+endif
+
+
+scp $dir.tgz login.hepforge.org:applgrid/downloads
+
+cd $IN
+
Property changes on: utils/tags/utils-00-00-01/prepare.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: utils/tags/utils-00-00-01/hoppet.sh
===================================================================
--- utils/tags/utils-00-00-01/hoppet.sh (revision 0)
+++ utils/tags/utils-00-00-01/hoppet.sh (revision 595)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ -e "hoppet-config" ]; then
+ if [ "$1" = "--cxxflags" ]; then
+ hoppet-config --cxxflags
+ elif [ "$1" = "--libs" ]; then
+ hoppet-config --libs
+ elif [ "$1" = "" ]; then
+ echo -DHOPPET
+ else
+ hoppet-config $1
+ fi
+fi
+
+
Property changes on: utils/tags/utils-00-00-01/hoppet.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property

File Metadata

Mime Type
text/x-diff
Expires
Tue, Sep 30, 6:14 AM (7 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6566498
Default Alt Text
(11 KB)

Event Timeline