summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2021-10-02 15:36:06 +0100
committerdavidovski <david@davidovski.xyz>2021-10-02 15:36:06 +0100
commitc4e0c314e6eac6964328c9c3daeaa232ea06e965 (patch)
tree3487ee837ea8927ceaf5c26fe54461422e01a21a
parent5f7bf349b6280e52f6671e9fb02e0c530b167165 (diff)
rename
-rwxr-xr-xpsibuild (renamed from xibuild)28
-rw-r--r--psibuilds/bash.psibuild (renamed from xibuilds/bash.xibuild)0
2 files changed, 14 insertions, 14 deletions
diff --git a/xibuild b/psibuild
index 5b6d003..567fd2b 100755
--- a/xibuild
+++ b/psibuild
@@ -2,23 +2,23 @@
usage () {
cat << EOF
-usage: $0 XIBUILD
+usage: $0 PSIBUILD
EOF
}
BUILD_FILE=${@: -1}
-[[ $# = 0 ]] && usage && exit 1
-[ -f "$FILE" ] && echo "$BUILD_FILE not found" && exit 1
+[[ $# = 0 ]] && usage && epsit 1
+[ -f "$FILE" ] && echo "$BUILD_FILE not found" && epsit 1
source $BUILD_FILE
-PKG_NAME=$(basename $BUILD_FILE .xibuild)
+PKG_NAME=$(basename $BUILD_FILE .psibuild)
-XI_ROOT=$(pwd)
-PKGS_OUTPUT=$XI_ROOT/xipackages
+PSI_ROOT=$(pwd)
+PKGS_OUTPUT=$PSI_ROOT/psipkgs
-PKG_BUILD_DIR=$XI_ROOT/tmp/$PKG_NAME
+PKG_BUILD_DIR=$PSI_ROOT/tmp/$PKG_NAME
PKG_DEST=$PKG_BUILD_DIR/package
# make the directories
@@ -32,28 +32,28 @@ package
# go back to root, make things easier
-cd $XI_ROOT
+cd $PSI_ROOT
# bundle the package to a targz in the output dir
mkdir -p $PKGS_OUTPUT
-PKG_FILE=$PKGS_OUTPUT/$PKG_NAME.xipkg
+PKG_FILE=$PKGS_OUTPUT/$PKG_NAME.psipkg
tar -C $PKG_BUILD_DIR/package -czf $PKG_FILE ./
# create info file
-PKG_INFO=$PKGS_OUTPUT/$PKG_NAME.xipkg.info
+PKG_INFO=$PKGS_OUTPUT/$PKG_NAME.psipkg.info
echo "" > $PKG_INFO
echo "NAME=$PKG_NAME" >> $PKG_INFO
-echo "PKG_FILE=$PKG_NAME.xipkg" >> $PKG_INFO
+echo "PKG_FILE=$PKG_NAME.psipkg" >> $PKG_INFO
echo "CHECKSUM=$(md5sum $PKG_FILE | awk '{ print $1 }')" >> $PKG_INFO
echo "DATE=$(date)" >> $PKG_INFO
echo "DEPS=(${DEPS[*]})" >> $PKG_INFO
# sign the package
-PRIV_KEY=$XI_ROOT/keychain/xi.pem
-PUB_KEY=$XI_ROOT/keychain/xi.pub
+PRIV_KEY=$PSI_ROOT/keychain/psi.pem
+PUB_KEY=$PSI_ROOT/keychain/psi.pub
if [ -f "$PRIV_KEY" ]; then
echo "SIGNATURE=" >> $PKG_INFO
@@ -65,4 +65,4 @@ else
fi
# clean up
rm -rf $PKG_BUILD_DIR
-rmdir $XI_ROOT/tmp
+rmdir $PSI_ROOT/tmp
diff --git a/xibuilds/bash.xibuild b/psibuilds/bash.psibuild
index 9a5d1af..9a5d1af 100644
--- a/xibuilds/bash.xibuild
+++ b/psibuilds/bash.psibuild