index : devops | |
Archlinux32 devs' convenience-scripts | gitolite user |
summaryrefslogtreecommitdiff |
-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`(' |