release-scripts: Remove RFCs in source4/.
[ab/samba.git/.git] / release-scripts / create-tarball
index ab27f082225343f98ed1c3f7d4366b0ade4b2b51..5c9df90d8dcb9505f7387a696d7b7d28fb3f8ff4 100755 (executable)
@@ -183,6 +183,10 @@ function main
     if [ -n "$vendor_version" ]; then
        version="$version-$vendor_version"
     fi
+    vendor_patch=`grep "define SAMBA_VERSION_VENDOR_PATCH" $VER_H | awk '{print $3}'`
+    if [ -n "$vendor_patch" ]; then
+       version="$version-$vendor_patch"
+    fi
     version=`echo $version | sed 's/\"//g'`
 
     echo "Creating release tarball for Samba $version"
@@ -193,6 +197,14 @@ function main
 
     pushd ../samba-${version}
 
+    # Remove RFCs as they are non-free content (with a strict interpretation of
+    # the DFSG)
+
+    if [ -d source4 ]; then
+       echo "Removing RFCs"
+       find source4/ -name "rfc*.txt" -exec rm -f {} \;
+    fi
+
     packaging/bin/update-pkginfo ${version} 1 ""
 
     buildDocs