[Pkg-jed-commit] r106 - trunk/packages/jed-extra/debian

Jörg Sommer jo-guest at costa.debian.org
Tue Oct 11 19:15:14 UTC 2005


Author: jo-guest
Date: 2005-10-11 19:15:14 +0000 (Tue, 11 Oct 2005)
New Revision: 106

Modified:
   trunk/packages/jed-extra/debian/build-orig.tar_gz
Log:
* I've noted after G?\195?\188nthers mail, I've never uploaded my version of
  build-orig.tar_gz. Here is it. But we should move it into the rules
  files as target "get-orig-source", because the policy recommends this.


Modified: trunk/packages/jed-extra/debian/build-orig.tar_gz
===================================================================
--- trunk/packages/jed-extra/debian/build-orig.tar_gz	2005-10-11 19:12:25 UTC (rev 105)
+++ trunk/packages/jed-extra/debian/build-orig.tar_gz	2005-10-11 19:15:14 UTC (rev 106)
@@ -2,12 +2,58 @@
 
 set -e
 
-wget http://jedmodes.sf.net/cvs/jedmodes.tgz
-tar -xzf jedmodes.tgz
-mv mode jed-extra-1.2
-# # get some more actual modes
-# cd jed-extra-1.2
-# # TODO: update these
-# wget -O complete.sl 'http://cvs.sourceforge.net/viewcvs.py/jedmodes/mode/complete/complete.sl?view=checkout&rev=HEAD'
-# cd ..
-tar -czf jed-extra_1.2.orig.tar.gz jed-extra-1.2
+if [ $# -eq 0 ]; then
+    echo "usage: $(basename $0) version [cvs-date]   (e.g. \"1.2 2005-07-08\")"
+    exit 1
+fi
+
+VER=$1  # 1.2
+DATE=$2 # 2005-07-08
+
+# cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/jedmodes export \
+#         ${DATE:+-D$DATE} mode
+cp -r ~/programmieren/mode/ .
+mv mode jed-extra-$VER
+
+cd jed-extra-$VER
+
+# dabbrev is in upstream
+# scrnhelp is superseded by help.sl
+rm -r dabbrev scrnhelp
+
+checker() { sed 1,/^[^%]/p $1 | grep -Eq 'GPL|GNU General Public License'; }
+no_gpl=
+for i in *; do
+  [ -d $i ] || continue;
+  if [ -f $i/$i.sl ]; then
+      if ! checker $i/$i.sl; then
+          case $i in
+            bufed|calc|custmode|email|jedasp|keywords|sql|tar|temabbrv)
+              echo "($i misses the gpl licence note)";;
+            *) echo "$i not gpl"; no_gpl=1;;
+          esac
+      fi;
+  else
+      for j in $i/*.sl; do
+          if ! checker $j; then
+             echo "$j not gpl"
+             no_gpl=1
+          fi
+      done
+  fi
+done
+
+cd ..
+
+if [ -n "$no_gpl" ]; then
+    echo 
+    echo "There is at least one file with unsettled copyright"
+    printf "Continue [y/N] "
+    read choise
+    case "$choise" in
+      y|Y) ;;
+      *) exit 2;;
+    esac
+fi
+
+tar -czf jed-extra_$VER.orig.tar.gz jed-extra-$VER




More information about the Pkg-jed-commit mailing list