r3014 - packages/opencpn/tarballs
hamish-guest at alioth.debian.org
hamish-guest at alioth.debian.org
Fri Jun 17 05:16:21 UTC 2011
Author: hamish-guest
Date: 2011-06-17 05:16:20 +0000 (Fri, 17 Jun 2011)
New Revision: 3014
Added:
packages/opencpn/tarballs/get_latest_from_git.sh
Log:
add helper script
Added: packages/opencpn/tarballs/get_latest_from_git.sh
===================================================================
--- packages/opencpn/tarballs/get_latest_from_git.sh (rev 0)
+++ packages/opencpn/tarballs/get_latest_from_git.sh 2011-06-17 05:16:20 UTC (rev 3014)
@@ -0,0 +1,22 @@
+#!/bin/sh
+# grab upstream source and strip for .orig.tar.gz
+# H.Bowman 17 June 2011, released to the public domain
+
+git clone git://opencpn.git.sourceforge.net/gitroot/opencpn/opencpn
+
+rm -rf opencpn/.git/
+rm -rf opencpn/buildosx/
+rm -rf opencpn/buildwin/
+rm -rf opencpn/wxWidgets/
+
+VERS=`cat opencpn/VERSION.cmake | cut -f2 -d'"' | head -n 3 | \
+ tr '\n' '.' | sed -e 's/\.$//'`
+
+mv opencpn/ opencpn-$VERS
+
+
+tar czf opencpn_$VERS.orig.tar.gz opencpn-$VERS/
+rm -rf opencpn-$VERS/
+
+
+
Property changes on: packages/opencpn/tarballs/get_latest_from_git.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/x-sh
Added: svn:eol-style
+ native
More information about the Pkg-grass-devel
mailing list