[Pkg-ocaml-maint-commits] [SCM] Debian packaging for coccinelle branch, master, updated. debian/0.1.6.deb+a-3-1-g130ce66
Eugeniy Meshcheryakov
eugen at debian.org
Thu Apr 16 18:23:02 UTC 2009
The following commit has been merged in the master branch:
commit 130ce6681bd8803ff3962df9318adef300928040
Author: Eugeniy Meshcheryakov <eugen at debian.org>
Date: Thu Apr 16 20:22:42 2009 +0200
update for new release
diff --git a/debian/repack.sh b/debian/repack.sh
index dac1907..a76539b 100644
--- a/debian/repack.sh
+++ b/debian/repack.sh
@@ -4,7 +4,8 @@ set -e
cleanup()
{
- make -C "$TDIR/"*/ clean -k
+ make -C "$ORIGDIR/" clean -k || true
+ make -C "$ORIGDIR/" distclean -k || true
while read line
do
if echo "$line" | grep -q "^#"
@@ -12,31 +13,21 @@ cleanup()
continue
fi
echo "RM: $line"
- rm -r "$TDIR/"*"/$line"
+ rm -r "$ORIGDIR/$line"
done <<END
# provided by the pycaml package
pycaml/
# provided by the menhir package
menhirlib/
-# docs without source
-docs/SmPL-ver2-tutorial-ols07.pdf
-docs/SmPL-with-grammar-ercim-evos06.pdf
+# provided by the libsexplib-camlp4-dev package
+ocamlsexp/
# generated docs
docs/options.pdf
-# FIXME this is probably source...
-docs/semantic-patches-for-collateral-evolutions.ppt
-docs/semantic-patches-talk-ols07.odp
-docs/semantic-patches-talk-ols07.ppt
-# symlinks made by configure
-python/pycocci.ml
-python/pycocci_aux.ml
-python/coccilib/output.py
END
# TODO do something about globals/config.ml
# remove some junk and autogenerated files
- find "$TDIR"/*/ -name .depend -print -exec rm "{}" \;
- find "$TDIR"/*/ -name .subdirs -print -exec rm "{}" \;
- find "$TDIR"/*/ -name .\#\* -print -exec rm "{}" \;
+ find "$ORIGDIR/" -name .depend -print -exec rm "{}" \;
+ find "$ORIGDIR/" -name .subdirs -print -exec rm "{}" \;
}
if test ! $# = 3; then exit 1; fi
@@ -47,28 +38,10 @@ symlink="$3"
tarball=`readlink "$symlink"`
ORIGDIR="../coccinelle-${new_version}"
-TDIR="$ORIGDIR/tmp"
-
-rm "$symlink"
-# uscan unpacks orig tarball, remove it
-rm -rf "$ORIGDIR"
-
-# move origninal tarball into subdirectory
-mkdir "$ORIGDIR"
-mv "../$tarball" "$ORIGDIR"
-
-# unpack orig tarball into a tmp directory
-mkdir "$TDIR"
-tar -xzC "$TDIR" -f "$ORIGDIR/$tarball"
cleanup
# repack the source
-rm "$ORIGDIR/$tarball"
-GZIP=-9 tar -czC "$TDIR" -f "$ORIGDIR/$tarball" .
-rm -rf "$TDIR"
-
-GZIP=-9 tar -czC ../ -f "../coccinelle-${new_version}.tar.gz" "coccinelle-${new_version}"
+rm "$symlink"
+GZIP=-9 tar -czC ../ -f "../coccinelle_${new_version}.orig.tar.gz" "coccinelle-${new_version}"
rm -rf "$ORIGDIR"
-
-uupdate -v "$new_version" "../coccinelle-${new_version}.tar.gz"
--
Debian packaging for coccinelle
More information about the Pkg-ocaml-maint-commits
mailing list