commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r980711 - /commons/proper/daemon/trunk/src/native/unix/support/mkdist.sh
Date Fri, 30 Jul 2010 09:55:59 GMT
Author: mturk
Date: Fri Jul 30 09:55:59 2010
New Revision: 980711

URL: http://svn.apache.org/viewvc?rev=980711&view=rev
Log:
Add helper packaging util for native binaries

Added:
    commons/proper/daemon/trunk/src/native/unix/support/mkdist.sh   (with props)

Added: commons/proper/daemon/trunk/src/native/unix/support/mkdist.sh
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/unix/support/mkdist.sh?rev=980711&view=auto
==============================================================================
--- commons/proper/daemon/trunk/src/native/unix/support/mkdist.sh (added)
+++ commons/proper/daemon/trunk/src/native/unix/support/mkdist.sh Fri Jul 30 09:55:59 2010
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+topdir=.
+major_sed='/#define.*JSVC_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'
+minor_sed='/#define.*JSVC_MINOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'
+patch_sed='/#define.*JSVC_PATCH_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p'
+vmajor="`sed -n $major_sed $topdir/native/version.h`"
+vminor="`sed -n $minor_sed $topdir/native/version.h`"
+vpatch="`sed -n $patch_sed $topdir/native/version.h`"
+verdst="commons-daemon-$vmajor.$vminor.$vpatch"
+extfiles="LICENSE.txt NOTICE.txt RELEASE-NOTES.txt"
+for i in $extfiles
+do
+  cp ../../../$i .
+done
+tar cfz $verdst.tar.gz $extfiles
+md5sum --binary $verdst.tar.gz > $verdst.tar.gz.md5
+sha1sum --binary $verdst.tar.gz > $verdst.tar.gz.sha1
+rm $extfiles

Propchange: commons/proper/daemon/trunk/src/native/unix/support/mkdist.sh
------------------------------------------------------------------------------
    svn:eol-style = LF

Propchange: commons/proper/daemon/trunk/src/native/unix/support/mkdist.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message