diff options
author | rudson <rudson@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-21 15:59:00 +0000 |
---|---|---|
committer | rudson <rudson@04377dda-e619-0410-9926-eae83683ac58> | 2007-02-21 15:59:00 +0000 |
commit | 902b2fe66da2e3f69d5245e78d9b697a87e7e800 (patch) | |
tree | 19a92b62b0386e11753cf53afd0addf74a79dc38 /trunk | |
parent | ae1ecd24619fda20217113b277f83822296a616d (diff) | |
download | simplepkg-902b2fe66da2e3f69d5245e78d9b697a87e7e800.tar.gz simplepkg-902b2fe66da2e3f69d5245e78d9b697a87e7e800.tar.bz2 |
mkslackbuild: atualizando para versão 0.9.3
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@190 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/conf/generic.mkSlackBuild.new | 49 | ||||
-rwxr-xr-x | trunk/utils/mkslackbuild | 255 |
2 files changed, 205 insertions, 99 deletions
diff --git a/trunk/conf/generic.mkSlackBuild.new b/trunk/conf/generic.mkSlackBuild.new index e8c432a..a97c83a 100644 --- a/trunk/conf/generic.mkSlackBuild.new +++ b/trunk/conf/generic.mkSlackBuild.new @@ -1,7 +1,7 @@ ################################################### ## Generic template for SlackBuilds ## -## Version 0.3.3 - Luis ( luis at riseup d0t net) +## Version 0.7 - Luis ( luis at riseup d0t net) ## ################################################### <head> all @@ -25,18 +25,19 @@ fi <set_variables> all # Set variables -CWD=`pwd` +CWD="`pwd`" SRC_NAME="[[SOURCE NAME]]" PKG_NAME="[[PACKAGE NAME]]" ARCH=${ARCH:=[[ARCH]]} -VERSION=${VERSION:=[[VERSION]]} +SRC_VERSION=${VERSION:=[[VERSION]]} +PKG_VERSION="$(echo "$SRC_VERSION" | tr '[[:blank:]-]' '_')" BUILD=${BUILD:=1[[SLACKBUILD AUTHOR INITIALS]]} SRC_DIR=${SRC_DIR:=$CWD} TMP=${TMP:=/tmp} PKG=${PKG:=$TMP/package-$PKG_NAME} REPOS=${REPOS:=$TMP} PREFIX=${PREFIX:=[[PREFIX]]} -PKG_SRC="$SRC_DIR/$SRC_NAME-$VERSION" +PKG_SRC="$SRC_DIR/$SRC_NAME-$SRC_VERSION" </set_variables> <slkflags> all @@ -70,14 +71,14 @@ ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42 rm -rf "$PKG_SRC" 2> /dev/null rm -rf "$PKG" 2> /dev/null -# Create directories, if necessary +# Create directories if necessary mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR mkdir -p "$PKG" || exit $ERROR_MKDIR mkdir -p "$REPOS" || exit $ERROR_MKDIR </start_structure> <import_gpg_signing> off -# Import (minimized) signing key from +# Import minimized signing key from # [[SIGNING KEY URL]] gpg --import << EOKEY || exit $ERROR_GPG [[SIGNING KEY]] @@ -85,36 +86,46 @@ EOKEY </import_gpg_signing> <download_source> on -# Dowload source and its signature, if necessary -SRC="$SRC_NAME-$VERSION.tar.[[SOURCE EXTENSION]]" +# Dowload source if necessary +SRC="$SRC_NAME-$SRC_VERSION.tar.[[SOURCE EXTENSION]]" URL="[[DOWNLOAD FOLDER URL]]/$SRC" -if [ ! -f "$SRC_DIR/$SRC" ] || ! [[DECOMPRESSOR]] [[DECOMPRESSOR TEST FLAG]] "$SRC_DIR/$SRC" 2> /dev/null; then +if [ ! -s "$SRC_DIR/$SRC" ] || ! [[DECOMPRESSOR]] [[DECOMPRESSOR TEST FLAG]] "$SRC_DIR/$SRC" 2> /dev/null; then wget "$URL" -O "$SRC_DIR/$SRC" || exit $ERROR_WGET fi </download_source> <download_signature_and_check> off -if [ ! -f "$SRC_DIR/$SRC.sig" ]; then +# Dowload source's signature if necessary and check it +if [ ! -s "$SRC_DIR/$SRC.sig" ]; then wget "$URL.sig" -O "$SRC_DIR/$SRC.sig" || exit $ERROR_WGET fi -# Check source's signature gpg --verify "$SRC_DIR/$SRC.sig" "$SRC_DIR/$SRC" || exit $ERROR_GPG </download_signature_and_check> <untar_source> all -# Untar, patch, configure, compile and install +# Untar cd "$SRC_DIR" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR -cd "$PKG_SRC" </untar_source> <path_source> off -patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$CWD/[[PATCH FILE]]" +# Patch source +cd "$PKG_SRC" +patches="[[PATCH FILES]] $PACKAGE.diff $PACKAGE-$VERSION.diff + $PACKAGE-$VERSION-$ARCH.diff $PACKAGE-$ARCH.diff" +for patch in $patches; do + if [ -f "$CWD/$patch" ]; then + patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$CWD/$patch" || exit $ERROR_PATCH + elif [ -f "$CWD/patches/$patch" ]; then + patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$CWD/patches/$patch" || exit $ERROR_PATCH + fi +done </path_source> <configure> on +# Configure CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -122,10 +133,12 @@ CFLAGS="$SLKCFLAGS" \ </configure> <make_package> all +# Compile make || exit $ERROR_MAKE </make_package> <install_package> all +# Install make install DESTDIR="$PKG" || exit $ERROR_INSTALL </install_package> @@ -169,8 +182,8 @@ fi <install_documentation> on # Install documentation DOCS="[[DOCUMENTATION FILES]]" -mkdir -p "$PKG/$PREFIX/doc/$PKG_NAME-$VERSION" || exit $ERROR_MKDIR -cp -a $DOCS "$PKG/$PREFIX/doc/$PKG_NAME-$VERSION" +mkdir -p "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR +cp -a $DOCS "$PKG/$PREFIX/doc/$PKG_NAME-$PKG_VERSION" </install_documentation> <slackdesc> on @@ -213,11 +226,11 @@ EOSCRIPT <build_package> all # Build the package cd "$PKG" -makepkg -l y -c n "$REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG +makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG </build_package> <clean_builds> on -# Delete source and build directories, if requested +# Delete source and build directories if requested if [ "$CLEANUP" == "yes" ]; then rm -rf "$PKG_SRC" "$PKG" fi diff --git a/trunk/utils/mkslackbuild b/trunk/utils/mkslackbuild index effe00e..2a7c0c2 100755 --- a/trunk/utils/mkslackbuild +++ b/trunk/utils/mkslackbuild @@ -9,7 +9,7 @@ # Slackbuilds são scripts utilizados no Slackware para gerar # pacotes tgz. # -# Version 0.9.2 +# Version 0.9.3 # #-------------------------------------------------------------------- # Functions @@ -46,11 +46,12 @@ function clean_all() rm $AUX_TMP 2>/dev/null rm $SLACKDESC_TMP 2>/dev/null + rm $SLACKBUILD.test 2>/dev/null rm $DEPENDENCY_LIST 2>/dev/null if [ ! -z $MK_PKGNAME ]; then rm $BASEDIR/*_$MK_PKGNAME.mkbuild 2>/dev/null - [ -e /tmp/$MK_PKGNAME ] && rm -rf /tmp/$MK_PKGNAME - [ ! -z $CONFIG_HELP ] && rm $CONFIG_HELP 2>/dev/null + rm -rf /tmp/$MK_PKGNAME 2>/dev/null + rm $CONFIG_HELP 2>/dev/null fi } @@ -71,7 +72,7 @@ function print_lines_to() # Make slack-desc file function mk_slackdesc() { - print_lines_to "slackdesc" "\[\[" $SB_MODEL + print_lines_to "slackdesc" "|-----" $SB_MODEL echo -n $MK_PKGNAME | tr [a-z\-] " " echo -n "|-----handy-ruler" let N=18+${#MK_PKGNAME} @@ -123,27 +124,34 @@ function edit_file() # Unpackage source function unpkg_source() { - dialog --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" \ - --infobox "Uncompress source in /tmp/$MK_PKGNAME. Wait" 3 45 - [ $? -ne 0 ] && mk_exit 0 - mkdir /tmp/$MK_PKGNAME/ 2>/dev/null - tar xvf $MK_SOURCE -C /tmp/$MK_PKGNAME/ 1>/dev/null - [ $? -ne 0 ] && mk_exit 1 - MK_TMPSRC="/tmp/$MK_PKGNAME/`ls /tmp/$MK_PKGNAME/`" - - DOC_FILES=`find $MK_TMPSRC -type f -maxdepth 1 -name "[A-Z]*" | sed 's/.*\/\(.*\)$/\1/'` + # FIXME: if MK_DECOMPRESSOR -ne bunzip2 or gunzip... + if [ $MK_DECOMPRESSOR = "bunzip2" -o $MK_DECOMPRESSOR = "gunzip" ]; then + dialog --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" \ + --infobox "Uncompress source in /tmp/$MK_PKGNAME. Wait" 3 45 + [ $? -ne 0 ] && mk_exit 0 + mkdir /tmp/$MK_PKGNAME/ 2>/dev/null + tar xvf $MK_SOURCE -C /tmp/$MK_PKGNAME/ 1>/dev/null + [ $? -ne 0 ] && mk_exit 1 + MK_TMPSRC="/tmp/$MK_PKGNAME/`ls /tmp/$MK_PKGNAME/`" + + DOC_FILES=`find $MK_TMPSRC -type f -maxdepth 1 -name "[A-Z]*" | sed 's/.*\/\(.*\)$/\1/'` + else + dialog --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" \ + --msgbox "$MK_DECOMPRESSOR not configurated..." 5 45 + fi } # Download source function download_url() { clear - wget --limit-rate=$MK_LIMITRATE $MK_URL -P $MK_SOURCEDIR/ + mkdir -p $MK_SOURCEDIR/$MK_PKGNAME 2>/dev/null + wget --limit-rate=$MK_LIMITRATE $MK_URL -P $MK_SOURCEDIR/$MK_PKGNAME/ if [ $? -ne 0 ]; then echo "URL error" return 0 fi - MK_SOURCE=$MK_SOURCEDIR/$MK_SRCNAME + MK_SOURCE=$MK_SOURCEDIR/$MK_PKGNAME/$MK_SRCNAME } # Select source file @@ -215,6 +223,24 @@ function edit_pkgname() MK_EXTENSION=`echo $ANS | awk '{print $3}'` } +# Edit MK_DECOMPRESSOR and MK_DECOMPRESSOR_TEST_FLAG +function edit_decompress_arg() +{ + # Remove nome, versão e extensão do nome da fonte + MK_DECOMPRESSOR="" + MK_DECOMPRESSOR_TEST_FLAG="" + + # Configura nome, versão e extensão do pacote + ANS3=`dialog --stdout --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" \ + --form "Check information below:" 10 55 3 \ + "Uncompress program:" 1 1 "$MK_DECOMPRESSOR" 1 23 25 60 \ + "Uncompress test flag:" 3 1 "$MK_DECOMPRESSOR_TEST_FLAG" 3 23 25 100` + [ $? -ne 0 ] && mk_exit 0 + + MK_DECOMPRESSOR=`echo $ANS3 | awk '{print $1}'` + MK_DECOMPRESSOR_TEST_FLAG=`echo $ANS3 | awk '{print $2}'` +} + # Edit configure options function edit_configure() { @@ -302,7 +328,7 @@ function edit_docfiles() LIST=`( cd $MK_TMPSRC; find . -type f -maxdepth 1 | cut -c3- )` DOCMENU="" for i in $LIST; do - if [ "`echo NEWS TODO README AUTHORS INSTALL ChangeLog | grep $i`" != "" ]; then + if [ "`echo NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING | grep $i`" != "" ]; then DOCMENU="$DOCMENU $i \"\" on" else DOCMENU="$DOCMENU $i \"\" off" @@ -336,15 +362,17 @@ function change_strings() # Build initial sections function start_build() { - change_strings "AUTHOR" "$MK_AUTHOR" - change_strings "AUTHOR INITIALS" $MK_AUTHOR_INITIALS - change_strings "SOURCE NAME" "${MK_SRCNAME//.$MK_EXTENSION}" + change_strings "SLACKBUILD AUTHOR" "$MK_AUTHOR" + change_strings "SLACKBUILD AUTHOR INITIALS" $MK_AUTHOR_INITIALS + change_strings "SOURCE NAME" "$MK_PKGNAME" change_strings "PROGRAM NAME" "$MK_PKGNAME" change_strings "PACKAGE NAME" "$MK_PKGNAME" - change_strings "PROGRAM URL" "$MK_URL" + change_strings "DECOMPRESSOR" "$MK_DECOMPRESSOR" + change_strings "DECOMPRESSOR TEST FLAG" "$MK_DECOMPRESSOR_TEST_FLAG" + change_strings "PROGRAM URL" "${MK_URL//$MK_SRCNAME}" change_strings "ARCH" "$MK_ARCH" change_strings "VERSION" $MK_VERSION - change_strings "SOURCE EXTENSION" $MK_EXTENSION + change_strings "SOURCE EXTENSION" ${MK_EXTENSION#tar.} change_strings "DOWNLOAD FOLDER URL" "`dirname $MK_URL`" change_strings "OTHER CONFIGURE ARGS" "$MK_OPTIONS" change_strings "DOCUMENTATION FILES" "$MK_DOCFILES" @@ -357,6 +385,7 @@ function mount_slackbuild() dialog --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" --infobox "SlackBuild save in $SLACKBUILD" 5 30 rm $SLACKBUILD 2>/dev/null +# [ ! -e `dirname $SLACKBUILD` ] && mkdir `dirname $SLACKBUILD` for i in `seq 0 $MAXSECTION`; do if [ "${SECTION_FLAG[i]}" = "all" -o "${SECTION_FLAG[i]}" = "on" ]; then cat ${SECTION_NAME[i]}_$MK_PKGNAME.mkbuild >> $SLACKBUILD @@ -365,6 +394,27 @@ function mount_slackbuild() done } +# Mount SlackBuild to section $1 +function mount_slackbuild_to() +{ + if [ $# -eq 1 ]; then + END_SECTION=$1 + dialog --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" --infobox "SlackBuild save in $SLACKBUILD.test" 5 30 + + rm $SLACKBUILD.test 2>/dev/null +# [ ! -e `dirname $SLACKBUILD` ] && mkdir `dirname $SLACKBUILD` + let i=0 + while [ $i -le $END_SECTION ]; do + if [ "${SECTION_FLAG[i]}" = "all" -o "${SECTION_FLAG[i]}" = "on" ]; then + cat ${SECTION_NAME[i]}_$MK_PKGNAME.mkbuild >> $SLACKBUILD.test + echo "" >> $SLACKBUILD + fi + let i++ + done + echo "" >> $SLACKBUILD + fi +} + # Make files section function make_file_sections() { @@ -397,12 +447,49 @@ function make_file_sections() function get_source_dialog() { - dialog --stdout --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" \ - --yesno " Download $MK_SRCNAME? " 5 50 - if [ $? -eq 0 ]; then - download_url + if [ ! -e $MK_SOURCE ]; then + dialog --stdout --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" \ + --yesno " Download $MK_SRCNAME? " 5 50 + if [ $? -eq 0 ]; then + download_url + else + select_source + fi + fi +} + + +function test_source() +{ + local TEST=1 + local ANS=0 + + while [ $TEST -ne 0 ]; do + $MK_DECOMPRESSOR $MK_DECOMPRESSOR_TEST_FLAG $MK_SOURCE + TEST=$? + if [ $TEST -ne 0 ]; then + dialog --stdout --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" --yesno "Source uncompress error. Download source again?" 6 50 + if [ $? -eq 0 ]; then + rm $MK_SOURCE + get_source_dialog + else + TEST=0 + fi + fi + done +} + +function set_source_test() +{ + MK_SOURCE=$MK_SOURCEDIR/$MK_PKGNAME/$MK_SRCNAME + if [ "$MK_EXTENSION" = "tar.gz" -o "$MK_EXTENSION" = "gz" -o "$MK_EXTENSION" = "tgz" ]; then + MK_DECOMPRESSOR=gunzip + MK_DECOMPRESSOR_TEST_FLAG="-t" + elif [ "$MK_EXTENSION" = "tar.bz2" -o "$MK_EXTENSION" = "bz2" ]; then + MK_DECOMPRESSOR=bunzip2 + MK_DECOMPRESSOR_TEST_FLAG="-t" else - select_source + edit_decompress_arg fi } @@ -424,27 +511,14 @@ function create_slackbuild() # Compile arch edit_arch + # Set source test vadiables + set_source_test + # Get source file - if [ ! -e $MK_SOURCEDIR/$MK_SRCNAME ]; then - get_source_dialog - else - MK_SOURCE=$MK_SOURCEDIR/$MK_SRCNAME - if [ "$MK_EXTENSION" = gz ]; then - if ( bzip2 -t $MK_SOURCE ); then - echo "Ok" - else - rm $MK_SOURCE - get_source_dialog - fi - elif [ "$MK_EXTENSION" = bz2 ]; then - if ( gzip -t $MK_SOURCE ); then - echo "Ok" - else - rm $MK_SOURCE - get_source_dialog - fi - fi - fi + get_source_dialog + + # Test source + test_source # Uncompress source unpkg_source @@ -461,9 +535,10 @@ function create_slackbuild() make_file_sections $SB_MODEL # Slackbuild script name - SLACKBUILD=$MK_SLACKBUILDDIR/$MK_PKGNAME.Slackbuild + SLACKBUILD=$BASEDIR/$MK_PKGNAME.Slackbuild # mkSlackBuild script name + # FIXME: make an MODELDIR??? MKSLACKBUILD=$BASEDIR/$MK_PKGNAME.mkslackbuild mk_slackdesc > slackdesc_$MK_PKGNAME.mkbuild @@ -488,42 +563,29 @@ function open_mkslackbuild() source $MKSLACKBUILD # SlackBuild scrit name - SLACKBUILD=$MK_SLACKBUILDDIR/$MK_PKGNAME.Slackbuild + SLACKBUILD=$BASEDIR/$MK_PKGNAME.Slackbuild # Create files sections make_file_sections $MKSLACKBUILD [ -e $BASEDIR/slack-required ] && ( cp $BASEDIR/slack-required $DEPENDENCY_LIST ) - # Main-Menu - #edit_menu else dialog --backtitle "mkSlackBuild $PROG_VERSION [$MK_PKGNAME]" \ --msgbox "$MKSLACKBUILD most be a file" 0 0 fi + # CHECK: + # Set source test vadiables + set_source_test + # Get source file - if [ ! -e $MK_SOURCEDIR/$MK_SRCNAME ]; then - get_source_dialog - else - MK_SOURCE=$MK_SOURCEDIR/$MK_SRCNAME - if [ "$MK_EXTENSION" = gz ]; then - if ( bzip2 -t $MK_SOURCE ); then - echo "Ok" - else - rm $MK_SOURCE - get_source_dialog - fi - elif [ "$MK_EXTENSION" = bz2 ]; then - if ( gzip -t $MK_SOURCE ); then - echo "Ok" - else - rm $MK_SOURCE - get_source_dialog - fi - fi - fi + get_source_dialog + + # Test source + test_source + # Uncompress source unpkg_source } @@ -542,6 +604,8 @@ function save_mkslackbuild() echo "MK_AUTHOR_INITIALS=\"$MK_AUTHOR_INITIALS\"" >> $MKSLACKBUILD echo "MK_VERSION=\"$MK_VERSION\"" >> $MKSLACKBUILD echo "MK_EXTENSION=\"$MK_EXTENSION\"" >> $MKSLACKBUILD + echo "MK_DECOMPRESSOR=\"$MK_DECOMPRESSOR\"" >> $MKSLACKBUILD + echo "MK_DECOMPRESSOR_TEST_FLAG=\"$MK_DECOMPRESSOR_TEST_FLAG\"" >> $MKSLACKBUILD echo "MK_DOCFILES=\"$MK_DOCFILES\"" >> $MKSLACKBUILD echo "MK_OPTIONS=\"$MK_OPTIONS\"" >> $MKSLACKBUILD echo "MK_PREFIX=\"$MK_PREFIX\"" >> $MKSLACKBUILD @@ -550,7 +614,7 @@ function save_mkslackbuild() for i in `seq 0 $MAXSECTION`; do echo "<${SECTION_NAME[i]}> ${SECTION_FLAG[i]}" >> $MKSLACKBUILD cat ${SECTION_NAME[i]}_$MK_PKGNAME.mkbuild >> $MKSLACKBUILD - echo "</${SECTION_NAME[i]}> ${SECTION_FLAG[i]}" >> $MKSLACKBUILD + echo "</${SECTION_NAME[i]}>" >> $MKSLACKBUILD echo "" >> $MKSLACKBUILD done @@ -591,6 +655,37 @@ function edit_menu() done } +# Test Menu +function test_menu() +{ + local ANST=0 + local SECTION=0 + local EDITMENU="" + + # Create main-menu string + for i in `seq 0 $MAXSECTION`; do + if [ "${SECTION_FLAG[i]}" = "all" -o "${SECTION_FLAG[i]}" = "on" ]; then + EDITMENU="$EDITMENU $i ${SECTION_NAME[i]}" + fi + done + + while [ "$ANST" != "1" ]; do + SECTION=`eval "dialog --stdout --backtitle \"mkSlackBuild $PROG_VERSION [$MK_PKGNAME]\" --menu \"Select section to test end\" 20 40 13 $EDITMENU"` + ANST=$? + if [ $ANST -ne 1 ]; then + mount_slackbuild_to $SECTION + clear + if [ "$USER" != "root" ]; then + su -c "( sh -x $SLACKBUILD.test )" + else + ( sh -x $SLACKBUILD.test ) + fi + echo -n "Enter 1 to end test: " + read ANST + fi + done +} + # Dependency list edit function edit_dependency() { @@ -613,9 +708,9 @@ function exec_script() #-------------------------------------------------------------------- # # turn off debug -##set +x +set +x # Start variables -PROG_VERSION=0.9.2 +PROG_VERSION=0.9.3 LANG=us BASEDIR=`pwd` AUX_TMP=`mktemp -p /tmp/ aux_tmp.XXXXXX` @@ -647,13 +742,11 @@ MK_LIMITRATE="100k" MK_SOURCEDIR=\`pwd\` MK_ARCH="i468" #MK_URL="ftp://localhost" -#MK_SLACKBUILDDIR=/slackbuild-dir EOF ) fi source ~/.mkslackbuild MK_SOURCEDIR=${MK_SOURCEDIR:=$BASEDIR} -MK_SLACKBUILDDIR=${MK_SLACKBUILDDIR:=$BASEDIR} MK_ARCH=${MK_ARCH:="i486"} # Config Author @@ -677,10 +770,10 @@ while [ $ANS0 -ne 0 ]; do "2" "Open MkSlackBuild" \ "3" "Save MkSlackBuild" \ "4" "Make Slackbuild" \ - "5" "Edit setions menu" \ - "6" "Edit dependency list" \ - "7" "Test SlackBuild script" \ - "8" "View doc-files" \ + "5" "Edit Script Sections" \ + "6" "Edit Dependency List" \ + "7" "Test SlackBuild Script" \ + "8" "View Doc-Files" \ "0" "Exit"` EXIT_STATUS=$? fi @@ -709,13 +802,13 @@ while [ $ANS0 -ne 0 ]; do edit_dependency ;; 7) - exec_script + test_menu ;; 8) view_docs ;; *) - true + echo "Exit..." ;; esac done |