[DebianGIS-dev] CVS Update: musmap create_package.sh
mparent-guest at haydn.debian.org
mparent-guest at haydn.debian.org
Mon Jan 16 22:47:41 UTC 2006
User: mparent-guest
Date: 06/01/16 22:47:41
Modified: . create_package.sh
Log:
New package creation script with .diff file
Revision Changes Path
1.2 +32 -5 musmap/create_package.sh
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/musmap/create_package.sh?annotate=1.2&cvsroot=
CVSWeb: View this file: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/musmap/create_package.sh?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=
CVSWeb: Diff to previous version: http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/pkg-grass/musmap/create_package.sh.diff?r1=1.2&r2=1.1&cvsroot=
-----------------------------------
Index: create_package.sh
===================================================================
RCS file: /cvsroot/pkg-grass/musmap/create_package.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- create_package.sh 12 Jan 2006 20:12:26 -0000 1.1
+++ create_package.sh 16 Jan 2006 22:47:41 -0000 1.2
@@ -1,7 +1,34 @@
#!/bin/sh
-cd ../../musmap/musmap
-ln -s ../../pkg-grass/musmap/debian .
+cd `dirname "$0"`
+#Musmap version
+MUSMAP_VERSION=$(expr "`dpkg-parsechangelog 2>/dev/null | grep 'Version:' `" : 'Version:\ *\(.*\)*')
+#Musmap debian package source
+MUSMAP_PKG_SOURCE=`pwd`
+#Musmap source
+MUSMAP_SOURCE=$MUSMAP_PKG_SOURCE/../../musmap/musmap
+
+#Original source
+MUSMAP_ORIG_TARGET="$MUSMAP_PKG_SOURCE/musmap-$MUSMAP_VERSION.orig"
+mkdir -v $MUSMAP_ORIG_TARGET
+cp -R $MUSMAP_SOURCE/* $MUSMAP_ORIG_TARGET
+#== cleaning
+find "$MUSMAP_ORIG_TARGET" -name CVS | xargs --no-run-if-empty rm -fr
+find "$MUSMAP_ORIG_TARGET" -name .cvsignore | xargs --no-run-if-empty rm -f
+find "$MUSMAP_ORIG_TARGET" -name "*~" | xargs --no-run-if-empty rm -f
+
+#Patched target
+MUSMAP_TARGET="$MUSMAP_PKG_SOURCE/musmap-$MUSMAP_VERSION"
+mkdir -v $MUSMAP_TARGET
+cp -R $MUSMAP_ORIG_TARGET/* $MUSMAP_TARGET
+
+#Debian-specific
+cp -R $MUSMAP_PKG_SOURCE/debian $MUSMAP_TARGET
+find "$MUSMAP_TARGET/debian" -name CVS | xargs --no-run-if-empty rm -fr
+find "$MUSMAP_TARGET/debian" -name .cvsignore | xargs --no-run-if-empty rm -f
+find "$MUSMAP_TARGET/debian" -name "*~" | xargs --no-run-if-empty rm -f
+
+cd "$MUSMAP_TARGET"
yada rebuild
-./debian/rules build
-#as root
-su root ./debian/rules binary clean
+su root "dpkg-buildpackage -sa -tc"
+#rm -R -f "$MUSMAP_ORIG_TARGET"
+#rm -R -f "$MUSMAP_TARGET"
More information about the Pkg-grass-devel
mailing list