[med-svn] r10449 - trunk/packages/king/trunk/debian

Andreas Tille tille at alioth.debian.org
Fri Apr 20 07:20:09 UTC 2012


Author: tille
Date: 2012-04-20 07:20:09 +0000 (Fri, 20 Apr 2012)
New Revision: 10449

Modified:
   trunk/packages/king/trunk/debian/get-orig-source
Log:
Document how to obtain molikin.zip (as long as it is missing in upstream tarball)


Modified: trunk/packages/king/trunk/debian/get-orig-source
===================================================================
--- trunk/packages/king/trunk/debian/get-orig-source	2012-04-20 04:26:04 UTC (rev 10448)
+++ trunk/packages/king/trunk/debian/get-orig-source	2012-04-20 07:20:09 UTC (rev 10449)
@@ -18,7 +18,7 @@
 
 mkdir -p ../tarballs/$TARDIR
 cd ../tarballs/$TARDIR
-unzip ../../${NAME}.${VERSION}.src.zip
+unzip -q ../../${NAME}.${VERSION}.src.zip
 
 # Remove useless JARs
 find . -name "*.jar" -delete
@@ -39,6 +39,26 @@
 # there is only no point in keeping copies of old versions of the code
 rm -rf king-*-src/1.x_src
 
+# as king-*-src/BUILD.html suggests you should de-versionify the single components
+# by copying the directories to generic names.  This turns out to be a burden inside
+# debian/rules and thus we simply do it here in the orig-tar generation step
+for dir in `find . -mindepth 1 -maxdepth 1 -type d -name "[a-z]*-*-src"` ; do
+  ln -s $dir `echo $dir | sed 's/-[^-]\+-src$//'`
+done
+
+if [ ! -d molikin ] ; then
+  if [ ! -f ../molikin.zip ] ; then
+    cat <<EOT
+The downloaded ZIP file is missing the molikin component.
+It was sended by the authors to Andreas Tille <tille at debian.org>.
+If you want to build the original source on your own, ask Andreas
+for a copy of molikin.zip and put it into your tarballs directory.
+EOT
+    exit 1
+  fi
+  unzip -q ../molikin.zip
+fi
+
 cd ..
 GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -czf "$NAME"_"$VERSION".orig.tar.gz "${TARDIR}"
 rm -rf "$TARDIR"




More information about the debian-med-commit mailing list