summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2017-07-22 13:40:47 -0400
committerB Stack <bgstack15@gmail.com>2017-07-22 13:40:47 -0400
commit7a7a1d673b1db798df5f57832eafd4321690cce0 (patch)
tree32e30aca108c7b0f3bb9c713ba252fdb7a1fce0f /usr
parentstarting to fix to use build/ dir (diff)
downloadmirror-7a7a1d673b1db798df5f57832eafd4321690cce0.tar.gz
mirror-7a7a1d673b1db798df5f57832eafd4321690cce0.tar.bz2
mirror-7a7a1d673b1db798df5f57832eafd4321690cce0.zip
adjusted to use build/ dir
Diffstat (limited to 'usr')
-rw-r--r--usr/share/mirror/build/mirror.spec5
-rwxr-xr-xusr/share/mirror/build/pack6
2 files changed, 9 insertions, 2 deletions
diff --git a/usr/share/mirror/build/mirror.spec b/usr/share/mirror/build/mirror.spec
index 3bbccbc..4cdd7ee 100644
--- a/usr/share/mirror/build/mirror.spec
+++ b/usr/share/mirror/build/mirror.spec
@@ -92,3 +92,8 @@ rm -rf ${buildroot}
%config /usr/share/mirror/scripts/linuxmint-repos
/usr/share/mirror/deploy.sh
%verify(link) /usr/local/bin/deploy
+
+%changelog
+* Sat Jul 22 2017 B Stack <bgstack15@gmail.com> 1.1-5
+- Rearranged directory structure to match current bgscripts standard.
+- Updated content. See doc/README.txt.
diff --git a/usr/share/mirror/build/pack b/usr/share/mirror/build/pack
index 3b3ca84..6364137 100755
--- a/usr/share/mirror/build/pack
+++ b/usr/share/mirror/build/pack
@@ -51,9 +51,11 @@ case "${type}" in
# if you copy-paste this, be sure to define package, version, shortversion
rpmbuilddir=~/rpmbuild/
packagespecfile="${package}-${version}/usr/share/${package}/build/${package}.spec"
-sed -i -n '1,/^\%files$/p;' "${rpmbuilddir}/SOURCES/${packagespecfile}"
+sed -n -e '1,/^\%files$/p;' "${rpmbuilddir}/SOURCES/${packagespecfile}" > "${rpmbuilddir}/SOURCES/${packagespecfile}.$$.swp" # removes files and changelog
cd "${rpmbuilddir}/SOURCES/${package}-${version}"
-"${rpmbuilddir}/SOURCES/${package}-${version}/usr/share/${package}/inc/get-files" rpm >> "${rpmbuilddir}/SOURCES/${packagespecfile}"
+"${rpmbuilddir}/SOURCES/${package}-${version}/usr/share/${package}/inc/get-files" rpm >> "${rpmbuilddir}/SOURCES/${packagespecfile}.$$.swp"
+{ printf '\n'; sed -n -e '/^\%changelog/,$p' "${rpmbuilddir}/SOURCES/${packagespecfile}"; } >> "${rpmbuilddir}/SOURCES/${packagespecfile}.$$.swp"
+mv -f "${rpmbuilddir}/SOURCES/${packagespecfile}.$$.swp" "${rpmbuilddir}/SOURCES/${packagespecfile}"
rm -rf "${rpmbuilddir}/SOURCES/${package}-${shortversion}"; cp -prf "${rpmbuilddir}/SOURCES/${package}-${version}" "${rpmbuilddir}/SOURCES/${package}-${shortversion}"
rm -rf "${rpmbuilddir}/SOURCES/${package}-${shortversion}/DEBIAN"
cd "${rpmbuilddir}/SOURCES"
bgstack15