Skip to content

Instantly share code, notes, and snippets.

@chvck
chvck / migrate.go
Created June 26, 2018 12:10
Migration from pelican to Ghost
package main
import (
"bufio"
"encoding/json"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
#!/bin/bash
GHOSTCRIPT_VER=9.21
wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs921/ghostscript-$GHOSTCRIPT_VER.tar.gz
tar -xvzf ghostscript-$GHOSTCRIPT_VER.tar.gz
rm ghostscript-$GHOSTCRIPT_VER.tar.gz
cd ghostscript-$GHOSTCRIPT_VER
./configure
make
sudo make install