diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-11-12 13:39:41 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-11-12 13:39:41 +0100 |
commit | 5dd16e14dd41f1565687142ba7cefa7c4cf64658 (patch) | |
tree | d571b793928cdf89feb6d040b359c3db2a00c766 /libexec/appstore-init-server | |
parent | 0d92ff5fd34d79b54c30c38ac41bc600acf7b7c4 (diff) | |
download | appstore-5dd16e14dd41f1565687142ba7cefa7c4cf64658.tar.gz appstore-5dd16e14dd41f1565687142ba7cefa7c4cf64658.tar.bz2 appstore-5dd16e14dd41f1565687142ba7cefa7c4cf64658.tar.xz appstore-5dd16e14dd41f1565687142ba7cefa7c4cf64658.zip |
Diffstat (limited to 'libexec/appstore-init-server')
-rwxr-xr-x | libexec/appstore-init-server | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/libexec/appstore-init-server b/libexec/appstore-init-server deleted file mode 100755 index 1417469..0000000 --- a/libexec/appstore-init-server +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash - -set -e -set -u - -APPSTORE_HOME=$(cd $(dirname "$0")/.. && pwd) - -. $APPSTORE_HOME/lib/common -# HEADER END - -root=$1; shift -name=$1; shift - -echo "Creating appstore $name" - -repo="$root/repos/$name" -apps="$root/appstores/$name" - -if [ -e "$repo" ] -then - echo "$name already exist!" - exit 1 -fi - -# Create the git repository -git init -q --bare "$repo" - -# Clone the repository -git init -q "$apps" -cd "$apps" - -# Copy the template project -cp -r "$APPSTORE_HOME/template/"* . -git add -A -git config user.name "Appstore Bot" -git config user.email nobody@example.org -git commit -q -m "Created new appstore: $name." -git push -q "$repo" master -cd .. - -# Install the hooks -cd "$repo" -pwd -rm hooks/* -rmdir hooks -ln -s "$APPSTORE_HOME/hooks" hooks -git config appstore.home "$APPSTORE_HOME" -git config appstore.apps "$apps" - -echo "config: repo.path=$repo" |