diff options
author | davidovski <david@davidovski.xyz> | 2022-05-23 19:52:33 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-23 19:52:33 +0100 |
commit | e16139e42feb7c5f5a4c5d46f9bad60d1434b134 (patch) | |
tree | da1190822eea88b47cbf507aecbbc3cb40ea3b3a | |
parent | 82961a89b2a881afec478bf5902bd30ea09b6fd0 (diff) |
added makefile
-rw-r--r-- | Makefile | 6 | ||||
-rwxr-xr-x | sync.sh | 13 | ||||
-rwxr-xr-x | xib.sh | 4 | ||||
-rwxr-xr-x | xib_env | 22 | ||||
-rw-r--r-- | xibd.sh | 3 |
5 files changed, 11 insertions, 37 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7165eff --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +PREFIX=/usr + +install: + install -Dm755 xib.sh ${DESTDIR}${PREFIX}/bin/xib + install -Dm755 xibd.sh ${DESTDIR}${PREFIX}/bin/xibd + diff --git a/sync.sh b/sync.sh deleted file mode 100755 index a7a5ae8..0000000 --- a/sync.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -source xib_env - -sync () { - for i in $@; do - echo "syncing from $XIB_EXPORT to $i" - [[ $# = 0 ]] || rsync -Lta --no-perms --no-owner --no-group --delete -z -e ssh "$XIB_EXPORT/" $i - done; -} - -sync oracle2:/srv/www/xi/html/ cheetah:/srv/www/xi/html/ - @@ -214,7 +214,9 @@ xibd () { [ "$#" = 0 ] && { xib_all } || { - for x in $@; do + [ "$1" = "-d" ] && + xibd + || for x in $@; do xib_single $x done } diff --git a/xib_env b/xib_env deleted file mode 100755 index 2b6418b..0000000 --- a/xib_env +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -. /usr/lib/glyphs.sh -export INFOCHAR=" ~ " - -export MAKEFLAGS="-j$(grep "processor" /proc/cpuinfo | wc -l)" - -export XIB_DIR="/var/lib/xib" -export XIB_BUILDFILES="$XIB_DIR/buildfiles" -export XIB_CHROOT="$XIB_DIR/chroot" -export XIB_EXPORT="$XIB_DIR/export" -export LOG_FILE="$XIB_DIR/xib.log" - -export PRIV_KEY="/home/david/.ssh/xi.pem" -export PUB_KEY="/home/david/.ssh/xi.pub" -export DEVELOPMENT_BUILDFILES="/home/david/docs/proj/xilinux/buildfiles" -XIB_BUILDFILES=$DEVELOPMENT_BUILDFILES - -export BUILDFILES_GIT_REPO="https://xi.davidovski.xyz/git/buildfiles.git" -export INSTALLED_PACKAGES="$XIB_CHROOT/installed" - -export BUILD_PROFILE=$XIB_DIR/build_profile @@ -1,2 +1,3 @@ -. ./xib.sh && xibd +#!/bin/sh +xib -d |