summaryrefslogtreecommitdiffstats
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2007-06-05Autotool clean up.Andrew Fyfe1-1/+3
* Add vim modeline to Makefile.am and configure.ac * Fix white space in Makefile.am and configure.ac * Add contrib/wget-xdelta.sh to EXTRA_DIST in Makefile.am Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-05scripts/makepkg.in: Add gettext translation for WARNING and ERROR.Andrew Fyfe1-4/+4
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-05scripts/makepkg.in: Fix version comparision in create_xdelta().Andrew Fyfe1-12/+20
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-05scripts/abs.in: Rearrange/Cleanup.Andrew Fyfe2-54/+111
* Rearrange the script. * Add gettext support. * Clean up usage message. * Add PACKAGE_BUGREPORT to substitution in scripts/Makefile.am Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Fix pacman-optimize autoconf pathsDan McGee2-6/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04Add gettext/i18n to most of the currently-used scriptsGiovanni Scafora7-132/+151
Signed-off-by: Giovanni Scafora <linuxmania@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04makeworld: var rename from version -> myverDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-04scripts/makepkg.in: More clean up.Andrew Fyfe1-12/+21
* 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>
2007-06-04scripts/makepkg.in: Improve error handling and clean up on exit.Andrew Fyfe1-19/+50
* 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>
2007-06-04Clean up output messages for translation.Andrew Fyfe1-40/+54
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-04scripts/makepkg.in: Rewrite check_{options,buildenv} to tidy them up.Andrew Fyfe1-49/+79
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-04scripts/makepkg.in: Clean up.Andrew Fyfe1-44/+36
* 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>
2007-06-02Rename functions in makepkg for consistencyDan McGee1-17/+17
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>
2007-06-02makepkg: fix create_xdelta() and add warningAsh Milsted1-11/+12
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02scripts/makepkg.in: Some more clean ups.Andrew Fyfe1-7/+4
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-02makepkg: code cleanupDan McGee1-23/+14
* Collapse some if statements (Andrew Fyfe) * Add some E_ exit designations Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-02scripts/makepkg.in: Move the remaining stages into functions.Andrew Fyfe1-165/+195
* 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>
2007-06-02scripts/makepkg.in: All calls to eval_gettext have been remove, gettext.sh ↵Andrew Fyfe1-2/+1
is no longer needed. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-06-01Drop --usesudo option and add some checks related to ASROOTDan McGee1-28/+32
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>
2007-06-01scripts/makepkg.in: Clean up gen/check checksum code.Andrew Fyfe1-68/+67
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01scripts/makepkg.in: Various clean ups.Andrew Fyfe1-26/+22
* 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>
2007-06-01Cleaned up dependencies check functions in makepkgAndrew Fyfe1-104/+94
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-06-01FS7319: Add option to disable the inclusion of abs script.Andrew Fyfe1-1/+4
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-31Add autotool substitution for SRCEXT.Andrew Fyfe1-2/+2
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net> Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-31Clean up variable usage in create_xdelta() and add a check for the xdelta ↵Dale Ogilvie1-17/+16
program. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-31Add support for creating xdeltas in makepkg.Dale Ogilvie1-0/+47
Add xdelta option to makepkg.conf Added xfer script to contrib. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-31makepkg: do not retrieve sources if NOEXTRACT or REPKG setDag Odenhall1-34/+38
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>
2007-05-31makepkg: switch applicable $startdir/dir refs to new variable namesDan McGee1-8/+8
After introducing $pkgdir and $srcdir, we can switch some lookups to these new variables. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-31Check if pkgdir exists in create_packageDag Odenhall1-0/+5
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>
2007-05-31makepkg: fix double occurance of word in asroot warningDag Odenhall1-1/+1
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>
2007-05-30makepkg: add srcdir and pkgdir variablesDan McGee1-4/+6
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>
2007-05-30makepkg: add source package creation optionDan McGee1-7/+59
Add a new --source flag that allows creation of a source-only package. Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-30scripts: do autoconf path replacement rightDan McGee10-71/+125
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>
2007-05-29Substitute config directory in scripts.Andrew Fyfe6-18/+18
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-29Set paths in pacman-optimize to use configure-time pathsDan McGee2-11/+8
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>
2007-05-29Get --help and --version options working on all scriptsDan McGee7-72/+100
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>
2007-05-28Switch to printf for output messages.Andrew Fyfe1-41/+45
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>
2007-05-27Add autotool-generated scripts to .gitignoreDan McGee1-0/+7
Signed-off-by: Dan McGee <dan@archlinux.org>
2007-05-27Remove extra_dist from scripts/Makefile.amAndrew Fyfe1-10/+0
This is automaticly done by autoconf. Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27Fixed typo in scripts/repo-remove.inAndrew Fyfe1-1/+1
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27chmod -x scripts/*.inAndrew Fyfe8-0/+0
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/updatesyncAndrew Fyfe2-6/+20
- move scripts/updatesync -> scripts/updatesync.in - add -V --version options to scripts/updatesync.in - add autotool commands to generate scripts/updatesync Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/repo-removeAndrew Fyfe2-2/+17
- move scripts/repo-remove -> scripts/repo-remove.in - add -V --version options to scripts/repo-remove.in - add autotool commands to generate scripts/repo-remove Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27Added copyright header to scripts/abs.inAndrew Fyfe1-0/+20
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/repo-addAndrew Fyfe2-2/+17
- move scripts/repo-add -> scripts/repo-add.in - add -V --version options to scripts/repo-add.in - add autotool commands to generate scripts/repo-add Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27move parameter count check after check for help and version.Andrew Fyfe2-10/+10
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/pacman-optimizeAndrew Fyfe2-3/+16
- move scripts/pacman-optimize -> scripts/pacman-optimize.in - add -V --version options to scripts/pacman-optimize.in - add autotool commands to generate scripts/pacman-optimize Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/makeworldAndrew Fyfe2-4/+21
- move scripts/makeworld to scripts/makeworld.in - add -V --version options to scripts/makeworld.in - add autotool commands to generate scripts/makeworld Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/gensyncAndrew Fyfe2-3/+17
- move scripts/gensync -> scripts/gensync.in - add -V --version options to scripts/gensync.in - add autotool commands to generate scripts/gensync Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
2007-05-27autotool scripts/absAndrew Fyfe2-1/+16
- move scripts/abs -> scripts/abs.in - add -V --version options to scripts/abs.in - add autotool commands to generate scripts/abs Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>