version bump, update for modern boost, default cellar bottle path baked in
This commit is contained in:
parent
81732eab03
commit
1f9a78956b
3
cogrc
3
cogrc
@ -1,5 +1,6 @@
|
|||||||
[version]
|
[version]
|
||||||
release_version=0.4
|
release_version=0.5
|
||||||
|
|
||||||
[defaults]
|
[defaults]
|
||||||
wine-path=wine
|
wine-path=wine
|
||||||
|
cellar-bottle-path=~/.local/share/cellar/bottles
|
@ -3,8 +3,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
#include <boost/filesystem/path.hpp>
|
|
||||||
|
|
||||||
#include "bottles.hpp"
|
#include "bottles.hpp"
|
||||||
#include "cellar.hpp"
|
#include "cellar.hpp"
|
||||||
@ -20,9 +19,9 @@ void cellar::bottles::switch_active_bottle(int argc, vector<string> argv) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string homepath = getenv("HOME"); // /home/nick
|
string homepath = getenv("HOME");
|
||||||
string bottlepath = homepath + "/.wine"; // /home/nick/.wine
|
string bottlepath = homepath + "/.wine";
|
||||||
string targetpath = homepath + "/.local/share/cellar/bottles/" + argv[1]; // /home/nick/.wine.example
|
string targetpath = homepath + "/.local/share/cellar/bottles/" + argv[1];
|
||||||
|
|
||||||
file_status targetstatus = symlink_status(targetpath);
|
file_status targetstatus = symlink_status(targetpath);
|
||||||
if (!exists(targetstatus)) {
|
if (!exists(targetstatus)) {
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
#include <boost/filesystem/path.hpp>
|
|
||||||
#include "nlohmann/json.hpp"
|
#include "nlohmann/json.hpp"
|
||||||
|
|
||||||
#include "bottles.hpp"
|
#include "bottles.hpp"
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
#include <boost/filesystem/path.hpp>
|
|
||||||
|
|
||||||
#include "cellar.hpp"
|
#include "cellar.hpp"
|
||||||
#include "fs.hpp"
|
#include "fs.hpp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user