mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
autotool scripts/abs
- 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>
This commit is contained in:
parent
c3876845b2
commit
2b6bc5bcda
@ -217,6 +217,7 @@ src/pacman/Makefile
|
|||||||
src/pacman/po/Makefile.in
|
src/pacman/po/Makefile.in
|
||||||
src/util/Makefile
|
src/util/Makefile
|
||||||
scripts/Makefile
|
scripts/Makefile
|
||||||
|
scripts/abs
|
||||||
scripts/makepkg
|
scripts/makepkg
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
etc/Makefile
|
etc/Makefile
|
||||||
|
@ -13,7 +13,7 @@ bin_SCRIPTS = \
|
|||||||
repo-remove \
|
repo-remove \
|
||||||
updatesync
|
updatesync
|
||||||
|
|
||||||
EXTRA_DIST = abs \
|
EXTRA_DIST = abs.in \
|
||||||
gensync \
|
gensync \
|
||||||
makepkg.in \
|
makepkg.in \
|
||||||
makeworld \
|
makeworld \
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
myver='@PACKAGE_VERSION@'
|
||||||
CONFDIR="/etc/abs"
|
CONFDIR="/etc/abs"
|
||||||
CONNMODE="m"
|
CONNMODE="m"
|
||||||
|
|
||||||
@ -19,6 +20,15 @@ usage() {
|
|||||||
echo "If -p is specified, the connection is opened in passive mode."
|
echo "If -p is specified, the connection is opened in passive mode."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version() {
|
||||||
|
printf "abs (pacman) %s\n" "$myver"
|
||||||
|
printf "Copyright (C) 2002-2007 Judd Vinet <jvinet@zeroflux.org>.\n"
|
||||||
|
echo
|
||||||
|
printf "This is free software; see the source for copying conditions.\n"
|
||||||
|
printf "There is NO WARRANTY, to the extent permitted by law.\n"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
cd "$ABSROOT"
|
cd "$ABSROOT"
|
||||||
for sup in "${SUPFILES[@]}"; do
|
for sup in "${SUPFILES[@]}"; do
|
||||||
@ -42,6 +52,11 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$1" = "-V" ] || [ "$1" = "--version" ]; then
|
||||||
|
version
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d "$ABSROOT" ]; then
|
if [ ! -d "$ABSROOT" ]; then
|
||||||
echo "abs: $ABSROOT does not exist (or is not a directory)"
|
echo "abs: $ABSROOT does not exist (or is not a directory)"
|
||||||
exit 1
|
exit 1
|
Loading…
Reference in New Issue
Block a user