Permalink
Browse files

Update Commit

- updated video-tool and slack-related tools
- added 2 new scripts (chkbuild chkgit)
  • Loading branch information...
1 parent 1203a3b commit 729706761d07c0873e5bc1c046a8b97119f83d4f @azman committed Dec 11, 2011
Showing with 427 additions and 334 deletions.
  1. +55 −0 chkbuild
  2. +23 −0 chkgit
  3. +21 −0 getslack
  4. +186 −166 libmy1slack
  5. +104 −152 slackpatch
  6. +2 −2 slacktest
  7. +31 −10 slackview
  8. +5 −4 video-tool
View
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+# chkbuild
+# - written by azman@my1matrix.net
+# - browse my1 Slackbuilds in current path and check with given reference
+
+REF_BUILD=$1
+CURR_PATH=$(pwd)
+
+[[ ! -r "$REF_BUILD" ]] &&
+ echo "Cannot read reference build '$REF_BUILD'!" && exit 1
+
+STR_BUILD="$(sed -n '/# ONLY TEMPLATES BELOW THIS LINE/,$ p' $REF_BUILD)"
+CHECKLIST=""
+OPT_DOFIX=""
+OPT_VERBO=""
+shift
+while [[ "$1" != "" ]] ; do
+ case $1 in
+ --all )
+ CHECKLIST=""
+ for slackbuild in *.SlackBuild ; do
+ CHECKLIST="$CHECKLIST $slackbuild"
+ done
+ ;;
+ --fix )
+ OPT_DOFIX="YES"
+ ;;
+ --verbose )
+ OPT_VERBO="YES"
+ ;;
+ * )
+ [[ ! -f "$1" ]] && echo "Unknown parameter ($1)!" && exit 1
+ CHECKLIST="$CHECKLIST $1"
+ ;;
+ esac
+ shift
+done
+
+for slackbuild in $CHECKLIST ; do
+ [[ "$(basename $REF_BUILD)" == "$slackbuild" ]] && continue
+ CHK_BUILD="$(sed -n '/# ONLY TEMPLATES BELOW THIS LINE/,$ p' $slackbuild)"
+ CHK_ERROR="$(diff <(echo $STR_BUILD) <(echo $CHK_BUILD))"
+ [[ "$CHK_BUILD" == "" ]] && echo "$slackbuild: Not a my1 SlackBuild?" && continue;
+ if [[ "$CHK_ERROR" != "" ]]; then
+ [[ "$OPT_DOFIX" != "YES" ]] && echo "$slackbuild: Not up-to-date!" && continue
+ sed -i '/# ONLY TEMPLATES BELOW THIS LINE/,$ d' $slackbuild
+ echo "$STR_BUILD" >>$slackbuild
+ echo "FIXED THIS! $REF_BUILD => $slackbuild"
+ else
+ [[ "$OPT_VERBO" == "YES" ]] && echo "$slackbuild: OK!"
+ fi
+done
+
+exit 0
View
23 chkgit
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# chkgit
+# - written by azman@my1matrix.net
+# - browse folders in current path and check git repos
+
+CLEAN_MSG="nothing to commit"
+
+CURR_PATH=$(pwd)
+
+for path in $(find * -maxdepth 0 -type d); do
+ cd $path
+ if [[ -d .git ]]; then
+ if [[ "$(git status | grep "$CLEAN_MSG")" == "" ]]; then
+ echo "Check: $(pwd)"
+ fi
+ else
+ echo "NOT: $(pwd)"
+ fi
+ cd $CURR_PATH
+done
+
+exit 0
View
@@ -15,7 +15,10 @@ done
MY1_GETSLACK_CONF=$(cat <<MY1CONF
# checkout release & arch
+# RSYNCURLROOT=\${RSYNCURLROOT:="slackware.mirrors.tds.net::slackware/slackware-current"}
+# RSYNCURLROOT=\${RSYNCURLROOT:="rsync.osuosl.org::slackware/slackware-current"}
RSYNCURLROOT=\${RSYNCURLROOT:="taper.alienbase.nl::mirrors/slackware/"}
+# RSYNCURLROOT=\${RSYNCURLROOT:="mirror.aarnet.edu.au::slackware/"}
RELEASE=\${RELEASE:="13.37"}
SLACKARCH=\${SLACKARCH:="\$(uname -m)"}
SLACKFULL=\${SLACKFULL:="slackware"}
@@ -78,6 +81,24 @@ RSYNCURLROOT=${RSYNCURLROOT:="rsync.osuosl.org::slackware/"}
RSYNCURL=${RSYNCURL:="${RSYNCURLROOT}${SLACKRELEASE}"}
RSYNCOPT=${RSYNCOPT:="--delete --delete-excluded --partial -rlptD --progress"}
+# option to create iso - helping o-thers... local mirror must exist!
+if [[ "$1" == "--mkiso" ]]; then
+ MKISOFS=${MKISOFS:="$(chk_mkisofs=$(which mkisofs 2>&1); [[ $? -eq 0 ]] && echo "$chk_mkisofs")"}
+ [[ "$MKISOFS" == "" ]] && echo "'mkisofs' not found! Aborting!" && exit 1
+ ISOPATH=${ISOPATH:="$HOME/temp"}
+ [[ ! -d "$ISOPATH" ]] && echo "Path '$ISOPATH' not found! Aborting!" && exit 1
+ echo -n "Creating ISO from $SLACKPATH... "
+ cd $SLACKPATH
+ $MKISOFS -o $ISOPATH/${SLACKRELEASE}-install.iso -V "${SLACKRELEASE} Install DVD" \
+ -R -J -hide-rr-moved -hide-joliet-trans-tbl -d -N \
+ -v -v -no-emul-boot -boot-load-size 32 -boot-info-table \
+ -sort isolinux/iso.sort -b isolinux/isolinux.bin -c isolinux/isolinux.boot \
+ -A "${SLACKRELEASE} Install DVD (build $(date +%Y%m%d))" . \
+ > $ISOPATH/${SLACKRELEASE}-install_build.log 2>&1
+ echo "done!"
+ exit 0
+fi
+
# customized sync list
EXCLUDES=${EXCLUDES:="--exclude pasture"}
INCLUDES=${INCLUDES:=""}
Oops, something went wrong.

0 comments on commit 7297067

Please sign in to comment.