Posted: Wed 13 Dec 2017, 23:17
welcome KuLuSz
READ-ONLY Archive
https://oldforum.puppylinux.com/
Code: Select all
Line 131:
if [ ! $(cat /tmp/installed_pkg_dep_list | grep '$x' | grep -c -m 2 -v '$x[.-_]') -gt "1" ];then
^-- SC2046: Quote this to prevent word splitting.
^-- SC2002: Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
^-- SC2016: Expressions don't expand in single quotes, use double quotes for that.
^-- SC2016: Expressions don't expand in single quotes, use double quotes for that.
Code: Select all
#!/bin/ash
set -a
# speed up
USER_LANG=$LANG
USER_LC_ALL=$LC_ALL
export LANG=C
export LC_ALL=C
export SELF=$(basename $0)
export TMPFILE=/tmp/mkdistro_$(whoami)_tmpfile
export CURDIR="`pwd`"
export WORKDIR=/tmp/mkdistro_$(whoami)
mkdir -p "$WORKDIR" 2>/dev/null # probably already exists
# set app name, title, version
APPNAME="mkpup"
APPVER="0.1"
APPTITLE="$APPNAME $APPVER"
#BACKTITLE="Build Puppy Linux from scratch"
# set dialog settings, set default as dialog, allow override
[ -z "$DIALOG" ] && DIALOG=dialog
[ "`basename $0`" = "Xmkdistro" ] && DIALOG=Xdialog
[ "$DIALOG" = "Xdialog" ] && BACKTITLE="--title \"$APPTITLE\"" && APPNAME="Xpkgdialog"
$DIALOG --title "$APPTITLE" --no-shadow --no-collapse --ok-label "Next" --cancel-label "Quit" --menu "
Build Puppy Linux from scratch: choose an option below" 28 76 28 \
"Help " "Read the help documentation" \
"Settings " "Show/edit the settings" \
"" "" \
"Load Config =>" "Load build settings from file" \
"" "" \
"1. Architecture =>" "Select x86, x86_64, ARM, etc" \
"2. Boot options =>" "Select bootloader and settings" \
"3. Kernel =>" "Select a pre-made kernel, or build your own" \
"4. Base distro =>" "Select from Debian, Ubuntu or Slackware" \
"5. Packages =>" "Add/remove programs and libs" \
"6. Window Manager =>" "Xfce, OpenBox, MATE, JWM, etc" \
"7. Themes =>" "Choose WM, GTK, Icon and desktop themes" \
"8. Advanced Edit =>" "Edit system, devx and other settings" \
"9. Build options =>" "Build ISO or SFS only, etc" \
"" "" \
"Save Config =>" "Save current build settings" \
"" "" \
"10. BUILD NOW " "Build your Puppy!" 2>$TMPFILE
export LANG=$USER_LANG
export LC_ALL=$USER_LC_ALL
exit 0