Moved distribution scripts into utils directory
authorAri Johnson <ari@cobramush.org>
Sat, 3 Mar 2007 04:03:42 +0000 (04:03 +0000)
committerAri Johnson <ari@cobramush.org>
Sat, 3 Mar 2007 04:03:42 +0000 (04:03 +0000)
scripts/.gitify-empty [deleted file]
scripts/makedist.sh [deleted file]
scripts/preparedist.sh [deleted file]
utils/makedist.sh [new file with mode: 0644]
utils/preparedist.sh [new file with mode: 0644]

diff --git a/scripts/.gitify-empty b/scripts/.gitify-empty
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/scripts/makedist.sh b/scripts/makedist.sh
deleted file mode 100644 (file)
index e0a7553..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-SELF=`which "$0"`
-DIR=`dirname "$SELF"`
-cd "$DIR"
-cd ..
-
-# Step 1: make sure it is distribution-ready
-echo "Ensure that you run preparedist.sh before makedist.sh to ensure"
-echo "that all files are up-to-date"
-
-# Step 2: determine version
-echo "Determining version..."
-VERSION=`grep VERSION hdrs/version.h | sed 's/^.*"\(.*\)".*$/\1/'`
-BRANCH=`grep VBRANCH hdrs/version.h | sed 's/^.*"\(.*\)".*$/\1/'`
-echo "Version is $VERSION, branch is $BRANCH"
-
-# Step 3: copy everything into a temporary directory
-WD=`pwd`
-TMPDIR=`mktemp -d "cobramush.dist.XXXXXX"`
-cd "$TMPDIR"
-mkdir cobramush
-split -l 50 "$WD/MANIFEST"
-for i in x?? ; do
-    for j in `cat $i` ; do
-        mkdir -p cobramush/`dirname "$j"`
-        cp "$WD/$j" cobramush/`dirname "$j"`
-    done
-done
-rm x??
-
-# Step 4: make tarball
-echo "Making tarball..."
-if [ "$BRANCH" = "release" ]; then
-    BRANCHNAME=""
-else
-    BRANCHNAME="-$BRANCH"
-fi
-TARBALL="cobramush-$VERSION$BRANCHNAME.tar.gz"
-tar -czf "$WD/$TARBALL" cobramush
-
-# Step 5: clean up
-echo "Cleaning up..."
-cd "$WD"
-rm -r "$TMPDIR"
-
-echo "$TARBALL created"
-
diff --git a/scripts/preparedist.sh b/scripts/preparedist.sh
deleted file mode 100644 (file)
index 8a109c8..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-SELF=`which "$0"`
-DIR=`dirname "$SELF"`
-cd "$DIR"
-cd ..
-
-# Step 1: run metaconfig
-echo "Running metaconfig to generate Configure and config_h.SH..."
-metaconfig -M
-
-# Step 2: generate changes.txt
-echo "Generating changes.txt..."
-( cd game/txt && ruby genchanges.rb )
-
-# Step 3: index help files
-echo "Indexing help, news, and events..."
-cd game/txt
-for i in hlp nws evt ; do
-    cd $i
-    rm -f index.$i
-    cat *.$i | perl ../index-files.pl > index.$i
-    cd ..
-done
-
-cd ../..
-
diff --git a/utils/makedist.sh b/utils/makedist.sh
new file mode 100644 (file)
index 0000000..e0a7553
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+SELF=`which "$0"`
+DIR=`dirname "$SELF"`
+cd "$DIR"
+cd ..
+
+# Step 1: make sure it is distribution-ready
+echo "Ensure that you run preparedist.sh before makedist.sh to ensure"
+echo "that all files are up-to-date"
+
+# Step 2: determine version
+echo "Determining version..."
+VERSION=`grep VERSION hdrs/version.h | sed 's/^.*"\(.*\)".*$/\1/'`
+BRANCH=`grep VBRANCH hdrs/version.h | sed 's/^.*"\(.*\)".*$/\1/'`
+echo "Version is $VERSION, branch is $BRANCH"
+
+# Step 3: copy everything into a temporary directory
+WD=`pwd`
+TMPDIR=`mktemp -d "cobramush.dist.XXXXXX"`
+cd "$TMPDIR"
+mkdir cobramush
+split -l 50 "$WD/MANIFEST"
+for i in x?? ; do
+    for j in `cat $i` ; do
+        mkdir -p cobramush/`dirname "$j"`
+        cp "$WD/$j" cobramush/`dirname "$j"`
+    done
+done
+rm x??
+
+# Step 4: make tarball
+echo "Making tarball..."
+if [ "$BRANCH" = "release" ]; then
+    BRANCHNAME=""
+else
+    BRANCHNAME="-$BRANCH"
+fi
+TARBALL="cobramush-$VERSION$BRANCHNAME.tar.gz"
+tar -czf "$WD/$TARBALL" cobramush
+
+# Step 5: clean up
+echo "Cleaning up..."
+cd "$WD"
+rm -r "$TMPDIR"
+
+echo "$TARBALL created"
+
diff --git a/utils/preparedist.sh b/utils/preparedist.sh
new file mode 100644 (file)
index 0000000..8a109c8
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+SELF=`which "$0"`
+DIR=`dirname "$SELF"`
+cd "$DIR"
+cd ..
+
+# Step 1: run metaconfig
+echo "Running metaconfig to generate Configure and config_h.SH..."
+metaconfig -M
+
+# Step 2: generate changes.txt
+echo "Generating changes.txt..."
+( cd game/txt && ruby genchanges.rb )
+
+# Step 3: index help files
+echo "Indexing help, news, and events..."
+cd game/txt
+for i in hlp nws evt ; do
+    cd $i
+    rm -f index.$i
+    cat *.$i | perl ../index-files.pl > index.$i
+    cd ..
+done
+
+cd ../..
+