Move make-dist to scripts directory.
authorGavin Carr <gonzai@users.sourceforge.net>
Tue, 9 Oct 2007 01:28:22 +0000 (01:28 +0000)
committerGavin Carr <gonzai@users.sourceforge.net>
Tue, 9 Oct 2007 01:28:22 +0000 (01:28 +0000)
Makefile
make-dist [deleted file]
scripts/make-dist [new file with mode: 0755]

index 6ba2ff6e64939a2e4577e385162710bf7df1ec20..09c18c332125d6e2c4194fd506c970c27d326c44 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 
 dist:
 
 dist:
-       ./make-dist
+       scripts/make-dist
 
 clean:
        rm -f blosxom-plugins-*.tar.gz blosxom-plugins-*.zip
 
 clean:
        rm -f blosxom-plugins-*.tar.gz blosxom-plugins-*.zip
diff --git a/make-dist b/make-dist
deleted file mode 100755 (executable)
index bffc692..0000000
--- a/make-dist
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-#
-# Quick script to make a flattened tarball (unix)
-#
-
-cd `dirname $0`
-
-NAME=blosxom-plugins
-VERSION=`cat VERSION`
-
-for SIZE in large medium small; do
-  TARBALL="$NAME-$SIZE-$VERSION"
-  test -d $TARBALL && rm -rf $TARBALL
-  mkdir $TARBALL
-
-  # Small/Medium
-  if [ -f MANIFEST.$SIZE ]; then
-    for i in `cat MANIFEST.$SIZE`; do
-      if [ -f $i ]; then
-        cp -p $i $TARBALL
-      elif [ -f $NAME-large-$VERSION/$i ]; then
-        cp -p $NAME-large-$VERSION/$i $TARBALL
-      else
-        echo "Warning: cannot find plugin '$i' (MANIFEST.$SIZE)"
-      fi
-    done
-
-  # Large
-  else
-    # Copy everything
-    find * \( -name $TARBALL -o -name CVS \) -prune -o -type f -exec cp -p {} $TARBALL \;
-
-    # Prune unwanted files
-    for i in make-dist README.cvs blosxom-plugins-medium.spec; do
-      rm -f $TARBALL/$i
-    done
-  fi
-   
-  # Create tarball
-  which tar >/dev/null 2>&1
-  if [ $? == 0 ]; then
-    echo "Creating $TARBALL.tar.gz"
-    tar -zcf $TARBALL.tar.gz $TARBALL
-  fi
-
-  # Create zip file
-  which zip >/dev/null 2>&1
-  if [ $? == 0 ]; then
-    echo "Creating $TARBALL.zip"
-    zip -q -r $TARBALL.zip $TARBALL 
-  fi
-done
-
-for SIZE in large medium small; do
-  TARBALL="$NAME-$SIZE-$VERSION"
-  test -d $TARBALL && rm -rf $TARBALL
-done
diff --git a/scripts/make-dist b/scripts/make-dist
new file mode 100755 (executable)
index 0000000..4c91f5b
--- /dev/null
@@ -0,0 +1,57 @@
+#!/bin/sh
+#
+# Quick script to make a flattened tarball (unix)
+#
+
+cd `dirname $0`/..
+
+NAME=blosxom-plugins
+VERSION=`cat VERSION`
+
+for SIZE in large medium small; do
+  TARBALL="$NAME-$SIZE-$VERSION"
+  test -d $TARBALL && rm -rf $TARBALL
+  mkdir $TARBALL
+
+  # Small/Medium
+  if [ -f MANIFEST.$SIZE ]; then
+    for i in `cat MANIFEST.$SIZE`; do
+      if [ -f $i ]; then
+        cp -p $i $TARBALL
+      elif [ -f $NAME-large-$VERSION/$i ]; then
+        cp -p $NAME-large-$VERSION/$i $TARBALL
+      else
+        echo "Warning: cannot find plugin '$i' (MANIFEST.$SIZE)"
+      fi
+    done
+
+  # Large
+  else
+    # Copy everything
+    find * \( -name $TARBALL -o -name CVS \) -prune -o -type f -exec cp -p {} $TARBALL \;
+
+    # Prune unwanted files
+    for i in make-dist README.cvs blosxom-plugins-medium.spec; do
+      rm -f $TARBALL/$i
+    done
+  fi
+   
+  # Create tarball
+  which tar >/dev/null 2>&1
+  if [ $? == 0 ]; then
+    echo "Creating $TARBALL.tar.gz"
+    tar -zcf $TARBALL.tar.gz $TARBALL
+  fi
+
+  # Create zip file
+  which zip >/dev/null 2>&1
+  if [ $? == 0 ]; then
+    echo "Creating $TARBALL.zip"
+    zip -q -r $TARBALL.zip $TARBALL 
+  fi
+done
+
+for SIZE in large medium small; do
+  TARBALL="$NAME-$SIZE-$VERSION"
+  test -d $TARBALL && rm -rf $TARBALL
+done