summaryrefslogtreecommitdiff
path: root/scripts/makepkg.in
Commit message (Collapse)AuthorAge
* scripts/makepkg.in: Add gettext translation for WARNING and ERROR.Andrew Fyfe2007-06-04
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* scripts/makepkg.in: Fix version comparision in create_xdelta().Andrew Fyfe2007-06-04
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Add gettext/i18n to most of the currently-used scriptsGiovanni Scafora2007-06-04
| | | | | Signed-off-by: Giovanni Scafora <linuxmania@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts/makepkg.in: More clean up.Andrew Fyfe2007-06-03
| | | | | | | | | * Add ChangeLog to source package. * Quote references to $BUILDSCRIPT. * Check $srcdir isn't empty when running --noextract. * Check $pkgdir isn't empty when running --repackage. Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts/makepkg.in: Improve error handling and clean up on exit.Andrew Fyfe2007-06-03
| | | | | | | | | | | | | | * makepkg now runs with errexit (exit on syntax error) enabled for the whole script. * Removed unneeded setting of errexit around build(). * Added bash traps to catch TERM HUP INT signals. * Added trap to catch unhandled/unknown errors. * Added trap to call clean_up() when the script exits. * Moved call to remove_deps() into clean_up(). * Moved -c/--clean code into clean_up(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Clean up output messages for translation.Andrew Fyfe2007-06-03
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* scripts/makepkg.in: Rewrite check_{options,buildenv} to tidy them up.Andrew Fyfe2007-06-03
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* scripts/makepkg.in: Clean up.Andrew Fyfe2007-06-03
| | | | | | | | | * Move create_xdelta() outside of fakeroot run. * Clean up dep check functions. * Clean up extract_sources(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Rename functions in makepkg for consistencyDan McGee2007-06-02
| | | | | | | Add a hyphen to any function name that needs it so we are consistent across the board. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: fix create_xdelta() and add warningAsh Milsted2007-06-02
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts/makepkg.in: Some more clean ups.Andrew Fyfe2007-06-02
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* makepkg: code cleanupDan McGee2007-06-02
| | | | | | | * Collapse some if statements (Andrew Fyfe) * Add some E_ exit designations Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts/makepkg.in: Move the remaining stages into functions.Andrew Fyfe2007-06-02
| | | | | | | | | | * Move download code to download_sources() * Move checksum generation code to generate_checksums() * Move checksum check code to check_checksums() * Move extract source code to extract_sources() Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts/makepkg.in: All calls to eval_gettext have been remove, gettext.sh ↵Andrew Fyfe2007-06-02
| | | | | | is no longer needed. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Drop --usesudo option and add some checks related to ASROOTDan McGee2007-06-01
| | | | | | | | Drop the --usesudo option and use it by default if running as a non-root user. Check the usage of the --asroot option and do not allow it to be used as a normal user. A few other small fixes, including a typo in $confdir. Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts/makepkg.in: Clean up gen/check checksum code.Andrew Fyfe2007-06-01
| | | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts/makepkg.in: Various clean ups.Andrew Fyfe2007-06-01
| | | | | | | | | * etc/makepkg.conf.in: Add description for xdelta. * doc/makepkg.conf.5: Add description for xdelta. * scripts/makepkg.in: Various clean ups. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Cleaned up dependencies check functions in makepkgAndrew Fyfe2007-06-01
| | | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Add autotool substitution for SRCEXT.Andrew Fyfe2007-05-31
| | | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* Clean up variable usage in create_xdelta() and add a check for the xdelta ↵Dale Ogilvie2007-05-30
| | | | | | program. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Add support for creating xdeltas in makepkg.Dale Ogilvie2007-05-30
| | | | | | | | Add xdelta option to makepkg.conf Added xfer script to contrib. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* makepkg: do not retrieve sources if NOEXTRACT or REPKG setDag Odenhall2007-05-31
| | | | | | Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <Andrew Fyfe andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: switch applicable $startdir/dir refs to new variable namesDan McGee2007-05-31
| | | | | | | After introducing $pkgdir and $srcdir, we can switch some lookups to these new variables. Signed-off-by: Dan McGee <dan@archlinux.org>
* Check if pkgdir exists in create_packageDag Odenhall2007-05-30
| | | | | | Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: fix double occurance of word in asroot warningDag Odenhall2007-05-30
| | | | | | Signed-off-by: Dag Odenhall <dag.odenhall@gmail.com> Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add srcdir and pkgdir variablesDan McGee2007-05-30
| | | | | | | We already have $startdir, so this introduces two more shorthand variables for the most commonly accessed directories. Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: add source package creation optionDan McGee2007-05-30
| | | | | | Add a new --source flag that allows creation of a source-only package. Signed-off-by: Dan McGee <dan@archlinux.org>
* scripts: do autoconf path replacement rightDan McGee2007-05-30
| | | | | | | | | | This should finally get the path replacement in our scripts right. This is the way the autoconf package itself does it and should not need much further tweaking. Threw in a few trailing whitespace corrections from the scripts as well. Signed-off-by: Dan McGee <dan@archlinux.org>
* Substitute config directory in scripts.Andrew Fyfe2007-05-29
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Set paths in pacman-optimize to use configure-time pathsDan McGee2007-05-29
| | | | | | | | | | | | By setting up a few more AC_SUBST macros in configure.ac, we can fill in paths in the scripts on the fly instead of having them in multiple places. Other small fixes: * Fix an oops on my last commit where I had some lines stil commented. * Fix makepkg bug where the generated package name using PKGEXT had two periods (..). Signed-off-by: Dan McGee <dan@archlinux.org>
* Get --help and --version options working on all scriptsDan McGee2007-05-29
| | | | | | | | | Added the autoconf option std-options to the scripts/ directory, which checks to ensure all programs have both --help and --version options. A few things needed cleaning up to get this working. To test these types of options, use the 'make distcheck' target. Signed-off-by: Dan McGee <dan@archlinux.org>
* Switch to printf for output messages.Andrew Fyfe2007-05-28
| | | | | | Using printf we can avoid haveing to use eval_gettext and the ugly escape sequances required to use it. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* chmod -x scripts/*.inAndrew Fyfe2007-05-27
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* fix existing autotools in scripts/*Andrew Fyfe2007-05-27
| | | | | | | - Remove scripts/makepkg on 'make distclean' - scripts/makepkg.in: set myver on ./configure Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* makepkg: fakeroot-related changes and other misc outputDan McGee2007-05-27
| | | | | | | A few changes to undo my stupid mistake earlier wrt fakeroot checking, and unify the output and usage of 'makepkg.conf'. Signed-off-by: Dan McGee <dan@archlinux.org>
* Removed fakeroot hacks.Andrew Fyfe2007-05-27
| | | | | | | | | Removed fakeroot hacks from * handledeps() * removedeps() * installpackage() Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Reduced the number of commands run inside fakeroot to the bare minimum.Andrew Fyfe2007-05-27
| | | | | | | | | | | | | | | Only the following functions now run inside fakeroot * run_build() * tidy_install() * create_package() Added check for inproper use of '-F' option. Added warning if makepkg is run as root. Added a new '--asroot' flag that must be passed if you wish to run makepkg as the root user. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: ensure DISTCC_HOSTS variable is exported when requiredDan McGee2007-05-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: a few small changesDan McGee2007-05-14
| | | | | | | | | | * change "Tidying Install" message to msg instead of msg2 * Fix quoting issues in usage output * Remove LANG and friends unsetting- this should be done in the offending package builds * Check for defined $BUILDSCRIPT, since it was moved to makepkg.conf Signed-off-by: Dan McGee <dan@archlinux.org>
* Cleaned up and simplified run_build().Andrew Fyfe2007-05-14
| | | | | | Restore LC_ALL and LANG after running build(). Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Moved commands to setup build environment and run build() into run_build().Andrew Fyfe2007-05-14
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Cleaned up and simplified tidy_install().Andrew Fyfe2007-05-14
| | | | | | | Added 'LC_ALL= LANG=' to find commands for stripping symbols from binaries/libraries. This stops the greps failing if LC_ALL or LANG != en_US|C|POSIX. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Moved commands to tidy up package install into tidy_install().Andrew Fyfe2007-05-14
| | | | | | | | | | | | The following sets of commands were moved into tidy_install() * Remove info/doc files. * Move usr/share/man to usr/man * Compress man pages. * Strip debug symbols from binaries/libraries. * Remove libtool *.la files. * Remove empty directories. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Cleaned up and simplified create_package().Andrew Fyfe2007-05-14
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Moved commands to create package file into create_package().Andrew Fyfe2007-05-14
| | | | Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
* Bug fix for FS#6944Alexander Baldeck2007-04-17
| | | | Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
* makepkg: unset LC_MESSAGES during buildsDan McGee2007-04-16
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>
* makepkg: remove grep calls from stripping binariesAndrew Fyfe2007-04-16
| | | | | | | Remove grep calls from stripping binaries and libraries, which will not work with localized strings. Clean up the find usage as well. Signed-off-by: Dan McGee <dan@archlinux.org>
* Forward port 3.0.2 branch fixesDan McGee2007-04-16
| | | | | | | Fix #6905- makepkg dependency checking error Fix #6915- add SUU mirror to mirrorlist.in Signed-off-by: Dan McGee <dan@archlinux.org>
* Fix FS #6872- CFLAGS are not usedDan McGee2007-04-11
| | | | Signed-off-by: Dan McGee <dan@archlinux.org>