index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-11-23 09:03:21 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-23 09:03:21 +0100 |
commit | 978f2ab87f6eee1e16f6659959597b892137fa5b (patch) | |
tree | 9b6910eed2ad384194d04d506336e3bf93e84665 /extract-link-dependencies | |
parent | cfb0897405225786e01f5bd163088fd170b71d79 (diff) |
-rwxr-xr-x | extract-link-dependencies | 7 |
diff --git a/extract-link-dependencies b/extract-link-dependencies index 38ea1c5..787fbc2 100755 --- a/extract-link-dependencies +++ b/extract-link-dependencies @@ -89,8 +89,8 @@ case $(hostname) in done ;; 'buildmaster.archlinux32.org') # on the buildmaster - cd ~/builder - . lib/load-configuration + base_dir=~/builder + . ~/builder/lib/load-configuration mysql_load_min_and_max_versions { printf 'SET @link_dep_id = (' @@ -110,7 +110,8 @@ case $(hostname) in printf '`architecture` VARCHAR(4),' printf 'UNIQUE KEY `content`(`it`,`kind`,`pkgname`,`epoch`,`pkgver`,`pkgrel`,`sub_pkgrel`,`architecture`)' printf ');\n' - printf 'LOAD DATA LOCAL INFILE "../so-todos" INTO TABLE `x`;\n' + printf 'LOAD DATA LOCAL INFILE "%s" INTO TABLE `x`;\n' \ + ~/so-todos printf 'INSERT IGNORE INTO `install_targets`(`name`) SELECT `x`.`it` FROM `x`;\n' printf 'SELECT row_count();\n' printf 'INSERT IGNORE INTO `install_target_providers`(' |