]> git.e2factory.org Git - e2factory.git/commitdiff
Remove unused scripts
authorTobias Ulmer <tu@emlix.com>
Tue, 24 Jul 2012 12:51:21 +0000 (14:51 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 24 Jul 2012 12:51:21 +0000 (14:51 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
scripts/buildversion.sh [deleted file]
scripts/release.sh [deleted file]

diff --git a/scripts/buildversion.sh b/scripts/buildversion.sh
deleted file mode 100755 (executable)
index 02af005..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh -e
-#
-# buildversion.sh (C) 2007 by emlix GmbH
-#
-# syntax:
-#  buildversion.sh
-#
-# if .git is available use git describe to get a version identifier. 
-# otherwise use the first line of ./VERSION as the version identifier.
-#
-# print the version identifier to stdout
-
-if [ -d ./.git ] ; then
-        VERSION=$(git describe --tags)
-elif [ -f ./version ] ; then
-       VERSION=$(head -n1 version)
-else
-        echo >&2 "can't find version identifier"
-        exit 1
-fi
-echo "$VERSION"
-exit 0
diff --git a/scripts/release.sh b/scripts/release.sh
deleted file mode 100755 (executable)
index bb08147..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh -e
-#
-# release.sh (C) 2007 by emlix GmbH
-#
-# syntax: 
-#  release.sh <release name>
-#
-# this script creates a release as follows:
-#
-#  1. write the release name to ./VERSION
-#  2. create a commit tracking the change to the VERSION file
-#  3. create a tag named VERSION
-#
-#  The VERSION file is used by buildversion.sh to create a name
-#  describing the state of the working copy as detailed as possible.
-#
-
-VERSION="$1"
-
-if [ -z "$VERSION" ] ; then
-  echo "Error: empty version"
-  exit 1
-fi
-
-TAG="$VERSION"
-
-if git tag -l "^$TAG\$" ; then
-  echo "Error: tag exists: $TAG"
-  exit 1
-fi
-
-cat >VERSION <<EOF
-$VERSION
-EOF
-
-git add VERSION
-git commit -s -m "version $TAG" VERSION
-git tag "$TAG"