Compare commits
No commits in common. "e4ac1b651764d39b58b732174e2f654224a509a2" and "693c0311248be835f82d8f783628af334e9580e6" have entirely different histories.
e4ac1b6517
...
693c031124
@ -3,10 +3,10 @@
|
||||
# Ensure that the following lines match the base PKGBUILD
|
||||
|
||||
export retcode=0
|
||||
for term in ^pkgname\= ^replaces\= ^pkgver\= ^epoch\= ^pkgdesc\= ^url\= ^license\= ../LICENSE; do
|
||||
current="$(grep -E "${term}" ./PKGBUILD)"
|
||||
reference="$(grep -E "${term}" /opt/aninix/Uniglot/pacman/PKGBUILD)"
|
||||
diff -w --color=always <(printf "${reference}") <(printf "${current}")
|
||||
for term in pkgname replaces pkgver epoch pkgdesc url license ../LICENSE; do
|
||||
current="$(grep -E "^${term}=" ./PKGBUILD)"
|
||||
reference="$(grep -E "^${term}=" /opt/aninix/Uniglot/pacman/PKGBUILD)"
|
||||
diff -w --color=always <(printf "${reference}") <(echo "${current}")
|
||||
export retcode="$(( $retcode || $? ))";
|
||||
if [ "$retcode" != 0 ]; then
|
||||
echo "$term has delta."
|
||||
@ -24,5 +24,4 @@ if [ "$(basename "$PWD")" == 'Uniglot' ] && [ "$retcode" != 0 ]; then
|
||||
fi
|
||||
elif [ "$retcode" != 0 ]; then
|
||||
echo ERROR: PKGBUILD is out of sync with AniNIX/Uniglot.
|
||||
exit 1
|
||||
fi
|
||||
|
@ -21,7 +21,7 @@ for file in $files; do
|
||||
|
||||
# Enforce each of the lines
|
||||
for line in '^# Etymology$' '^# Relevant Files and Software$' '^# Available Clients$' '^# Equivalents or Competition$'; do
|
||||
newlinenum="$(grep -m 1 -nE "$line" "$file" | cut -f 1 -d ':')"
|
||||
newlinenum="$(grep -nE "$line" "$file" | cut -f 1 -d ':')"
|
||||
|
||||
# Case 1: Missing section
|
||||
if [ -z "$newlinenum" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user